PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok
| From: | php at teuchi dot de | Date: | Sun, 11 Mar 2001 22:29:03 +0000 |
| Subject: | PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48682@lists.php.net to get a copy of this message | ||
ID: 9531
User Update by: php@teuchi.de
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Description: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok
thanks, it seems to work (just compiling...)
Previous Comments:
---------------------------------------------------------------------------
[2001-03-11 17:03:39] sniper@php.net
And that configure option is only available in PHP 4.0.5-dev
(ie. the CVS snapshot!)
--Jani
---------------------------------------------------------------------------
[2001-03-11 17:03:02] sniper@php.net
Of course it didn't. You didn't read my reply.
The configure option is: --with-expat-dir=/path/to/expat
--Jani
---------------------------------------------------------------------------
[2001-03-11 16:57:34] php@teuchi.de
sorry, it didn't help
[root@e-smith php-4.0.4pl1]# ./configure --with-dom=/home/family/libxml2-2.3.3
--with-mysql=/usr/local/mysql --with-sablot --with-expat=/usr
[root@e-smith php-4.0.4pl1]# make
....
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/usr/local/include -I/home/family/php-4.0.4pl1/ext/xml/expa
t/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4
.0.4pl1/TSRM -DXML_BYTE_ORDER=12 -g -O2 -o php -export-dynamic stub.lo
libphp4.la
/usr/bin/ld: cannot open -lxmltok: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1
---------------------------------------------------------------------------
[2001-03-11 16:27:18] sniper@php.net
Another note: Do 'rm config.cache' before reconfiguring!
And after configure: 'make clean ; make ; make install'
--Jani
---------------------------------------------------------------------------
[2001-03-11 16:26:34] sniper@php.net
I forgot: Check where the libexpat.so (or .a) is in your
system and add --with-expat-dir=/usr into your php
configure line (if libexpat is in /usr/lib that is..)
This configure option is only in the CVS version but
it will be in 4.0.5.
Also, the Sablotron extension is EXPERIMENTAL thus
everything might (and WILL) change in the future.
--Jani
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=9531