When trying to emerge php or mod_php, I get this message just after the configure step: +--------------------------------------------------------------------+ | *** ATTENTION *** | | | | Something is likely to be messed up here, because the configure | | script was not able to detect a simple feature on your platform. | | This is often caused by incorrect configuration parameters. Please | | see the file debug.log for error messages. | | | | If you are unable to fix this, send the file debug.log to the | | php-install@lists.php.net mailing list and include appropiate | | information about your setup. | +--------------------------------------------------------------------+ and, here are the contents of debug.log: CONFIGURE: './configure' '--prefix=/usr' '--with-gmp' '--with-bz2' '--enable-ftp' '--enable-dbase' '--with-zlib=yes' '--enable-bcmath' '--enable-sysvsem' '--enable-sysvshm' '--enable-calendar' '--enable-trans-sid' '--enable-safe-mode' '--enable-versioning' '--enable-track-vars' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs -ltiff' '--with-exec-dir=/usr/lib/apache/bin' '--with-config-file-path=/etc/php4' '--host=i686-pc-linux-gnu' '--without-readline' '--with-pam' '--without-gettext' '--with-openssl' '--with-mysql=/usr' '--with-pdflib=/usr' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr' '--with-tiff-dir=/usr' '--with-xml' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-dom' '--with-mcrypt' '--with-mhash' '--with-xpm-dir=/usr/X11R6' CC: gcc CFLAGS: -march=i686 -O3 -pipe CPPFLAGS: -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 CXX: CXXFLAGS: -march=i686 -O3 -pipe INCLUDES: -I/usr/include/apache -I$(top_builddir)/Zend -I/usr/include/libxml2 -I/usr/include/mysql LDFLAGS: -Wl,-rpath,/usr/lib/lib -L/usr/lib/lib LIBS: -lpdf -lz -ltiff -lpng -ljpeg -lmysqlclient -lmhash -lmcrypt -lltdl -lgmp -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxmlparse -lxmltok -lresolv -lcrypt DLIBS: SAPI: apache PHP_RPATHS: /usr/lib/lib uname -a: Linux david.cherrytaco.com 2.4.19-gentoo-r7 #3 SMP Sat Aug 24 13:04:45 PDT 2002 i686 GenuineIntel gcc -o conftest -march=i686 -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 -Wl,-rpath,/usr/lib/lib -L/usr/lib/lib conftest.c -lpdf -lz -ltiff -lpng -ljpeg -lmysqlclient -lmhash -lmcrypt -lltdl -lgmp -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxmlparse -lxmltok -lresolv -lcrypt 1>&5 ./configure: line 59225: 21414 Segmentation fault ./conftest
what USE flags are in use? gcc version?
USE="-3dnow aalib -apm -arts -berkdb dvd -gdbm -gpm -java -kde -mikmod mysql -nls oss perl xml" gcc = 2.95.3
So far I have been unable to recreate this.
after much playing around, I've found that for whatever reason, doing a clean './configure' with no options clears something out and a subsequent ./configure with the origional options will then "just work". it appears to be related to the problem in http://forums.gentoo.org/viewtopic.php?t=11477 , as even with my clean configure in there, the same thing happens as in that forum thread. i removed --with-gmp, and everything worked, even without a clean ./configure.
I've disabled gmp support by default now