php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1490 undefined symbols
Submitted: 1999-06-03 15:36 UTC Modified: 1999-06-20 09:25 UTC
From: luc dot germain at courrier dot usherb dot ca Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.7 OS: aix 4.2.1
Private report: No CVE-ID: None
 [1999-06-03 15:36 UTC] luc dot germain at courrier dot usherb dot ca
When compiling php3 with support for IMAP and MySQL, on AIX 4.2.1, I have undefined symbols on link:

        ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:../../support/httpd.exp  -
bE:`echo libphp3.so|sed -e 's:\.so$:.exp:'` -lc -o libphp3.so mod_php3.so-o libm
odphp3-so.a  -R/prog/mysql/lib -L/prog/mysql/lib -lmysqlclient        -L/prog/li
b -R/prog/lib -lldap -llber      -L/prog/lib -lc-client              -lm -ldl -l
nsl    -lld
ld: 0706-027 The -R /prog/mysql/lib flag is ignored.
ld: 0706-027 The -R /prog/lib flag is ignored.
ld: 0711-317 ERROR: Undefined symbol: .__udivdi3
ld: 0711-317 ERROR: Undefined symbol: .loginrestrictions
ld: 0711-317 ERROR: Undefined symbol: .authenticate


Please note that -R option is not working for ld on AIX 4.2.1 (but configure think it does). The __udivdi3 symbol can be found in /prog/mysql/lib/libmygcc.a (used for mysql support) and the 2 others are found in /usr/lib/libs.a (used for imap support).

Theses librairies should be added by "configure".

Thanks

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-20 09:25 UTC] sas at cvs dot php dot net
Configure PHP with 

LDFLAGS=-L/prog/mysql/lib LIBS="-lmygcc -ls" ./configure ...
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 27 05:03:35 2021 UTC