|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP compile - with MySQL - under 64-bit Solaris?
Has anybody build PHP from scratch on 64-bit Solaris?
Am running into trouble - in the confguration step - in portion related to MySQL setup. ld is complaining about wrong ELF flags... Here are some relevant details from the config.log: -------------------------------------------------------- configure:59182: checking for mysql_close in -lmysqlclient configure:59201: gcc -o conftest -I/usr/local/include -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/local/lib -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2 -R/usr/local/lib -L/usr/local/lib -R/usr/local/ssl/lib -L/usr/local/ssl/lib conftest.c -lmysqlclient -liconv -lbz2 -lz -lssl -lcrypto -lresolv -lm -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(client.o): wrong ELF class: ELFCLASS64 ld: warning: file /usr/local/mysql/lib/libz.a(crc32.o): wrong ELF class: ELFCLASS64 Undefined first referenced symbol in file mysql_close /var/tmp//ccE9AHvm.o ld: fatal: Symbol referencing errors. No output written to conftest -------------------------------------------------------- seems clear to be an error wtih ld - can anyone point mein the right direction? thanks in advance. Lou |
|
#2
|
|||
|
|||
|
gcc 3.3.2 is pretty old - I don't know that it can handle creating 64 bit binaries.
The issue though seems to be that MySQL was compiled for 64 bits but you're compiling with 32 bits. I'd look at the gcc 3.3.2 manual to see how to turn on 64 bit compiling or recompile MySQL for 32 bits.
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > PHP compile - with MySQL - under 64-bit Solaris? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|