Posted on 2006-04-04 00:43:24-07 by ecorcoran
Compile Error
So I've been having a hell of a time installing the Time::HiRes module, and I'm not sure what I'm doing wrong. I keep getting a huge list of compile errors that are from (I think, and I could be wrong) cc. I'm stumped, so I'm just going to dump the whole output from the attempted install.
ed@edbuntu:~/Desktop$ sudo perl -MCPAN -e 'install Time::HiRes' CPAN: Storable loaded ok Going to read /home/ed/.cpan/Metadata Database was generated on Mon, 03 Apr 2006 22:46:54 GMT Running install for module Time::HiRes Running make for J/JH/JHI/Time-HiRes-1.87.tar.gz CPAN: checksum security checks disabled because Digest::SHA not installed. Please consider installing the Digest::SHA module. Scanning cache /home/ed/.cpan/build for sizes Time-HiRes-1.87/ Time-HiRes-1.87/Changes Time-HiRes-1.87/fallback/ Time-HiRes-1.87/fallback/const-c.inc Time-HiRes-1.87/fallback/const-xs.inc Time-HiRes-1.87/hints/ Time-HiRes-1.87/hints/dec_osf.pl Time-HiRes-1.87/hints/dynixptx.pl Time-HiRes-1.87/hints/irix.pl Time-HiRes-1.87/hints/sco.pl Time-HiRes-1.87/hints/solaris.pl Time-HiRes-1.87/hints/svr4.pl Time-HiRes-1.87/HiRes.pm Time-HiRes-1.87/HiRes.xs Time-HiRes-1.87/Makefile.PL Time-HiRes-1.87/MANIFEST Time-HiRes-1.87/META.yml Time-HiRes-1.87/ppport.h Time-HiRes-1.87/README Time-HiRes-1.87/t/ Time-HiRes-1.87/t/HiRes.t Time-HiRes-1.87/TODO Time-HiRes-1.87/typemap Removing previously used /home/ed/.cpan/build/Time-HiRes-1.87 CPAN: Module::Signature security checks disabled because Module::Signature not installed. Please consider installing the Module::Signature module. You may also need to be able to connect over the Internet to the public keyservers like pgp.mit.edu (port 11371). CPAN.pm: Going to build J/JH/JHI/Time-HiRes-1.87.tar.gz Configuring Time::HiRes... Have syscall()... looking for syscall.h... NOT found. Looking for gettimeofday()... found. Looking for setitimer()... found. Looking for getitimer()... found. You have interval timers (both setitimer and getitimer). Looking for ualarm()... found. Looking for usleep()... found. Looking for nanosleep()... testing... NOT found. You cannot mix subsecond sleeps with signals. (It would not be portable anyway.) Looking for clock_gettime()... NOT found. Looking for clock_getres()... NOT found. Looking for clock_nanosleep()... NOT found. Looking for clock()... NOT found. Checking if your kit is complete... Looks good Writing Makefile for Time::HiRes Now you may issue 'make'. Do not forget also 'make test'. NOTE: if you get an error like this (the Makefile line number may vary): Makefile:91: *** missing separator then set the environment variable LC_ALL to "C" and retry from scratch (re-run perl "Makefile.PL"). cp HiRes.pm blib/lib/Time/HiRes.pm /usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -t +ypemap typemap HiRes.xs > HiRes.xsc && mv HiRes.xsc HiRes.c cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/l +ocal/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.87\" -DXS_VERSION=\"1. +87\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DATLEASTFIVEOHOHFIVE HiRes.c In file included from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perl.h:382:24: error: sys/types.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:413:19: error: ctype.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:425:23: error: locale.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:442:20: error: setjmp.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:448:26: error: sys/param.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:453:23: error: stdlib.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:458:23: error: unistd.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:731:23: error: string.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:880:27: error: netinet/in.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:884:26: error: arpa/inet.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:894:25: error: sys/stat.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:916:21: error: time.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:923:25: error: sys/time.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:930:27: error: sys/times.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:937:19: error: errno.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:952:25: error: sys/socket.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:979:21: error: netdb.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:1081:24: error: sys/ioctl.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:1110:23: error: dirent.h: No such file or directory In file included from /usr/lib/gcc/i486-linux-gnu/4.0.2/include/syslimits.h:7, from /usr/lib/gcc/i486-linux-gnu/4.0.2/include/limits.h:11, from /usr/lib/perl/5.8/CORE/perl.h:1446, from HiRes.xs:16: /usr/lib/gcc/i486-linux-gnu/4.0.2/include/limits.h:122:61: error: limits.h: No such file or directo +ry In file included from /usr/lib/perl/5.8/CORE/perl.h:2056, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/handy.h:121:25: error: inttypes.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:2220, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/unixish.h:106:21: error: signal.h: No such file or directory In file included from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perl.h:2322:33: error: pthread.h: No such file or directory In file included from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perl.h:2324: error: syntax error before 'perl_os_thread' /usr/lib/perl/5.8/CORE/perl.h:2324: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perl.h:2325: error: syntax error before 'perl_mutex' /usr/lib/perl/5.8/CORE/perl.h:2325: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perl.h:2326: error: syntax error before 'perl_cond' /usr/lib/perl/5.8/CORE/perl.h:2326: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perl.h:2327: error: syntax error before 'perl_key' /usr/lib/perl/5.8/CORE/perl.h:2327: warning: data definition has no type or storage class In file included from /usr/lib/perl/5.8/CORE/iperlsys.h:51, from /usr/lib/perl/5.8/CORE/perl.h:2579, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perlio.h:65:19: error: stdio.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/iperlsys.h:51, from /usr/lib/perl/5.8/CORE/perl.h:2579, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perlio.h:253: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/perlio.h:256: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/perlio.h:256: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perlio.h:259: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/perlio.h:259: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perlio.h:262: error: syntax error before 'FILE' In file included from /usr/lib/perl/5.8/CORE/perl.h:2593, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/sv.h:389: error: syntax error before 'DIR' /usr/lib/perl/5.8/CORE/sv.h:389: warning: no semicolon at end of struct or union /usr/lib/perl/5.8/CORE/sv.h:389: warning: no semicolon at end of struct or union /usr/lib/perl/5.8/CORE/sv.h:391: error: syntax error before '}' token /usr/lib/perl/5.8/CORE/sv.h:391: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/sv.h:405: error: syntax error before '}' token In file included from /usr/lib/perl/5.8/CORE/op.h:496, from /usr/lib/perl/5.8/CORE/perl.h:2600, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/reentr.h:71:20: error: pwd.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:74:20: error: grp.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:84:26: error: crypt.h: No such file or directory /usr/lib/perl/5.8/CORE/reentr.h:89:27: error: shadow.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/op.h:496, from /usr/lib/perl/5.8/CORE/perl.h:2600, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/reentr.h:611: error: field '_crypt_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:619: error: field '_drand48_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:623: error: field '_grent_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:634: error: field '_hostent_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:653: error: field '_netent_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:668: error: field '_protoent_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:683: error: field '_pwent_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:694: error: field '_servent_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:709: error: field '_spent_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:720: error: field '_gmtime_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:723: error: field '_localtime_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:770: error: field '_random_struct' has incomplete type /usr/lib/perl/5.8/CORE/reentr.h:771: error: syntax error before 'int32_t' /usr/lib/perl/5.8/CORE/reentr.h:771: warning: no semicolon at end of struct or union /usr/lib/perl/5.8/CORE/reentr.h:779: error: syntax error before '}' token /usr/lib/perl/5.8/CORE/reentr.h:779: warning: data definition has no type or storage class In file included from /usr/lib/perl/5.8/CORE/perl.h:2602, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/av.h:13: error: syntax error before 'ssize_t' /usr/lib/perl/5.8/CORE/av.h:13: warning: no semicolon at end of struct or union /usr/lib/perl/5.8/CORE/av.h:14: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/av.h:23: error: syntax error before '}' token In file included from /usr/lib/perl/5.8/CORE/perl.h:2605, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/scope.h:232: error: syntax error before 'sigjmp_buf' /usr/lib/perl/5.8/CORE/scope.h:232: warning: no semicolon at end of struct or union /usr/lib/perl/5.8/CORE/scope.h:239: error: syntax error before '}' token In file included from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perl.h:2777: error: syntax error before 'getuid' /usr/lib/perl/5.8/CORE/perl.h:2777: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perl.h:2778: error: syntax error before 'geteuid' /usr/lib/perl/5.8/CORE/perl.h:2778: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perl.h:2779: error: syntax error before 'getgid' /usr/lib/perl/5.8/CORE/perl.h:2779: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perl.h:2780: error: syntax error before 'getegid' /usr/lib/perl/5.8/CORE/perl.h:2780: warning: data definition has no type or storage class In file included from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perl.h:3093:22: error: math.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perl.h:3732, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/thrdvar.h:85: error: field 'Tstatbuf' has incomplete type /usr/lib/perl/5.8/CORE/thrdvar.h:86: error: field 'Tstatcache' has incomplete type /usr/lib/perl/5.8/CORE/thrdvar.h:91: error: field 'Ttimesbuf' has incomplete type /usr/lib/perl/5.8/CORE/thrdvar.h:140: error: field 'Tstart_env' has incomplete type In file included from /usr/lib/perl/5.8/CORE/perl.h:3734, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/intrpvar.h:66: error: syntax error before 'time_t' /usr/lib/perl/5.8/CORE/intrpvar.h:66: warning: no semicolon at end of struct or union /usr/lib/perl/5.8/CORE/intrpvar.h:237: error: syntax error before 'Iuid' /usr/lib/perl/5.8/CORE/intrpvar.h:237: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:238: error: syntax error before 'Ieuid' /usr/lib/perl/5.8/CORE/intrpvar.h:238: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:239: error: syntax error before 'Igid' /usr/lib/perl/5.8/CORE/intrpvar.h:239: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:240: error: syntax error before 'Iegid' /usr/lib/perl/5.8/CORE/intrpvar.h:240: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:497: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/intrpvar.h:497: warning: data definition has no type or storage class In file included from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perl.h:3740: error: syntax error before '}' token In file included from /usr/lib/perl/5.8/CORE/perl.h:3811, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/proto.h:90: error: syntax error before 'mode_t' /usr/lib/perl/5.8/CORE/proto.h:199: error: syntax error before 'off64_t' /usr/lib/perl/5.8/CORE/proto.h:201: error: syntax error before 'Perl_do_sysseek' /usr/lib/perl/5.8/CORE/proto.h:201: error: syntax error before 'off64_t' /usr/lib/perl/5.8/CORE/proto.h:201: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/proto.h:202: error: syntax error before 'Perl_do_tell' /usr/lib/perl/5.8/CORE/proto.h:202: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/proto.h:284: error: syntax error before 'gid_t' /usr/lib/perl/5.8/CORE/proto.h:456: error: syntax error before 'Perl_my_fork' /usr/lib/perl/5.8/CORE/proto.h:456: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/proto.h:582: error: syntax error before 'pid_t' /usr/lib/perl/5.8/CORE/proto.h:815: error: syntax error before 'pid_t' /usr/lib/perl/5.8/CORE/proto.h:916: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/proto.h:916: error: syntax error before 'DIR' /usr/lib/perl/5.8/CORE/proto.h:916: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/proto.h:1305: error: syntax error before 'Perl_PerlIO_read' /usr/lib/perl/5.8/CORE/proto.h:1305: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/proto.h:1306: error: syntax error before 'Perl_PerlIO_write' /usr/lib/perl/5.8/CORE/proto.h:1306: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/proto.h:1307: error: syntax error before 'Perl_PerlIO_unread' /usr/lib/perl/5.8/CORE/proto.h:1307: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/proto.h:1308: error: syntax error before 'Perl_PerlIO_tell' /usr/lib/perl/5.8/CORE/proto.h:1308: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/proto.h:1309: error: syntax error before 'off64_t' In file included from /usr/lib/perl/5.8/CORE/perl.h:3849, from HiRes.xs:16: /usr/lib/perl/5.8/CORE/perlvars.h:31: error: syntax error before 'PL_thr_key' /usr/lib/perl/5.8/CORE/perlvars.h:31: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perlvars.h:48: error: syntax error before 'PL_op_mutex' /usr/lib/perl/5.8/CORE/perlvars.h:48: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perlvars.h:52: error: syntax error before 'PL_dollarzero_mutex' /usr/lib/perl/5.8/CORE/perlvars.h:52: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perl.h:4366:24: error: sys/ipc.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:4367:24: error: sys/sem.h: No such file or directory /usr/lib/perl/5.8/CORE/perl.h:4492:24: error: sys/file.h: No such file or directory In file included from /usr/lib/perl/5.8/CORE/perlapi.h:37, from /usr/lib/perl/5.8/CORE/XSUB.h:320, from HiRes.xs:17: /usr/lib/perl/5.8/CORE/intrpvar.h:66: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/intrpvar.h:66: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:237: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/intrpvar.h:237: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:238: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/intrpvar.h:238: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:239: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/intrpvar.h:239: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:240: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/intrpvar.h:240: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/intrpvar.h:497: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/intrpvar.h:497: warning: data definition has no type or storage class In file included from /usr/lib/perl/5.8/CORE/perlapi.h:38, from /usr/lib/perl/5.8/CORE/XSUB.h:320, from HiRes.xs:17: /usr/lib/perl/5.8/CORE/perlvars.h:31: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/perlvars.h:31: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perlvars.h:48: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/perlvars.h:48: warning: data definition has no type or storage class /usr/lib/perl/5.8/CORE/perlvars.h:52: error: syntax error before '*' token /usr/lib/perl/5.8/CORE/perlvars.h:52: warning: data definition has no type or storage class HiRes.xs:30:26: error: sys/select.h: No such file or directory HiRes.xs: In function 'myU2time': HiRes.xs:669: error: storage size of 'Tp' isn't known HiRes.xs: In function 'myNVtime': HiRes.xs:683: error: storage size of 'Tp' isn't known HiRes.xs: In function 'XS_Time__HiRes_usleep': HiRes.xs:729: error: storage size of 'Ta' isn't known HiRes.xs:729: error: storage size of 'Tb' isn't known HiRes.xs: In function 'XS_Time__HiRes_sleep': HiRes.xs:803: error: storage size of 'Ta' isn't known HiRes.xs:803: error: storage size of 'Tb' isn't known HiRes.xs: In function 'XS_Time__HiRes_gettimeofday': HiRes.xs:940: error: storage size of 'Tp' isn't known HiRes.xs: In function 'XS_Time__HiRes_time': HiRes.xs:958: error: storage size of 'Tp' isn't known HiRes.xs: In function 'XS_Time__HiRes_setitimer': HiRes.xs:983: error: storage size of 'newit' isn't known HiRes.xs:984: error: storage size of 'oldit' isn't known HiRes.xs: In function 'XS_Time__HiRes_getitimer': HiRes.xs:1007: error: storage size of 'nowit' isn't known make: *** [HiRes.o] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
Direct Responses: 2099 | Write a response
Posted on 2006-04-04 18:37:47-07 by ecorcoran in response to 2097
Re: Compile Error
Never mind, I got it figured out. I didn't have my compilier configured correctly.
Direct Responses: 2148 | Write a response
Posted on 2006-04-11 18:27:56-07 by libdave in response to 2099
Re: Compile Error
I'm having similar problems (ubuntu) - what did you do to configure you compiler correctly? (dcorcoran)
Direct Responses: 4007 | Write a response
Posted on 2007-01-10 15:15:37-08 by greg14unix in response to 2148
Re: Compile Error
The problem is that debian/ubuntu does not include the glibc header files by default. You will need to "apt-get install build-essential" to download the headers and other files needed for gcc to work correctly.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.