note 56649 added to install.unix.apache2

From: Date: Sun, 11 Sep 2005 02:26:11 +0000
Subject: note 56649 added to install.unix.apache2
Groups: php.notes 
Request: Send a blank email to php-notes+get-95002@lists.php.net to get a copy of this message
On my solaris 8 with gcc(2.95.3/3.4.2)compile failed: apache2.0.52+php5.0.5+mysql4.0.18 the tail of config.log configure:60057: checking for mysql_close in -lmysqlclient configure:60076: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/apps/mysql/lib -L/apps/mysql/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -R/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient -lpng -lz -lz -lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 ld: warning: file /apps/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64 Undefined first referenced symbol in file mysql_close /var/tmp/ccTvHUu9.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure: failed program was: #line 60065 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_close(); int main() { mysql_close() ; return 0; } configure:60297: checking for mysql_error in -lmysqlclient configure:60316: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/apps/mysql/lib -L/apps/mysql/lib -R/usr/local/lib -L/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -R/usr/local/lib -L/usr/local/lib -R/usr/local -L/usr/local conftest.c -lmysqlclient -lz -lpng -lz -lz -lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 ld: warning: file /apps/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64 Undefined first referenced symbol in file mysql_error /var/tmp/ccLKsncy.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure: failed program was: #line 60305 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); int main() { mysql_error() ; return 0; } Does anyone have instructions? Thanks. Jupy ---- Manual Page -- http://www.php.net/manual/en/install.unix.apache2.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56649 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56649&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56649&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56649&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56649&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56649&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56649&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56649&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95002) next »