Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7082 - mod_php configure script calls conftest, which segfaults
Summary: mod_php configure script calls conftest, which segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-26 16:47 UTC by David H.
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David H. 2002-08-26 16:47:27 UTC
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
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-08-27 11:52:36 UTC
what USE flags are in use? gcc version?
Comment 2 David H. 2002-08-27 16:45:04 UTC
USE="-3dnow aalib -apm -arts -berkdb dvd -gdbm -gpm -java -kde -mikmod mysql
-nls oss perl xml"

gcc = 2.95.3
Comment 3 Ryan Phillips (RETIRED) gentoo-dev 2002-08-28 13:14:48 UTC
So far I have been unable to recreate this.
Comment 4 David H. 2002-08-28 17:43:15 UTC
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.
Comment 5 Ryan Phillips (RETIRED) gentoo-dev 2002-09-01 21:23:26 UTC
I've disabled gmp support by default now