#41699 [Csd->Bgs]: Compile failure with gcc 4.1.2 and varargs.h

From: Date: Thu, 28 Jun 2007 08:50:40 +0000
Subject: #41699 [Csd->Bgs]: Compile failure with gcc 4.1.2 and varargs.h
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114390@lists.php.net to get a copy of this message
ID: 41699 Updated by: tony2001@php.net Reported By: webtech at get-telecom dot fr -Status: Closed +Status: Bogus Bug Type: Compile Failure Operating System: Solaris 10 (AMD64) PHP Version: 5.2.3 Previous Comments: ------------------------------------------------------------------------ [2007-06-28 08:40:46] webtech at get-telecom dot fr You're right, I just add "-m64" in CFLAGS and LDFLAGS variables and now it compiles. The only problem is that when I configured compilation, I had no error messages, only when I took a look in config.log... Thanks for your help. ------------------------------------------------------------------------ [2007-06-27 13:45:12] tony2001@php.net ./configure fails to detect this because of the problem below: configure:52817: gcc -o conftest -I/usr/include -g -O2 -D_POSIX_PTHREAD_SEMANTICS -I/usr/pkg/include -L/usr/lib -L/usr/pkg/lib -R/usr/ucblib -L/usr/ucblib -R/opt/gcc412/lib/gcc/i386-pc-solaris2.10/4.1.2 -L/opt/gcc412/lib/gcc/i386-pc-solaris2.10/4.1.2 -R/usr/pkg/lib -L/usr/pkg/lib -R/usr/pkg//lib -L/usr/pkg//lib conftest.c -lldap -llber -lgd -lpng -lz -ljpeg -lcurl -lz -lresolv -lm -lnsl -lsocket -lgcc -lxml2 -lz -lm -lsocket -lnsl -lcurl -lidn -lssl -lcrypto -lsocket -lnsl -lz -lxml2 -lz -lm -lsocket -lnsl 1>&5 ld: fatal: file /usr/pkg/lib/liblber.so: wrong ELF class: ELFCLASS64 ld: fatal: file /usr/pkg/lib/libgd.so: wrong ELF class: ELFCLASS64 ld: fatal: file /usr/pkg/lib/libcurl.so: wrong ELF class: ELFCLASS64 ld: fatal: file /usr/pkg/lib/libcurl.so: wrong ELF class: ELFCLASS64 ld: fatal: file /usr/pkg/lib/libidn.so: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to conftest collect2: ld returned 1 exit status Looks like you put 64bit libraries to wrong place. ------------------------------------------------------------------------ [2007-06-27 13:27:34] webtech at get-telecom dot fr OK, you can have a look at perso.enst.fr/~allain/phptemp/config.log ------------------------------------------------------------------------ [2007-06-27 11:47:06] tony2001@php.net Please put your config.log somewhere so that I can take a look at it. ------------------------------------------------------------------------ [2007-06-21 14:13:43] webtech at get-telecom dot fr No, no CFLASGS / CPPFLAGS variable are set. My defaut compiler is gcc3. In order to use gcc4, I've added at the beginning of the PATH variable : $gcc4_home/bin:$gcc4_home/include:$gcc4_home/lib ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41699 -- Edit this bug report at http://bugs.php.net/?id=41699&edit=1

« previous php.bugs (#114390) next »