From:             martinkuria at hotmail dot com
Operating system: Solaris9
PHP version:      5.0.0
PHP Bug Type:     Compile Failure
Bug description:  php mysql compile fail

Description:
------------
I am installing php but am getting the error below, could it be this
php-release mysql-client is not included please advice

Reproduce code:
---------------
configure:39850: checking if your cpp allows macro usage in include lines
configure:39862: gcc -c -I/usr/include -g -O2  -D_POSIX_PTHREAD_SEMANTICS
conftest.c 1>&5
configure:40127: checking for IMAP support
configure:41422: checking for Informix support
configure:42018: checking for Ingres II support
configure:42534: checking for InterBase support
configure:43344: checking for IRCG support
configure:43972: checking for LDAP support
configure:44018: checking for LDAP Cyrus SASL support
configure:46735: checking whether to enable multibyte string support
configure:46781: checking whether to enable multibyte regex support
configure:46806: checking for external libmbfl
configure:48142: checking for mcrypt support
configure:48879: checking for MCVE support
configure:48925: checking OpenSSL dir for MCVE
configure:50291: checking for mhash support
configure:50701: checking whether to include mime_magic support
configure:50994: checking for MING support
configure:51669: checking for mnoGoSearch support
configure:52083: checking for msession support
configure:52678: checking for mSQL support
configure:53125: checking for MSSQL support via FreeTDS
configure:53707: checking for MySQL support
configure:53753: checking for specified location of the MySQL UNIX socket
configure:53810: checking for MySQL UNIX socket location
configure:53966: checking for mysql_close in -lmysqlclient
configure:53985: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS
-R/usr/local/mysql//lib -L/usr/local/mysql//lib  -R/usr/ucblib
-L/usr/ucblib -R/local/bin/../lib/gcc-lib/sparc-sun-solaris2.9/3.3
-L/local/bin/../lib/gcc-lib/sparc-sun-solaris2.9/3.3 -R/usr/local/lib
-L/usr/local/lib -R/usr/local/ssl/lib -L/usr/local/ssl/lib
-R/usr/openwin/lib -L/usr/openwin/lib -R/usr/local/gd// -L/usr/local/gd//
conftest.c -lmysqlclient  -lgd -lt1 -lfreetype -lpng -lz -ljpeg -lcurl
-lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lsocket  -lgcc -lxml2
-lz -liconv -lm -lsocket -lnsl -lcurl -lz -lssl -lcrypto -ldl -lsocket
-lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5
ld: warning: file /usr/local/mysql//lib/libmysqlclient.a(libmysql.o):
wrong ELF class: ELFCLASS64
Undefined                       first referenced
 symbol                             in file
mysql_close                         /var/tmp//ccYGWfaf.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 53974 "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:54190: checking for mysql_error in -lmysqlclient
configure:54209: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS
-R/usr/local/mysql//lib -L/usr/local/mysql//lib  -R/usr/ucblib
-L/usr/ucblib -R/local/bin/../lib/gcc-lib/sparc-sun-solaris2.9/3.3
-L/local/bin/../lib/gcc-lib/sparc-sun-solaris2.9/3.3 -R/usr/local/lib
-L/usr/local/lib -R/usr/local/ssl/lib -L/usr/local/ssl/lib
-R/usr/openwin/lib -L/usr/openwin/lib -R/usr/local/gd// -L/usr/local/gd//
-R/usr -L/usr conftest.c -lmysqlclient  -lz -lgd -lt1 -lfreetype -lpng -lz
-ljpeg -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lsocket 
-lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lcurl -lz -lssl -lcrypto -ldl
-lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5
ld: warning: file /usr/local/mysql//lib/libmysqlclient.a(libmysql.o):
wrong ELF class: ELFCLASS64
Undefined                       first referenced
 symbol                             in file
mysql_error                         /var/tmp//ccmHP4RE.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 54198 "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; }



-- 
Edit bug report at http://bugs.php.net/?id=29520&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29520&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29520&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29520&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29520&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29520&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29520&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29520&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29520&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29520&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29520&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29520&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29520&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29520&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29520&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29520&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29520&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29520&r=float

Reply via email to