fix for building php4 with sablot and zlib
| From: | Chuck Hagenbuch | Date: | Sun, 08 Oct 2000 21:07:10 +0000 |
| Subject: | fix for building php4 with sablot and zlib | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34478@lists.php.net to get a copy of this message | ||
I'm trying to build the latest CVS with a number of extensions, including sablot
and zlib, and ./configure dies while testing zlib support. config.log shows the
following:
configure:40999: gcc -o conftest -g -O2 -DEAPI -DXML_BYTE_ORDER=12 -L/usr/lib
-Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/home/chuck/code/mcal/libm
cal -L/home/chuck/code/mcal/libmcal conftest.c -lz -lsablot -lmysqlclient -lmca
l -lldap -llber -lttf -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1
>&5
/usr/local/lib/libsablot.so: undefined reference to `XML_ParserCreateNS'
(and a bunch of other undefined references). It looks like -lxmlparse and
-lxmltok also need to be added to the build line, since they defines all of the
functions missing that are mentioned in config.log.
The following patch to ext/sablot/config.m4 fixed the build for me:
[chuck@nirgal][pts][~/code/php4/ext/sablot] cvs diff config.m4
Index: config.m4
===================================================================
RCS file: /repository/php4/ext/sablot/config.m4,v
retrieving revision 1.4
diff -u -r1.4 config.m4
--- config.m4 2000/10/02 17:35:58 1.4
+++ config.m4 2000/10/08 21:05:33
@@ -26,6 +26,8 @@
PHP_SUBST(SABLOT_SHARED_LIBADD)
AC_ADD_LIBRARY_WITH_PATH(sablot, $SABLOT_DIR/lib, SABLOT_SHARED_LIBADD)
+ AC_ADD_LIBRARY_WITH_PATH(xmlparse, $SABLOT_DIR/lib, SABLOT_SHARED_LIBADD)
+ AC_ADD_LIBRARY_WITH_PATH(xmltok, $SABLOT_DIR/lib, SABLOT_SHARED_LIBADD)
AC_DEFINE(HAVE_SABLOT,1,[ ])
... I'd commit it, but I'm not sure that I should be assuming that the xml
libraries will be in the same directory as the sablot library, or if this is
even the right syntax. Can someone look it over, and commit either it, or the
correct fix?
Thanks,
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
must... find... acorns... *thud*