#20701 [Opn->Fbk]: ld: can't locate file for: -laprutil and after
| From: | iliaa@php.net | Date: | Sat, 07 Dec 2002 07:59:15 +0000 |
| Subject: | #20701 [Opn->Fbk]: ld: can't locate file for: -laprutil and after | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26966@lists.php.net to get a copy of this message | ||
ID: 20701
Updated by: iliaa@php.net
Reported By: esj@ufr-info-p6.jussieu.fr
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Mac OS 10.2.2
PHP Version: 4CVS-2002-11-28 (dev)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
try compiling with --with-apxs2 without specifying the patch to the
apxs utility.
Previous Comments:
------------------------------------------------------------------------
[2002-11-29 08:38:58] esj@ufr-info-p6.jussieu.fr
> Does it compile if you remove the
> --with-apxs2=/usr/local/apache2/bin/apxs configure option?
YES
esj
------------------------------------------------------------------------
[2002-11-28 22:01:33] iliaa@php.net
Does it compile if you remove the
--with-apxs2=/usr/local/apache2/bin/apxs configure option?
------------------------------------------------------------------------
[2002-11-28 10:54:26] esj@ufr-info-p6.jussieu.fr
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 this bug report at http://bugs.php.net/?id=20701&edit=1