php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36020 fails to link against libmysqlclient.a
Submitted: 2006-01-15 08:26 UTC Modified: 2006-01-15 21:13 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ozone at cname dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.2 OS: solaris 9
Private report: No CVE-ID: None
 [2006-01-15 08:26 UTC] ozone at cname dot com
Description:
------------
environment: solaris 9u7, gcc 3.4.2.
1. install mysql 5.0.18 (binary package from mysql.com)
2. configure php 5.1.2 (or 5.1.1) distribution, --with-mysql=/opt/mysql/mysql
3. make
4. build fails during final link stage

php 5.0.5 compiles cleanly and works fine with the exact same options.

behavior is identical to #35492, but no resolution is given for that bug other than "it's a duplicate of some other bug" (which one?)


Reproduce code:
---------------
from config.nice:

'./configure' \
'--prefix=/usr/local' \
'--with-apxs2=/usr/local/bin/apxs' \
'--with-mysql=/opt/mysql/mysql' \
'--with-xsl=/usr/local' \
'--with-openssl=/usr/local' \
'--with-gd=/usr/local' \
'--with-mysql-sock=/tmp/mysql.sock' \
'--with-zlib' \
'--with-zlib-dir=/usr/local' \
'--enable-sockets' \
'--enable-dbase' \
"$@"


Expected result:
----------------
a working php...


Actual result:
--------------
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown>                           0x0         /opt/mysql/mysql/lib/libmysqlclient.a(ctype.o)
<unknown>                           0x4         /opt/mysql/mysql/lib/libmysqlclient.a(ctype.o)
<unknown>                           0x8         /opt/mysql/mysql/lib/libmysqlclient.a(ctype.o)
<unknown>                           0xc         /opt/mysql/mysql/lib/libmysqlclient.a(ctype.o)
<unknown>                           0x0         /opt/mysql/mysql/lib/libmysqlclient.a(default.o)
<unknown>                           0x1c        /opt/mysql/mysql/lib/libmysqlclient.a(default.o)
mysql_unix_port                     0x58        /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o)
mysql_unix_port                     0xa4        /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o)
mysql_unix_port                     0xb4        /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o)
mysql_unix_port                     0xb8        /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o)
mysql_unix_port                     0xd4        /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o)
mysql_unix_port                     0xe8        /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o)

(hundreds of lines of failed symbols, all from libmysqlclient.a)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-15 14:59 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See also bug #34516

 [2006-01-15 15:00 UTC] sniper@php.net
Hint: Next time, try actually searching the bug database first.
 [2006-01-15 21:04 UTC] ozone at cname dot com
i did search the bug database; duplicates against 5.1.* were not found. the behavior ("works in 5.0.5") implies an incompatible change in 5.1.*.

switching to gnu ld does not fix the problem, either; root cause is the libraries included with the mysql binary package for solaris.
 [2006-01-15 21:13 UTC] ozone at cname dot com
http://bugs.mysql.com/16520
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 07:01:30 2024 UTC