Bug #10366: Sablotron config.m4 requires extra pointer
| From: | php at aaronland dot net | Date: | Tue, 17 Apr 2001 19:21:17 +0000 |
| Subject: | Bug #10366: Sablotron config.m4 requires extra pointer | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51819@lists.php.net to get a copy of this message | ||
From: php@aaronland.net
Operating system: FreeBSD 4.3-BETA
PHP version: 4.0.4pl1
PHP Bug Type: Compile Warning
Bug description: Sablotron config.m4 requires extra pointer
Hi,
I've been trying to configure PHP (4.0.4pl1 (Apache 1.3.19)) on FreeBSD 4.3-BETA with Sablotron
(0.51) support and until today I was not able to without first tweaking the sablot/config.m4 file.
The configure would finish but note that something wacky had happened, specifcally "undefined
references to iconv_*" (see below). I had seen this error trying to install the XML::Sablotron
perl module, so I figured it was just a question of passing "-liconv" somewhere in the
build process.
After some snooping around, I added an extra ADD_LIBRARY statement to the config.m4 file (see below)
and everything worked!
I don't know if anyone else has had similar problems but I figured I would pass it along.
Cheers,
******************
debug.log
gcc -o conftest -g -O2 -DMOD_SSL=208102 -DEAPI -DSHARED_CORE -R/usr/local/lib -L/usr/local/lib
-R/usr/local/lib/mysql -L/\
usr/local/lib/mysql conftest.c -lmm -lxmltok -lxmlparse -lsablot -lmysqlclient -lldap -llber -lttf
-lz -lpng -lgd -ljpeg -l\
z -lxml -lm -lcrypt -Lyes/lib -lz -L/usr/local/lib -ljpeg 1>&5
/usr/local/lib/libsablot.so: undefined reference to `iconv_open'
/usr/local/lib/libsablot.so: undefined reference to `iconv_close'
/usr/local/lib/libsablot.so: undefined reference to `iconv'
********************
php-4.0.4pl1/ext/sablot/config.m4
PHP_SUBST(SABLOT_SHARED_LIBADD)
AC_ADD_LIBRARY_WITH_PATH(sablot, $SABLOT_DIR/lib, SABLOT_SHARED_LIBADD)
AC_ADD_LIBRARY(xmlparse)
AC_ADD_LIBRARY(xmltok)
>>> AC_ADD_LIBRARY(iconv) <<<
--
Edit Bug report at: http://bugs.php.net/?id=10366&edit=1