Compiling Apache::Scoreboard
Hi, I'm getting a bizarre compile error while trying to build Apache::Scoreboard 0.10 on a Mandrake Linux 9.0 system. Here's a snippet of make output, from the first gcc command that failed to just the first few errors it generates: gcc -c -I../ -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/include -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/regex -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/os/unix -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -DVERSION=\0.04\ -DXS_VERSION=\0.04\ -fpic -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -DPERL_THREADS DummyScoreboard.c In file included from DummyScoreboard.xs:14: /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:261: parse error before '*' token /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:261: warning: data definition has no type or storage class /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:264: parse error before '*' token /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:264: warning: data definition has no type or storage class And here's a snippet from mod_perl.h with line numbers: 256 257 typedef request_rec * Apache; 258 typedef request_rec * Apache__SubRequest; 259 typedef conn_rec* Apache__Connection; 260 typedef server_rec * Apache__Server; 261 typedef cmd_parms * Apache__CmdParms; 262 typedef TiedTable * Apache__Table; 263 typedef table * Apache__table; 264 typedef module * Apache__Module; 265 typedef handler_rec * Apache__Handler; 266 typedef command_rec * Apache__Command; 267 As you can see, the first two errors happen in the middle of pretty normal looking typedef statements. This was built using perl 5.8.0 (Mandrake's rpm), gcc 3.2 (Mandrake rpm again), and mod_perl 1.27 (compiled from source). I've talked to one other person who found the same errors on Red Hat 8.0, also using Red Hat's perl 5.8.0 and gcc 3.2 rpm's and a custom built mod_perl. Googling turned up someone from last fall with the same setup and problem, but no solution. Anyone else seen this? Other troubleshooting tips? Thanks in advance, Wes Sheldahl
Re: Compiling Apache::Scoreboard
[EMAIL PROTECTED] wrote: Hi, I'm getting a bizarre compile error while trying to build Apache::Scoreboard 0.10 on a Mandrake Linux 9.0 system. Here's a snippet of make output, from the first gcc command that failed to just the first few errors it generates: gcc -c -I../ -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/include -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/regex -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/os/unix -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -DVERSION=\0.04\ -DXS_VERSION=\0.04\ -fpic -I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE -DPERL_THREADS DummyScoreboard.c In file included from DummyScoreboard.xs:14: /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:261: parse error before '*' token /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:261: warning: data definition has no type or storage class /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:264: parse error before '*' token /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Apache/include/modules/perl/mod_perl.h:264: warning: data definition has no type or storage class I think this has to do with the ordering of including apache headers. This was fixed in the cvs version of mod_perl 1.0. Can you please try to rebuild mod_perl using the cvs version and then give another chance to Apache::Scoreboard? http://perl.apache.org/download/source.html#Development_Source_Distribution __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Another problem compiling Apache-Scoreboard-0.08
On Tue, 21 Mar 2000, Charles Day wrote: Stas, Trying to get Apache::VMonitor up, I'm getting the same error Gustav saw with Apache::Scoreboard, but I'm running your gcc and Linux 2.2.12. Did you ever figure this one out? Get the latest Apache::Scoreboard 0.10 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Here's my error message... [root@razor Apache-Scoreboard-0.10]# make mkdir blib mkdir blib/lib mkdir blib/lib/Apache mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/Apache mkdir blib/arch/auto/Apache/Scoreboard mkdir blib/lib/auto mkdir blib/lib/auto/Apache mkdir blib/lib/auto/Apache/Scoreboard mkdir blib/man3 cp lib/Apache/ScoreboardGraph.pm blib/lib/Apache/ScoreboardGraph.pm cp Scoreboard.pm blib/lib/Apache/Scoreboard.pm make[1]: Entering directory `/usr/src/Apache-Scoreboard-0.10/Dummy' mkdir ../blib/arch/auto/Apache/DummyScoreboard mkdir ../blib/lib/auto/Apache/DummyScoreboard cp DummyScoreboard.pm ../blib/lib/Apache/DummyScoreboard.pm /usr/bin/perl -I/usr/lib/perl5/5.00503/i586-linux -I/usr/lib/perl5/5.00503 /usr/lib/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.00503/ExtUtils/typemap -typemap /usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/typemap -typemap typemap DummyScoreboard.xs xstmp.c mv xstmp.c DummyScoreboard.c Please specify prototyping behavior for DummyScoreboard.xs (see perlxs manual) cc -c -I../ -I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include -I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/modules/perl -I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/include -I/usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/os/unix -Dbool=char -DHAS_BOOL -O2-DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fpic -I/usr/lib/perl5/5.00503/i586-linux/CORE DummyScoreboard.c In file included from DummyScoreboard.xs:2: /usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/include/scoreb oard.h:149: field `start_time' has incomplete type /usr/lib/perl5/site_perl/5.005/i586-linux/auto/Apache/include/include/scoreb oard.h:150: field `stop_time' has incomplete type make[1]: *** [DummyScoreboard.o] Error 1 make[1]: Leaving directory `/usr/src/Apache-Scoreboard-0.10/Dummy' make: *** [subdirs] Error 2 List: apache-modperl Subject: Re: Another problem compiling Apache-Scoreboard-0.08 From: Stas Bekman Date: 2000-01-23 12:26:28 On Sun, 23 Jan 2000, Gustav Kristoffer Ek wrote: I got the folowing error when compiling Apache::Scoreboard 0.08: make make[1]: Entering directory `/usr/src/cpan/build/Apache-Scoreboard-0.08/Dummy' cc -c -I../ -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/modules/perl -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/regex -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/os/unix -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fpic -I/usr/lib/perl5/5.00503/i686-linux/CORE DummyScoreboard.c In file included from DummyScoreboard.xs:2: /usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include/scoreb oard.h:150: field `start_time' has incomplete type /usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include/scoreb oard.h:151: field `stop_time' has incomplete type make[1]: *** [DummyScoreboard.o] Error 1 make[1]: Leaving directory `/usr/src/cpan/build/Apache-Scoreboard-0.08/Dummy' make: *** [subdirs] Error 2 Line 150 and 151 in scoreboard.h looks like: struct timeval start_time; struct timeval stop_time; I'm using modperl 1.21_01-dev and perl 5.00503 on a i386 running linux 2.3.20. Gustav, I can build this version with no problems using the same environment, but kernel 2.2.12. I thought that may be the /usr/src/linux/include/linux/time.h has been changed, but according to http://lxr.linux.no/diff/include/linux/time.h?v=2.3.28;diffvar=v;diffval=2. 2.12 it's the same. So I believe the difference you and me might have is in compiler version. Mine is: (cc == gcc) gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Hope this helps... ___ Stas Bekman mailto:[EMAIL PROTECTED] http://www.stason.org/stas Perl,CGI,Apache,Linux,Web,Java,PC http://www.stason.org/stas/TULARC perl.apache.org modperl.sourcegarden.org perlmonth.com perl.org single o- + single o-+ = singlesheaven http://www.singlesheaven.com [ __ Stas Bekman | JAm_pH--Just Another mod_perl Hacker http://stason.org/ | mod
Another problem compiling Apache-Scoreboard-0.08
I got the folowing error when compiling Apache::Scoreboard 0.08: make make[1]: Entering directory `/usr/src/cpan/build/Apache-Scoreboard-0.08/Dummy' cc -c -I../ -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/modules/perl -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/regex -I/usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/os/unix -Dbool=char -DHAS_BOOL -I/usr/local/include -O2-DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fpic -I/usr/lib/perl5/5.00503/i686-linux/CORE DummyScoreboard.c In file included from DummyScoreboard.xs:2: /usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include/scoreboard.h:150: field `start_time' has incomplete type /usr/lib/perl5/site_perl/5.005/i686-linux/auto/Apache/include/include/scoreboard.h:151: field `stop_time' has incomplete type make[1]: *** [DummyScoreboard.o] Error 1 make[1]: Leaving directory `/usr/src/cpan/build/Apache-Scoreboard-0.08/Dummy' make: *** [subdirs] Error 2 Line 150 and 151 in scoreboard.h looks like: struct timeval start_time; struct timeval stop_time; I'm using modperl 1.21_01-dev and perl 5.00503 on a i386 running linux 2.3.20. - gustav Gustav Kristoffer Ek, Netcetera, Brolæggerstræde 4, 1211 København K Telefon +45 33 14 70 00 / +45 20 40 00 05 - Faximile +45 33 14 62 00 Webdesign, Webhotel, Mailhotel, UUCP mere http://www.netcetera.dk/
Re: Another problem compiling Apache-Scoreboard-0.08
On Sun, 23 Jan 2000, Stas Bekman wrote: [...] Gustav, I can build this version with no problems using the same environment, but kernel 2.2.12. I thought that may be the /usr/src/linux/include/linux/time.h has been changed, but according to http://lxr.linux.no/diff/include/linux/time.h?v=2.3.28;diffvar=v;diffval=2.2.12 it's the same. So I believe the difference you and me might have is in compiler version. Mine is: (cc == gcc) gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Hmm... my gcc version is also egcs-2.91.66 19990314/Linux (egcs-1.1.2 release), any other hints? :) - gustav Gustav Kristoffer Ek, Netcetera, Brolæggerstræde 4, 1211 København K Telefon +45 33 14 70 00 / +45 20 40 00 05 - Faximile +45 33 14 62 00 Webdesign, Webhotel, Mailhotel, UUCP mere http://www.netcetera.dk/