php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9531 make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok
Submitted: 2001-03-02 16:48 UTC Modified: 2001-03-26 03:37 UTC
From: php at teuchi dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: RedHat Linux (E-Smith Server+Gat
Private report: No CVE-ID: None
 [2001-03-02 16:48 UTC] php at teuchi dot de
installed Sablot-0.51-0.i386.rpm
installed expat-1.95.0-1.i386.rpm
installed libxml2-2.3.3.tar.gz
installed mysql-3.23.33-pc-linux-gnu-i686.tar.gz

./configure --with-dom=/home/family/libxml2-2.3.3 --with-mysql=/usr/local/mysql --with-sablot
make

(everything goes well until:)

Making all in .
make[1]: Entering directory `/home/family/php-4.0.4pl1'
/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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-02 19:18 UTC] derick@php.net
AFAIK this is fixed in CVS. CAn you try the latest CVS version, or a snapshot from snaps.php.net and see it the problem persists?
 [2001-03-03 08:04 UTC] php at teuchi dot de
sorry, but the bug persists

Making all in .
make[1]: Entering directory `/home/family/php4-200103030345'
gcc  -I. -I/home/family/php4-200103030345/ -I/home/family/php4-200103030345/main
 -I/home/family/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/
family/libxml2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/
home/family/php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030
345/ext/xml/expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8
 -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_
ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php4-200103030345/libs -L/ho
me/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib -L/usr/local/lib  -R /home/fa
mily/libxml2-2.3.3/lib -R /usr/local/mysql/lib -R /usr/local/lib stub.lo  Zend/l
ibZend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/domxml/libdo
mxml.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/sabl
ot/libsablot.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/li
bxml.la TSRM/libtsrm.la -ldl -lxmltok -lxmlparse -lsablot -lmysqlclient -lz -lxm
l -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lz
/bin/sh /home/family/php4-200103030345/libtool --silent --mode=link gcc  -I. -I/
home/family/php4-200103030345/ -I/home/family/php4-200103030345/main -I/home/fam
ily/php4-200103030345 -I/home/family/php4-200103030345/Zend -I/home/family/libxm
l2-2.3.3/include -I/usr/local/mysql/include -I/usr/local/include -I/home/family/
php4-200103030345/ext/xml/expat/xmltok -I/home/family/php4-200103030345/ext/xml/
expat/xmlparse -I/home/family/php4-200103030345/TSRM  -DSUPPORT_UTF8 -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/php4-200103030345'
make: *** [all-recursive] Error 1
 [2001-03-03 17:25 UTC] sniper@php.net
Try compiling sablot / expat from sources too.

--Jani

 [2001-03-11 06:07 UTC] php at teuchi dot de
> Try compiling sablot / expat from sources too.

I've tried this before, but it did not work. I guess it should be uninteresting how people get the libraries, or one will need a step-by-step instruction to avoid such annoying waste of time. After all, I don't think I'm the only one who wants to use sablot, libxml, mysql und PHP/4. Maybe you know if there is already a FAQ!?
 [2001-03-11 16:26 UTC] 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
 
 [2001-03-11 16:27 UTC] sniper@php.net
Another note: Do 'rm config.cache' before reconfiguring!
And after configure: 'make clean ; make ; make install'

--Jani

 [2001-03-11 16:57 UTC] php at teuchi dot 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 17:03 UTC] 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 17:03 UTC] 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:29 UTC] php at teuchi dot de
thanks, it seems to work (just compiling...)
 [2001-03-11 17:42 UTC] php at teuchi dot de
o well, it would have been to nice ...

Making all in .
make[1]: Entering directory `/home/family/php-4.0.4pl1'
gcc  -I. -I/home/family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/f
amily/php-4.0.4pl1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3
/include -I/usr/local/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xm
ltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4
pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/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/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php-4.0.4pl1/libs -L/hom
e/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib  -R /home/family/libxml2-2.3.3
/lib -R /usr/local/mysql/lib stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/l
ibmain.la regex/libregex.la ext/domxml/libdomxml.la ext/mysql/libmysql.la ext/pc
re/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libst
andard.la ext/xml/libxml.la TSRM/libtsrm.la -ldl -lmysqlclient -lz -lxml -lresol
v -lm -ldl -lcrypt -lnsl -lresolv -L/home/family/libxml2-2.3.3/lib -lz
/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/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o php -export-dynamic     stub.lo libphp4.la
/usr/bin/ld: cannot open -lz: 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 21:59 UTC] sniper@php.net
--with-zlib=/path/to/libz/install/dir

--Jani

 [2001-03-17 07:46 UTC] php at teuchi dot de
Joy! We're getting further! :-)
But what's that:

gcc  -I. -I/home/family/php-4.0.4pl1/ext/standard -I/home/family/php-4.0.4pl1/ma
in -I/home/family/php-4.0.4pl1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/l
ibxml2-2.3.3/include -I/usr/local/mysql/include -I/home/family/php-4.0.4pl1/ext/
xml/expat/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/fami
ly/php-4.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c crypt.c && touch crypt.lo
make[3]: *** [crypt.lo] Interrupt
make[2]: *** [all-recursive] Interrupt
make[1]: *** [all-recursive] Interrupt
make: *** [all-recursive] Interrupt
 [2001-03-17 13:27 UTC] sniper@php.net
You pressed ctrl+c to interrupt the make process.
Please ask further install questions on php-install@lists.php.net mailing list.

--Jani

 [2001-03-18 06:11 UTC] php at teuchi dot de
sorry to disturb you again, but I've tried different zlib and lizb rpms, they all seem to put some libz.so.1 into /usr/lib. However, configure tells me

configure: error: Cannot find libz

whether I try --with-zlib=/usr or --with-zlib=/usr/lib

Where am I wrong here?

(Well, I think I'm gonna write an FAQ for this kind of PHP/4 installation when I'm finally through this ... ;-) )
 [2001-03-18 18:17 UTC] sniper@php.net
Where is zlib.h file located in your system?

--Jani

 [2001-03-24 10:17 UTC] php at teuchi dot de
I could not find zlib.h

also, it seems that rpm -i libz-1_1_3-4_src.rpm did not do anything (no install confirmation)

Can you send me the file and whatever will be necessary to php@teuchi.de?

Thanks in advance.
 [2001-03-26 03:37 UTC] sniper@php.net
You need to install the zlib-devel rpm. 
Check the ftp.redhat.com for it.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC