Re: Bug #1490: undefined symbols
| From: | Sascha Schumann | Date: | Thu, 03 Jun 1999 22:05:01 +0000 |
| Subject: | Re: Bug #1490: undefined symbols | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-6529@lists.php.net to get a copy of this message | ||
On Thu, Jun 03, 1999 at 07:36:39PM -0000, luc.germain@courrier.usherb.ca wrote:
> From: luc.germain@courrier.usherb.ca
> Operating system: aix 4.2.1
> PHP version: 3.0.7
> PHP Bug Type: Compile Failure
> Bug description: undefined symbols
>
> 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".
Well, autoconf cannot check for everything (even if we would try to do that,
there will be always systems which are not supported out of the box). If you
want to try to add support for your system, go ahead. I really cannot think of
when and why we would need to link with -lmygcc or what libs.a is.
If you just want to use PHP on your system:
LIBS="-lmygcc -ls" LDFLAGS=-L/prog/mysql/lib ./configure [other flags]
--
Regards,
Sascha Schumann
Consultant