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/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, 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

Reply via email to