#35743 [NEW]: link error with static libraries
From: webtech at get-telecom dot fr
Operating system: Solaris 10
PHP version: 5.1.1
PHP Bug Type: Compile Failure
Bug description: link error with static libraries
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 bug report at http://bugs.php.net/?id=35743&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35743&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35743&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35743&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35743&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35743&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35743&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35743&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35743&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35743&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35743&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35743&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35743&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35743&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35743&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35743&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35743&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35743&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35743&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35743&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35743&r=mysqlcfg
Thread (6 messages)
- webtech at get-telecom dot fr