Hello, I am compiling php on my computer and it errors at ./configure with checking whether the C++ compiler (c++ -O2 -pipe -march=athlon64 -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/usr/lib64 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/sun-jdk-1.5.0.02/jre/lib/amd64/server -L/opt/sun-jdk-1.5.0.02/jre/lib/amd64/server -Wl,-rpath,/opt/sun-jdk-1.5.0.02/jre/lib/amd64/native_threads -L/opt/sun-jdk-1.5.0.02/jre/lib/amd64/native_threads -Wl,-rpath,/opt/sun-jdk-1.5.0.02/jre/lib/amd64 -L/opt/sun-jdk-1.5.0.02/jre/lib/amd64 -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. Looking at config.log (attached) I see it's because it can't find -lqt, but I have qt libraries installed. If I do USE="-qt" it works. Reproducible: Always Steps to Reproduce: 1.emerge php 2.emerge mod_php 3. Actual Results: checking whether the C++ compiler (c++ -O2 -pipe -march=athlon64 -fomit-frame-pointer -L/usr/lib -L/usr/X11R6/lib -ltiff -L/usr/lib64 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/sun-jdk-1.5.0.02/jre/lib/amd64/server -L/opt/sun-jdk-1.5.0.02/jre/lib/amd64/server -Wl,-rpath,/opt/sun-jdk-1.5.0.02/jre/lib/amd64/native_threads -L/opt/sun-jdk-1.5.0.02/jre/lib/amd64/native_threads -Wl,-rpath,/opt/sun-jdk-1.5.0.02/jre/lib/amd64 -L/opt/sun-jdk-1.5.0.02/jre/lib/amd64 -Wl,-rpath,/usr/qt/3/lib -L/usr/qt/3/lib) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. Expected Results: php should have compiled Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r3 x86_64) ================================================================= System uname: 2.6.11-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 22 2005, 16:06:22)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=athlon64 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks multilib sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 16bit 3ds X Xaw4d a52 aac aalib aalibacpi accessibility accounting acl acpi acpi4linux aim alsa amd apache2 apm arts asterisk atlas audiofile avi bash-completion beep beepmp berkdb bidi bitmap-fonts blender-game bmp bonobo bzip2 bzlib calendar canna ccache cdb cdda cddb cdparanoia cdr cdrom clamav clanJavaScript clanVoice codecs cpulimit cracklib crypt cscope css csv ctype cups curl dga dio directfb divx4linux doc dv dvb dvd dvdr dvdread eds emacs emacs-w3 emul-linux encode escreen esd examples exif expat ext-png ext-zlib extensions extlib extras fam fame fbcon fbdev festival ffmpeg flac flash font-server foomaticdb fortran freetds freetpye freewnn ftp gb gd gdbm geoip gg ggi gif gimp gkrellm glade glut gmail gmp gnome gnomedb gnustep gphoto2 gpm graphviz gsl gsnd gstreamer gtk gtk2 gtkhtml html http httpd icq ieee1394 imagemagick imagemagik imap imlib inifile ipv6 java javadoc javascript jce jikes jp2 jpeg jpeg2k junit kadu-modules kadu-voice kde kdepim kerberos koffice-plugin krb4 lapack latex ldap leim lesstif libcaca libedit libgda libwww live lzo lzw lzw-tiff mad maildir mapeditor maps matroska matrox mbox mcal mikmod mime mjpeg mng motif mozilla mp3 mpeg msn mysql mythtv nas ncurses net nethack network nls nvidia nviz odbc offensive ofx ogg oggvorbis openal opengl openssh oracle oracle7 orathreads oss pam pcmcia pda pdf pdfkit pdflib pear-db perl php physfs png pnp portaudio posix postgres povray ppds print procmail profile python qt quicktime readline rplay rpm rss ruby samba sample scanner screenshot sdk sdl sndfile sounds soundtouch speedo speex spell spl sql sqlite ssl startup-notification stroke svg szip tcltk tcpd tga theora threads tiff timidity tools transcode truetype truetype-fonts trusted type1 type1-fonts unicode usb userlocales v4l vcd vcdimager vdesktop videos vim vim-pager vim-with-x virus-scan wifi withsamplescripts wmf wxwindows x11vnc xanim xfs xim xinetd xml xml2 xmlrpc xmms xosd xpm xprint xrandr xscreensaver xv xvid yahoo zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Created attachment 54482 [details] config.log of php 4.3.10
Where is your libqt.so ? /usr/qt/3 or what? (please give me a full path).
kkrizka@zorka ~ $ locate libqt.so /usr/qt/3/lib64/libqt.so.3.3.4 /usr/qt/3/lib64/libqt.so.3.3 /usr/qt/3/lib64/libqt.so.3 /usr/qt/3/lib64/libqt.so
I've got it here too checking for c++... c++ checking whether the C++ compiler (c++ -march=pentium3 -O3 -fomit-frame-pointer -pipe -L/usr/lib -L/usr/X11R6/lib -ltiff -L/usr/lib -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/interbase/lib -L/opt/interbase/lib -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/server -L/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386 -L/opt/blackdown-jdk-1.4.2.01/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. !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/mod_php-4.3.10/work/php-4.3.10/config.log !!! ERROR: dev-php/mod_php-4.3.10 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. root@sp700 michael # emerge info Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 Pentium III (Katmai) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 20 2005, 11:21:29)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://gentoo.netnitco.net ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="S3TC X X509 aac acl acpi activefilter adns aim alsa amd apache2 apm arts audiofile avantgo avi bcmath bdf berkdb bidi bitmap-fonts bmp bonobo bzlib cap cddb cdinstall cdparanoia cdr cdrom cgi chroot cjk client cpdflib crypt ctype cups curl curlwrappers db2 dba dio divx4linux djbfft dnd droproot dv dvb dvd dvdr dvdread edl eds emacs emacs-w3 emboss encode erandom esd evo exif ext-png ext-zlib extensions f77 faac faad fam fastcgi fbcon ffmpeg firebird flac flash fluidsynth fmod font-server foomaticdb fortran freetype freewnn ftp gb gcl gd gdbm geoip gif gimp gimpprint ginac glade glgd glut gmp gmtfull gnome gnomedb gnuplot gphoto2 gpm gps graphviz gs gsl gstreamer gtk gtk2 gtkhtml hal hardenedphp hbci hdf iconv icq ide idl ieee1394 image imagemagick imap imlib imlib2 innodb ipv6 irda irmc j2ee jabber jack java javacomm javadoc javamail javascript jbig jboss jce jms jmx joystick jp2 jpeg jpeg2k jta junit jython kadu-modules kadu-voice kakasi kde kerberos krb4 latex lcms ldap leim libdsk libg++ libgd libgda libsamplerate libwww live lm_sensors lua lufsusermount lzo lzw lzw-tiff m17n-lib mad maildir matrox mbox mcal mdb memlimit mhash migemo mikmod mime ming mixer mmap mmx mmx2 mng motif mozcalendar mozdomi mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn mule music mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh nas native ncurses net network nis nls nptl ntlm nviz oav objc ocaml odbc offensive ofx oggvorbis opengl opie oscar ospfapi oss pam parse-clocks pcap pcntl pcre pda pdf pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php physfs pic plotutils png portaudio posix postgres postgresql ppd ppds print pthreads python qt quicktime quotes readline rhino rogue rplay samba sasl scanner sdl servlet-2.3 servlet-2.4 session sftplogging shaper shared sharedmem sheep silc simplexml skk slang slp smime sndfile snmp sockets socks5 softquota sox spell sse ssl stencil-buffer stroke svg svga sysvipc szip t1lib tcpd tga theora tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vda vhosts videos virus-scan wifi wmf wxwin wxwindows x86 xatrix xchatdccserver xchattext xemacs xgetdefault xine xinerama xml xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xsl xv xvid xvmc yahoo yv12 zeo zlib zvbi" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
amd64: PHP is looking in /usr/qt/3/lib instead of /usr/qt/3/lib64 for the qt libs. The only argument we pass it is '/usr/qt/3' as the QT location. Could you please provide a patch for the configure.in fragment that allows it to check lib64 as well? mikezero1: it is customary to put your email in the CC when commenting on a bug. For your case, the bug source must be different. Look in the config.log file as directed by emerge, you'll probably find that one of your libraries is broken.
Right now there should be a symlink in /usr/qt/3 for lib -> lib64. If there isn't then qt didn't install correctly for some reason. Quite a few other things have issues without this symlink too. Please provide the output of ls -l /usr/qt/3
It works now. I made lib symlink to lib64
Right - I have double checked this and the current stable and unstable qt ebuilds should make the compatibility symlink. If they are not then we need to track down why not and correct this behaviour. I cannot reproduce this failure. It seems that your problem is solved, but I will keep an eye out for similar issues with the compatibility symlinks. When I have a little time I will create a patch for the configure script to allow better support for multiblib systems, unless someone else gets to it first.
Please test with the latest version of PHP that is available in portage (currently) PHP 4.3.11 and reopen if the problem persists.