Hi, I've been struggling for a few days with installing Time::Object (1.00). There's an error message associated with the xs file. My box is a standard RH Linux 9 (single processor) with the built-in Perl 5.8. (and various modules installed via CPAN). Googling turned up 1-2 people with similar errors but no solution. I'm not very fluent in gcc / xs, can anyone suggest an avenue to pursue to help solve this problem? Ideas would be much appreciated - thanks!
WILL P.S. In case anyone else has hit this error, this was pulled directly from cpan "install Time::Object". [EMAIL PROTECTED] Time-Object-1.00]# make gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-str ict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPERL_POLLUTE -O2 -march=i386 -mcpu=i686 -g -DVERSI ON=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" Object.c Object.xs:34: parse error before '(' token Object.xs:51: parse error before '(' token Object.xs:132: `ptm' undeclared here (not in a function) Object.xs:132: warning: data definition has no type or storage class Object.xs:133: `ptm' undeclared here (not in a function) Object.xs:133: warning: data definition has no type or storage class Object.xs:134: `ptm' undeclared here (not in a function) Object.xs:134: warning: data definition has no type or storage class Object.xs:136: parse error before "if" Object.xs:138: redefinition of `mday' Object.xs:134: `mday' previously defined here Object.xs:138: warning: data definition has no type or storage class Object.xs:139: `ptm' undeclared here (not in a function) Object.xs:139: warning: data definition has no type or storage class Object.xs:140: parse error before '}' token Object.xs:148: initializer element is not constant Object.xs:148: warning: data definition has no type or storage class Object.xs:149: parse error before '+=' token Object.xs:195: redefinition of `jday' Object.xs:139: `jday' previously defined here Object.xs:195: initializer element is not constant Object.xs:195: warning: data definition has no type or storage class Object.xs:196: parse error before '-=' token Object.xs:197: redefinition of `year' Object.xs:132: `year' previously defined here Object.xs:197: initializer element is not constant Object.xs:197: warning: data definition has no type or storage class Object.xs:198: parse error before '%=' token Object.xs:199: initializer element is not constant Object.xs:199: warning: data definition has no type or storage class Object.xs:200: parse error before '+=' token Object.xs:204: initializer element is not constant Object.xs:204: warning: data definition has no type or storage class Object.xs:205: parse error before '+=' token Object.xs:209: redefinition of `yearday' Object.xs:148: `yearday' previously defined here Object.xs:209: warning: data definition has no type or storage class Object.xs:210: parse error before '}' token Object.xs:213: redefinition of `month' Object.xs:133: `month' previously defined here Object.xs:213: initializer element is not constant Object.xs:213: warning: data definition has no type or storage class Object.xs:214: parse error before '-=' token Object.xs:235: redefinition of `yearday' Object.xs:209: `yearday' previously defined here Object.xs:235: initializer element is not constant Object.xs:235: warning: data definition has no type or storage class Object.xs:236: parse error before '+=' token make: *** [Object.o] Error 1 [EMAIL PROTECTED] Time-Object-1.00]# perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.20-2.48smp, archname=i386-linux-thread-multi uname='linux str' config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -g -Dmyhostname=loca lhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstall prefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsitepr efix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads -Dus e ithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdb m -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubinc o mpat5005 -Uversiononly -Dpager=/usr/bin/less -isr' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef' useithreads=define usemultiplicity= useperlio= d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=un uselongdouble= usemymalloc=, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-ali asing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_ OFFSET_BITS=64 -I/usr/include/gdbm', optimize='', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-st rict-aliasing -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='3.2.2 20030213 (Red Hat Linux 8.0 3.2.2-1)', gccosandvers='' gccversion='3.2.2 200302' intsize=e, longsize= , ptrsize=p, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long' k', ivsize=4' ivtype='long' known_ext, nvtype='double' o_nonbl', nvsize=, Off_t='', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc' l', ldflags =' -L/usr/local/lib' ldf' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil perllibs= libc=/lib/libc-2.3.1.so, so=so, useshrplib=true, libperl=libper gnulibc_version='2.3.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so', d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi /CORE' cccdlflags='-fPIC' ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5', lddlflags='s Unicode/Normalize XS/A' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches: MAINT18379 Built under linux Compiled at Feb 18 2003 22:19:53 @INC: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>