note 56649 rejected from install.unix.apache2 by betz
| From: | betz@php.net | Date: | Sun, 11 Sep 2005 06:16:44 +0000 |
| Subject: | note 56649 rejected from install.unix.apache2 by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95004@lists.php.net to get a copy of this message | ||
Note Submitter: pengqj at njau dot edu dot cn
----
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