On Tuesday 06 June 2006 11:46, Philip M. Gollucci wrote: > Torsten Foertsch wrote: > > Further on, in line 564 it complains about an illegal typecast. This > > Linux behaves in this regard obviously like Windows. > > > > 561 #ifdef WIN32 > > 562 PERL_SYS_INIT3(&argc, &argv, &env); > > 563 #else > > 564 (void)PERL_SYS_INIT3(&argc, &argv, &env); > > 565 #endif /* WIN32 */ > > Any help on what this define should actually be is appreciated as I'm > getting lost in the perl.h and friends #define foo. > > P5P: > Any help appreciated as to what this #ifdef should be.
This is the correct error: cc -I/home/r2/work/mp2/trunk/r412021/src/modules/perl -I/home/r2/work/mp2/trunk/r412021/xs -I/opt/apache22/include -I/opt/apache22/include -I/opt/apache22/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/lib/perl5/5.8.8/i586-linux-thread-multi/CORE -DMOD_PERL -DMP_COMPAT_1X -DLINUX=2 -D_LARGEFILE64_SOURCE -DAP_DEBUG -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe -fPIC -c mod_perl.c mod_perl.c: In function ‘modperl_sys_init’: mod_perl.c:564: error: invalid use of void expression The preprocessor converts line 564 into (void) (*Perl_Gsigfpe_saved_ptr(((void *)0))) = signal(8, ((__sighandler_t) 1)); ; Torsten
pgp6IFMRxKBR5.pgp
Description: PGP signature