#20701 [NEW]: ld: can't locate file for: -laprutil and after
| From: | esj at ufr-info-p6 dot jussieu dot fr | Date: | Thu, 28 Nov 2002 16:54:26 +0000 |
| Subject: | #20701 [NEW]: ld: can't locate file for: -laprutil and after | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-26106@lists.php.net to get a copy of this message | ||
From: esj@ufr-info-p6.jussieu.fr
Operating system: Mac OS 10.2.2
PHP version: 4CVS-2002-11-28 (dev)
PHP Bug Type: Apache2 related
Bug description: ld: can't locate file for: -laprutil and after
I tried to install php 4.4.0dev with Apache 2.0.43 by doing:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql
make
and got:
ld: can't locate file for: -laprutil
I deduced from bug reports on other OS that my be this file
was not necessary, and removed "-laprutil" from the makefile.
Then, make goes further, with similar problems.
You will find below the diff between the original Makefile
and the final. With this, make achieve its goal, and php
seems to work, and to connect to the pgsql server through
my browser.
However, ld produced a lot of warnings about multiple
definition
ld: warning multiple definitions of symbol _XmlInitEncodingNS
ext/xml/expat/xmltok.o definition of _XmlInitEncodingNS in section
(__TEXT,__text)
/usr/local/apache2/bin/httpd definition of _XmlInitEncodingNS
and lot of others. Is there any problems with this ?
Here is the diff :
14c14
< MH_BUNDLE_FLAGS = -bundle -bundle_loader /usr/local/apache2/bin/httpd
-L/Users/Shared/httpd-2.0.43/srclib/apr-util/xml/expat/lib
-L/usr/local/apache2/lib -laprutil
/Users/Shared/httpd-2.0.43/srclib/apr-util/xml/expat/lib/libexpat.la
-L/usr/local/apache2/lib -lapr-0 -lm
---
> MH_BUNDLE_FLAGS = -bundle -bundle_loader /usr/local/apache2/bin/httpd
-L/Users/Shared/httpd-2.0.43/srclib/apr-util/xml/expat/lib
-L/usr/local/apache2/lib -L/usr/lib -lssl -lcrypto
69c69
< EXTRA_LIBS = -lpq -lm
---
> EXTRA_LIBS = -lpq -lm -lssl -lcrypto
84c84
< PHP_LDFLAGS = -L/usr/local/pgsql/lib
---
> PHP_LDFLAGS = -L/usr/local/pgsql/lib -L/usr/lib
-------
E. Saint-James
--
Edit bug report at http://bugs.php.net/?id=20701&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20701&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20701&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20701&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20701&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20701&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20701&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20701&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20701&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20701&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20701&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20701&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20701&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20701&r=isapi