php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at aaronland dot net
New email:
PHP Version: OS:

 

 [2001-04-17 15:21 UTC] php at aaronland dot net
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) <<<

Patches

Pull Requests

History

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

http://www.php.net/~andi/php-4.0.6RC2.tar.gz


--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC