dev-perl/mod_perl compilation error, the error seems to be caused by the ipv6 patch, since it emerge without error with ipv6 USE flag turned off. Reproducible: Always Steps to Reproduce: 1.USE="ipv6" emerger dev-perl/mod_perl 2. 3. Actual Results: gcc -fpic -march=pentium2 -O3 -pipe -I/usr/lib/perl5/5.8.0/i686-linux/CORE -DPERL5 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL_VERSION=\"1.27\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.27\" -DMOD_PERL_PREFIX=\"/var/tmp/portage/mod_perl-1.27-r2/image/usr/lib/site_perl/5.8.0/i686-linux\" -I/usr/include/apache -DMOD_PERL -march=pentium2 -O3 -pipe -DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -march=pentium2 -O3 -pipe -c Table.c && mv Table.o Table.lo gcc -fpic -march=pentium2 -O3 -pipe -I/usr/lib/perl5/5.8.0/i686-linux/CORE -DPERL5 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL_VERSION=\"1.27\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.27\" -DMOD_PERL_PREFIX=\"/var/tmp/portage/mod_perl-1.27-r2/image/usr/lib/site_perl/5.8.0/i686-linux\" -I/usr/include/apache -DMOD_PERL -march=pentium2 -O3 -pipe -DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -march=pentium2 -O3 -pipe -c perlxsi.c && mv perlxsi.o perlxsi.lo make[1]: Entering directory `/var/tmp/portage/mod_perl-1.27-r2/work/mod_perl-1.27/Apache' Connection.c: In function `XS_Apache__Connection_remote_addr': Connection.c:124: incompatible types in assignment make[1]: *** [Connection.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/mod_perl-1.27-r2/work/mod_perl-1.27/apaci' make: *** [apxs_libperl] Error 2 make: *** Waiting for unfinished jobs.... cp Apache.pm ../blib/lib/Apache.pm Manifying ../blib/man3/Apache.3pm make[1]: Leaving directory `/var/tmp/portage/mod_perl-1.27-r2/work/mod_perl-1.27/Apache' !!! ERROR: dev-perl/mod_perl-1.27-r2 failed. !!! Function src_compile, Line 42, Exitcode 2 !!! (no error message) Expected Results: no compilation error Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.21 i686 Celeron (Mendocino) GENTOO_MIRRORS="ftp://203.16.234.19/pub/gentoo/ http://203.16.234.19/pub/gentoo/ ftp://gg3.net/pub/linux/gentoo/ http://ftp.gentoo.or.kr/ http://www.zentek-international.com/mirrors/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 crypt cups gif jpeg libg++ mmx ncurses nls pdflib png spell xml2 zlib gdbm berkdb slang readline tetex java tcpd pam libwww ssl perl python clamav curl icc icc-pgo ipv6 maildir memlimit nptl oav pic samba sasl slp tiff usagi xml -oss -3dnow -apm -arts -avi -encode -gpm -gtk -imlib -kde -gnome -mikmod -motif -mpeg -oggvorbis -opengl -qt -quicktime -sdl -svga -truetype -X -xmms -xv" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O3 -pipe" CXXFLAGS="-march=pentium2 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Verified problem on Linux vectra01.vectracomm.com 2.4.20-gentoo-r2 #7 SMP Tue Aug 19 00:29:19 i686 Pentium III (Katmai) GenuineIntel GNU/Linux. System completely up to date as of 06.24.2003 work around (if you do not need IPV6): "export USE="-ipv6" && emerge -vu mod_perl"
Created attachment 13804 [details, diff] revised ipv6 patch Attached is a revised version of the patch that fixes compilation errors. Please insert this into /usr/portage/dev-perl/mod_perl/files/, digest, and try emerging again. I can't test it myself, so please test for runtime errors and report back success/failure.
Confirmed the bug here as well. It does compile with Peter's amended patch. Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine) GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 crypt gif imlib jpeg libg++ mmx ncurses nls pdflib png spell xml2 zlib gdbm berkdb slang readline java tcpd pam libwww ssl python -3dnow -apm -arts -avi -cups -encode flash gd -gnome -gpm -gtk imap innodb ipv6 -kde ldap mbox -mikmod -motif -mpeg mysql -oggvorbis -opengl -oss perl plotutils postgres -qt -qtmt -quicktime samba sasl -sdl snmp sse -svga tetex tiff -X -xmms -xv freetype truetype" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache userpriv usersandbox"
Here's what happened - a patch that was designed to only be applied when Apache itself was built with IPv6 support ended up being applied against an Apache that could not be built with IPv6 support, even if USE="ipv6" was enabled. This used to be enforced by a dependency, but that dependency got relaxed. Now it is enforced by a tighter check before applying the patch. Fixed in CVS.
Fixed in CVS? /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -nolinenumbers -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap Server.xs >Server.c gcc -fpic -mcpu=k6 -march=k6 -O3 -pipe -I/usr/lib/perl5/5.8.0/i686-linux/CORE -DPERL5 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL_VERSION=\"1.27\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.27\" -I/usr/include/apache -DMOD_PERL -mcpu=k6 -march=k6 -O3 -pipe -DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -mcpu=k6 -march=k6 -O3 -pipe -c Server.c && mv Server.o Server.lo Connection.c: In function `XS_Apache__Connection_remote_addr': Connection.c:124: incompatible types in assignment make[1]: *** [Connection.lo] Error 1 I have apache 1.3.28 and 2.0.47 installed, with mod_perl 1.27-r2. Portage 2.0.49-r13-2 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r8, 2.4.20-gentoo-r7) ================================================================= System uname: 2.4.20-gentoo-r7 i686 AMD Duron(tm) processor Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=k6 -march=k6 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=k6 -march=k6 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://distro.ibiblio.org/gentoo " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 oss apm mikmod oggvorbis truetype xv libwww nls slang mmx 3dnow -cups -X -opengl fbcon -kde -arts -qt -gnome -motif -imlib ncurses readline -sdl -svga gif jpeg png tiff gd -avi -mpeg -quicktime -ggi -encode ipv6 -snmp pam ssl crypt -socks5 -imap -ldap tcpd -mozilla spell xml xml2 pdflib tetex -java perl python libg++ berkdb mysql innodb gdbm -gtk -gpm -xinetd -xmms curl"
Although this is shown as being fixed. I still ran across this problem. [ebuild N ] dev-perl/mod_perl-1.27-r4 +ipv6 /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -nolinenumbers -typemap / usr/lib/perl5/5.8.0/ExtUtils/typemap Connection.xs >Connection.c gcc -fpic -march=pentium3 -O3 -pipe -I/usr/lib/perl5/5.8.0/i686-linux/CORE - DPERL5 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD _PERL_VERSION=\"1.27\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.27\" -I/usr/in clude/apache -DMOD_PERL -march=pentium3 -O3 -pipe -DHARD_SERVER_LIMIT=512 - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\" -I/ usr/include/db4 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -mar ch=pentium3 -O3 -pipe -c Connection.c && mv Connection.o Connection.lo /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -nolinenumbers -typemap / usr/lib/perl5/5.8.0/ExtUtils/typemap Server.xs >Server.c gcc -fpic -march=pentium3 -O3 -pipe -I/usr/lib/perl5/5.8.0/i686-linux/CORE - DPERL5 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD _PERL_VERSION=\"1.27\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.27\" -I/usr/in clude/apache -DMOD_PERL -march=pentium3 -O3 -pipe -DHARD_SERVER_LIMIT=512 - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\" -I/ usr/include/db4 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -mar ch=pentium3 -O3 -pipe -c Server.c && mv Server.o Server.lo Connection.c: In function `XS_Apache__Connection_remote_addr': Connection.c:124: incompatible types in assignment make[1]: *** [Connection.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory `/var/tmp/portage/mod_perl-1.27-r4/work/mod_perl -1.27/Apache' make[1]: Leaving directory `/var/tmp/portage/mod_perl-1.27-r4/work/mod_perl- 1.27/apaci' make: *** [apxs_libperl] Error 2 make: *** Waiting for unfinished jobs.... cp Apache.pm ../blib/lib/Apache.pm Manifying ../blib/man3/Apache.3pm make[1]: Leaving directory `/var/tmp/portage/mod_perl-1.27-r4/work/mod_perl- 1.27/Apache' !!! ERROR: dev-perl/mod_perl-1.27-r4 failed. !!! Function src_compile, Line 48, Exitcode 2 !!! (no error message)