You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by ws...@lexmark.com on 2003/03/13 18:05:15 UTC

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

Posted by Stas Bekman <st...@stason.org>.
wsheldah@lexmark.com 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 Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com