mod_php-4.3.0-r2 fails to compile because of gd library. Here's what it'll say: /bin/sh libtool --silent --mode=compile gcc -I/var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0/ext/gd/libgd -DHAVE_LIBPNG -Iext/gd/ -I/var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0/ext/gd/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0/include -I/var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0/main -I/var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0 -I/var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0/Zend -I/usr/include/libxml2 -I/usr/include/mysql -I/var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0/ext/xml/expat -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 -I/var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0/TSRM -march=k6-2 -O3 -pipe -fomit-frame-pointer -prefer-pic -c /var/tmp/portage/mod_php-4.3.0-r2/work/php-4.3.0/ext/gd/libgd/gd_png.c -o ext/gd/libgd/gd_png.lo {standard input}: Assembler messages: {standard input}:1351: Error: value of ffffffffffffff6b too large for field of 1 bytes at 00000000000010a1 make: *** [ext/gd/libgd/gd_png.lo] Error 1 !!! ERROR: dev-php/mod_php-4.3.0-r2 failed. !!! Function src_compile, Line 216, Exitcode 2 !!! compile problem My emerge info: Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-openmosix-7 i586 AMD-K6(tm) 3D processor GENTOO_MIRRORS="http://www.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" 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 3dnow apm crypt libg++ mmx ncurses xml2 zlib gdbm berkdb readline tcpd pam libwww ssl python -arts -avi -cups -encode gd -gif -gnome -gpm -gtk -imlib innodb -java -jpeg -kde ldap maildir -mikmod -motif -mpeg mysql -nls odbc -oggvorbis -opengl -oss -pdflib perl -png postgres -qt -qtmt -quicktime sasl -sdl -slang -spell -svga tetex -truetype -X -xmms -xv" COMPILER="gcc3" CHOST="i586-pc-linux-gnu" CFLAGS="-march=k6-2 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=k6-2 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
A work around is changing -march=k6-2 to -march=i586. It was discussed here: http://forums.gentoo.org/viewtopic.php?t=30923
Maybe add something like this to the ebuild: inherit flag-o-matic replace-flags "-march=k6-3" "-march=i586" replace-flags "-march=k6-2" "-march=i586" replace-flags "-march=k6" "-march=i586"
Yes. I added inherit flag-o-matic to the beginning of the ebuild and replace-flags "-march=k6*" "-march=i586" to the beginning of src_compile() and everything worked fine. Case closed. :) And when you put those in -r3 or something, please have a look at Bug #12441 ;)
committed.