|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10366 Sablotron config.m4 requires extra pointer
Submitted: 2001-04-17 15:21 UTC Modified: 2001-06-03 18:14 UTC
From: php at aaronland dot net Assigned:
Status: Closed Package: Compile Warning
PHP Version: 4.0.4pl1 OS: FreeBSD 4.3-BETA
Private report: No CVE-ID: None
 [2001-04-17 15:21 UTC] php at aaronland dot net

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.



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/ undefined reference to `iconv_open'
/usr/local/lib/ undefined reference to `iconv_close'
/usr/local/lib/ undefined reference to `iconv'


>>> AC_ADD_LIBRARY(iconv) <<<


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 18:14 UTC]
This is fixed in CVS and in PHP 4.0.6RC2:


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 23:01:36 2024 UTC