emerge --update --deep --verbose mod_php Calculating dependencies ...done! >>> emerge (1 of 1) dev-php/mod_php-4.3.4-r4 to / >>> md5 src_uri ;-) php-4.3.4.tar.bz2 >>> md5 src_uri ;-) php-4.3.2-fopen-url-secure.patch >>> Unpacking source... * Due to some previous bloopers with PHP and slotting, you may have * multiple instances of mod_php installed. Please look at the autoclean * output at the end of the emerge and unmerge all but relevant * instances. * Apache2 only detected xml >>> Unpacking php-4.3.4.tar.bz2 to /var/tmp/portage/mod_php-4.3.4-r4/work * Applying mod_php-4.3.4-r3.diff... [ ok ] >>> Source unpacked. * Apache2 MPM: prefork java !alpha * JDK version: 1.4.1 berkdb * Enabling NBDM * Enabling DB4 x86 x86 !alpha snmp X pdflib gd png jpeg tiff mysql truetype curl mysql imap ssl * Building IMAP with SSL support. creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc -march=pentium3 -O2 -pipe ) works... yes checking whether the C compiler (gcc -march=pentium3 -O2 -pipe ) is a cross-comp iler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for re2c... exit 0; checking for ranlib... ranlib checking whether ln -s works... yes checking for gawk... gawk checking for bison... bison -y checking bison version... 1.875 (ok) checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for working const... yes checking flex version... 2.5.4 (ok) checking for pthreads_cflags... -pthread checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache 1.x module support via DSO through APXS... no checking for Apache 1.x module support... no checking for member fd in BUFF *... no checking for mod_charset compatibility option... no checking for Apache 2.0 filter-module support via DSO through APXS... no checking for Apache 2.0 handler-module support via DSO through APXS... yes checking for Caudium support... no checking for CLI build... yes checking for embedded SAPI library support... no checking for Zeus ISAPI support... no checking for NSAPI support... no checking for PHTTPD support... no checking for Pi3Web support... no checking for Roxen/Pike support... no checking for Servlet support... no checking for thttpd... no checking for TUX... no checking for webjames... no checking for chosen SAPI module... apache2handler Running system checks checking for missing declarations of reentrant functions... done checking for sendmail... /usr/sbin/sendmail checking whether system uses EBCDIC... no checking for socket... yes checking for htonl... yes checking for gethostname... yes checking for gethostbyaddr... yes checking for yp_get_default_domain... yes checking for dlopen... yes checking for sin in -lm... yes checking for res_search... no checking for __res_search... no checking for res_search in -lresolv... yes checking for inet_aton... yes checking for dn_skipname... no checking for __dn_skipname... yes checking for ANSI C header files... yes checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking for fclose declaration... ok checking for dirent.h... yes checking for ApplicationServices/ApplicationServices.h... no checking for sys/param.h... yes checking for sys/types.h... yes checking for sys/time.h... yes checking for netinet/in.h... yes checking for alloca.h... yes checking for arpa/inet.h... yes checking for arpa/nameser.h... yes checking for assert.h... yes checking for crypt.h... yes checking for fcntl.h... yes checking for grp.h... yes checking for ieeefp.h... no checking for langinfo.h... yes checking for limits.h... yes checking for locale.h... yes checking for monetary.h... yes checking for mach-o/dyld.h... no checking for netdb.h... yes checking for pwd.h... yes checking for resolv.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdlib.h... yes checking for string.h... yes checking for syslog.h... yes checking for sysexits.h... yes checking for sys/file.h... yes checking for sys/mman.h... yes checking for sys/mount.h... yes checking for sys/poll.h... yes checking for sys/resource.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/statfs.h... yes checking for sys/statvfs.h... yes checking for sys/vfs.h... yes checking for sys/sysexits.h... no checking for sys/varargs.h... no checking for sys/wait.h... yes checking for unistd.h... yes checking for unix.h... no checking for utime.h... yes checking for sys/utsname.h... yes checking for sys/ipc.h... yes checking for dlfcn.h... yes checking for fopencookie... yes checking for broken getcwd... no checking for broken libc stdio... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for tm_zone in struct tm... yes checking for tm_gmtoff in struct tm... yes checking for struct flock... yes checking for socklen_t... yes checking size of long... 4 checking size of int... 4 checking for st_blksize in struct stat... yes checking for st_blocks in struct stat... yes checking for st_rdev in struct stat... yes checking for size_t... yes checking for uid_t in sys/types.h... yes checking for struct sockaddr_storage... yes checking for IPv6 support... yes checking for vprintf... yes checking for alphasort... yes checking for asctime_r... yes checking for chroot... yes checking for ctime_r... yes checking for cuserid... yes checking for crypt... yes checking for flock... yes checking for ftok... yes checking for funopen... no checking for gai_strerror... yes checking for gcvt... yes checking for getlogin... yes checking for getprotobyname... yes checking for getprotobynumber... yes checking for getservbyname... yes checking for getservbyport... yes checking for getrusage... yes checking for gettimeofday... yes checking for gmtime_r... yes checking for isascii... yes checking for link... yes checking for localtime_r... yes checking for lockf... yes checking for lrand48... yes checking for memcpy... yes checking for memmove... yes checking for mkstemp... yes checking for mmap... yes checking for nl_langinfo... yes checking for perror... yes checking for poll... yes checking for putenv... yes checking for realpath... yes checking for random... yes checking for rand_r... yes checking for regcomp... yes checking for res_search... (cached) yes checking for scandir... yes checking for setitimer... yes checking for setlocale... yes checking for localeconv... yes checking for setsockopt... yes checking for setvbuf... yes checking for shutdown... yes checking for sin... yes checking for snprintf... yes checking for srand48... yes checking for srandom... yes checking for statfs... yes checking for statvfs... yes checking for std_syslog... no checking for strcasecmp... yes checking for strcoll... yes checking for strdup... yes checking for strerror... yes checking for strftime... yes checking for strstr... yes checking for strtok_r... yes checking for symlink... yes checking for tempnam... yes checking for tzset... yes checking for unsetenv... yes checking for usleep... yes checking for utime... yes checking for vsnprintf... yes checking for getaddrinfo... yes checking for strlcat... no checking for strlcpy... no checking for getopt... yes checking whether utime accepts a null argument... yes checking for working alloca.h... (cached) yes checking for alloca... yes checking whether sprintf is broken... no checking whether snprintf is broken... no checking for declared timezone... yes checking for type of reentrant time-related functions... POSIX checking for readdir_r... yes checking for type of readdir_r... POSIX General settings checking whether to include debugging symbols... no checking layout of installed files... PHP checking path to configuration file... /etc/php/apache2-php4 checking directory to be scanned for configuration files... DEFAULT checking whether to enable safe mode by default... no checking for safe mode exec dir... /usr/local/php/bin checking whether to enable PHP's own SIGCHLD handler... no checking whether to enable magic quotes by default... no checking whether to enable runpaths... yes checking whether to explicitly link against libgcc... no checking whether to enable short tags by default... yes checking whether to enable dmalloc... no checking whether to enable IPv6 support... yes checking whether to enable versioning... yes Configuring extensions checking for OpenSSL support... yes checking for pkg-config... /usr/bin/pkg-config checking for OpenSSL version... >= 0.9.6 checking for CRYPTO_free in -lcrypto... yes checking for SSL_CTX_set_ssl_version in -lssl... yes checking for ZLIB support... yes checking if the location of ZLIB install directory is defined... /usr checking for gzgets in -lz... yes checking whether to enable bc style precision math functions... yes checking for BZip2 support... yes checking for BZ2_bzerror in -lbz2... yes checking whether to enable calendar conversion support... yes checking for cpdflib support... no checking for CRACKlib support... yes checking whether to enable ctype functions... yes checking for CURL support... yes checking for cURL 7.9.8 or greater... libcurl 7.11.0 checking for curl_easy_perform in -lcurl... yes checking for curl_version_info in -lcurl... yes checking for cyrus imap support... no checking for xDBM support... no checking whether to enable DBA... no checking for gdbm_open in -lgdbm... yes checking for GDBM support... yes checking for dbm_open in -lndbm... yes checking for NDBM support... yes checking for db4 minor version and patch level... ok checking for Berkeley DB4 support... yes checking for Berkeley DB3 support... no checking for Berkeley DB2 support... no checking for DBM support... no checking for CDB support... builtin checking for INI File support... builtin checking for FlatFile support... builtin checking whether to enable DBA interface... yes checking whether to enable dbase support... yes checking whether to enable dbx support... yes checking whether to enable direct I/O support... yes checking for DOM support... yes checking for libxml version... >= 2.4.14 checking for DOM XSLT support... /usr checking for DOM EXSLT support... /usr checking for libxslt version... >= 1.0.18 checking for libexslt version... >= 1.0.3 checking whether to enable EXIF (metadata from images) support... yes checking for FrontBase SQL92 (fbsql) support... no checking for FDF support... no checking whether to enable the bundled filePro support... yes checking for FriBidi support... no checking whether to enable FTP support... yes checking for GD support... yes checking for the location of libjpeg... /usr checking for the location of libpng... /usr checking for the location of libXpm... /usr/X11R6 checking for FreeType 1.x support... /usr checking for FreeType 2... /usr checking for T1lib support... /usr checking whether to enable truetype string function in GD... yes checking whether to enable JIS-mapped Japanese font support in GD... no checking for fabsf... yes checking for floorf... yes checking for jpeg_read_header in -ljpeg... yes checking for png_write_image in -lpng... yes checking for XpmFreeXpmImage in -lXpm... yes no - FreeType 2.x is to be used instead checking for T1_LoadFont in -lt1... yes checking for GNU gettext support... yes checking for bindtextdomain in -lintl... no checking for bindtextdomain in -lc... yes checking for ngettext in -lc... yes checking for dngettext in -lc... yes checking for dcngettext in -lc... yes checking for bind_textdomain_codeset in -lc... yes checking for GNU MP support... no checking for hwapi support... no checking for Hyperwave support... no checking for iconv support... yes checking for iconv... yes checking if iconv is glibc's... yes checking if iconv supports errno... yes checking if your cpp allows macro usage in include lines... yes checking for IMAP support... yes checking for pam_start in -lpam... yes checking for crypt in -lcrypt... yes checking whether SSL libraries are needed for c-client... /usr/lib checking whether IMAP works... yes checking for Informix support... no checking for Ingres II support... no checking for InterBase support... yes checking for isc_detach_database in -lgds... yes checking for IRCG support... no checking for Java support... yes checking Java Jar location... /opt/blackdown-jdk-1.4.1/bin/jar cf checking Java C location... /opt/blackdown-jdk-1.4.1/bin/javac checking Checking for libjava... /opt/blackdown-jdk-1.4.1/jre/lib/i386 checking for LDAP support... yes checking for 3 arg ldap_set_rebind_proc... yes checking for ldap_parse_reference... yes checking for ldap_start_tls_s... yes checking whether to enable multibyte string support... yes checking whether to enable multibyte regex support... yes checking for external libmbfl... no checking for MCAL support... yes checking for mcrypt support... yes checking for mcrypt_module_open in -lmcrypt... yes checking for mcrypt_generic_deinit in -lmcrypt... yes checking for MCVE support... no checking OpenSSL dir for MCVE... no checking for mhash support... yes checking whether to include mime_magic support... yes checking for MING support... yes checking for sin in -lm... (cached) yes checking for Ming_useSWFVersion in -lming... yes checking for destroySWFBlock... missing checking for mnoGoSearch support... no checking for msession support... no checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... /var/run/mysqld/mysq ld.sock checking for MySQL UNIX socket location... /var/run/mysqld/mysqld.sock checking size of char... 1 checking size of int... (cached) 4 checking size of long... (cached) 4 checking size of long long... 8 checking for size_t... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking for uid_t in sys/types.h... (cached) yes checking for type ulong... yes checking for type uchar... no checking for type uint... yes checking for type ushort... yes checking for int8... no checking base type of last arg to accept... socklen_t checking return type of qsort... void checking for mysql_close in -lmysqlclient... yes checking for ncurses support... no checking for Oracle-OCI8 support... no checking for Adabas support... no checking for SAP DB support... no checking for Solid support... no checking for IBM DB2 support... no checking for Empress support... no checking for Empress local access support... no checking for Birdstep support... no checking for a custom ODBC support... no checking for iODBC support... no checking for Easysoft ODBC-ODBC Bridge support... no checking for unixODBC support... yes checking for Oracle-ORACLE support... no checking whether to enable user-space object overloading support... yes checking for Ovrimos SQL Server support... no checking whether to enable pcntl support... yes checking for fork... no configure: error: pcntl: fork() not supported by this platform !!! ERROR: dev-php/mod_php-4.3.4-r4 failed. !!! Function econf, Line 365, Exitcode 1 !!! econf failed Reproducible: Always Steps to Reproduce: 1. 2. 3. emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.3-rc1) sys-kernel/linux-headers-2.6.1 ================================================================= System uname: 2.6.3-rc1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.57a,sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib accessibility acl alsa antlr apache2 apm arts artswrappersuid atlas avi bcel berkdb bidi bonobo bsh cap caps cdr chroot crypt cscope cups curl dga directfb doc dv dvb dvd encode esd evo faad fbcon firebird flac flash foomaticdb freetds gb gd gdbm ggi gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idea imagemagick imap imlib informix innodb ipv6 java javamail javascript jbig jdepend jpeg jsch junit jython kde kerberos krb4 lcms ldap libg++ libgda libwww log4j mad maildir matroska mbox mcal mdb menu mikmod motif mozilla mozinterfaceinfo moznocompose moznoirc moznomail mozsvg mozxmlterm mpeg mpi mysql nas ncurses nhc98 nls nptl objc oci8 odbc oggvorbis opengl optional-tasks oro oss pam pcmcia pda pdflib perl pg-hier pg-intdatetime pg-vacuumdelay pic png pnp postgres ppds python qt quicktime readline regexp rhino rplay ruby ruby18 samba sasl sdk sdl skey slang slp snmp sox spell sqlite sse ssl stroke svga tcltk tcpd tetex tiff truetype trusted ucs2 unicode usb wmf x86 xalan xerces xface xinerama xml xml2 xmms xv zlib"
failed for me to, compiled ok before i upgraded gcc to 3.3.2-r7, then re-emerged mod_php bacuase of another problem checking whether to enable POSIX-like functions... yes checking for seteuid... yes checking for setegid... yes checking for setsid... yes checking for getsid... yes checking for setpgid... yes checking for getpgid... yes checking for ctermid... yes checking for mkfifo... yes checking for getrlimit... yes checking for PSPELL support... yes checking for QtDOM support... yes checking for c++... g++ checking whether the C++ compiler (g++ -O2 -march=athlon-xp -L/usr/lib -ldb-4.1 -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386/server -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386 -L/opt/blackdown-jdk-1.4.1/jre/lib/i386 -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. !!! ERROR: dev-php/mod_php-4.3.4-r4 failed. !!! Function econf, Line 365, Exitcode 1 !!! econf failed
revdep-rebuild will solve this, or attach config.log and i'll tell you just what to rebuild. please attach long output like this in future, and not paste all of it in.
no response from user, closing.
I had the same problem as E Smith. The problem turned out to be QT's dependance on libGL. I'm not entirely sure why, but this is a common problem for NVidia users. The solution is to export LDFLAGS="-lGL", then re-emerge. This solved the problem for me. Verify for yourself if this is your problem by checking: /var/tmp/portage/mod_php-4.3.4/work/php-4.3.4/config.log At the endof of the file you may see stuff like this: /usr/qt/3/lib/libqt.so: undefined reference to `glXDestroyContext@LIBGL' /usr/qt/3/lib/libqt.so: undefined reference to `glXIsDirect@LIBGL' ... etc, etc ... If youdo, it's a GL related problem and the above solution should fix ya up.
I've experienced the same bug. I tried: revdep-rebuild; emerge mod_php and export LDFLAGS="-lGL"; emerge mod_php both resulted in the same error as the original poster.