#35743 [Opn->Bgs]: link error with static libraries
ID: 35743
Updated by: sniper@php.net
Reported By: webtech at get-telecom dot fr
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Solaris 10
PHP Version: 5.1.1
New Comment:
This has nothing to do with _PHP_, you need to recompile the libraries
you link it with.
Previous Comments:
------------------------------------------------------------------------
[2005-12-20 11:21:13] webtech at get-telecom dot fr
Description:
------------
Hello,
first, I want to say that I've read the two bugs #35465 and #35475 (see
at the end of description).
When linking with the libmysqlclient static library, libtool is unable
to link the libphp5.la object (I've got thousand of lines, but here's a
sample) :
fclose 0x623
/db/mysql/lib/libz.a(gzio.o)
fseek 0xe52
/db/mysql/lib/libz.a(gzio.o)
fseek 0xf6f
/db/mysql/lib/libz.a(gzio.o)
fread 0x39c
/db/mysql/lib/libz.a(gzio.o)
fread 0x430
/db/mysql/lib/libz.a(gzio.o)
fread 0x753
/db/mysql/lib/libz.a(gzio.o)
fread 0x892
/db/mysql/lib/libz.a(gzio.o)
qsort 0x228
/db/mysql/lib/libmysqlclient.a(my_lib.o)
qsort 0x14cb
/db/mysql/lib/libmysqlclient.a(ctype-simple.o)
fwrite 0x334
/db/mysql/lib/libz.a(gzio.o)
fwrite 0xa9d
/db/mysql/lib/libz.a(gzio.o)
fwrite 0xc4f
/db/mysql/lib/libz.a(gzio.o)
ftell 0x22c
/db/mysql/lib/libz.a(gzio.o)
exit 0x78
/db/mysql/lib/libmysqlclient.a(my_malloc.o)
exit 0x9e5
/db/mysql/lib/libmysqlclient.a(client.o)
exit 0x238
/db/mysql/lib/libmysqlclient.a(default.o)
exit 0x485
/db/mysql/lib/libmysqlclient.a(default.o)
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
I've tried the two "solutions" of the two bugs #35465 and #35475 :
- the first one is to passing the option -fpic in CFLAFS variable, but
it won't work for me.
- and the second was to use the libtool of php 5.0.5, but link failed
too :
Undefined first referenced
symbol in file
libiconv_close ext/gd/libgd/gdkanji.lo
libiconv_open ext/gd/libgd/gdkanji.lo
fdatasync
ext/pdo_sqlite/sqlite/src/os_unix.lo (symbol belongs to implicit
dependency /lib/librt.so.1)
libiconv ext/gd/libgd/gdkanji.lo
ld: fatal: Symbol referencing errors. No output written to
sapi/cli/php
I've tried too with the snapshot of php 5.1.2 dev, but it's the same !
What can I do to compile 5.1.1 ?
Thanks for your help
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35743&edit=1
Thread (6 messages)