From:             [EMAIL PROTECTED]
Operating system: RedHat Linux 7.2
PHP version:      4.2.0
PHP Bug Type:     Compile Failure
Bug description:  ./configure fails with "iconv not found" when compiling w/ Sablotron

I am trying to compile PHP 4.2.0 on RedHat 7.2.  I have Sablot-0.90 and
libiconv-1.7 compiled from source and installed in /usr/local, with their
libs in the standard path:

[root@mennonet3]# ldconfig -v | egrep "iconv|sablot"
        libiconv_plug.so -> libiconv_plug.so
        libsablot.so.0 -> libsablot.so.0.90.0
        libiconv.so.2 -> libiconv.so.2.0.4

When I run 
./configure --enable-xslt --with-xslt-sablot
I get:

[snip]
checking whether to enable xslt support... yes
checking for XSLT Sablotron backend... yes
checking libexpat dir for Sablotron XSL support... no
checking enable JavaScript for Sablotron... no
checking for Sablotron libraries in the default path... found Sablotron in
/usr/local
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: iconv not found, in order to build sablotron you need
the iconv library

I've been able to work around this in a strange way that was recommended
to me by someone on a mailing list when I was having similar troubles
compiling PHP 4.1.x.  I link the object files from the Apache version of
Expat-Lite into the shared libs libxmltok and libxmlparse, and then put
them in the library path:

cd /usr/local/src/apache_1.3.23/src/lib/expat-lite
ld -shared -o libxmltok.so xmltok.o
ld -shared -o libxmlparse.so *.o
mv libxmlparse.so libxmltok.so /usr/local/lib

# ldconfig -v | grep libxml
        libxml2.so.2 -> libxml2.so.2.4.10
        libxmlparse.so -> libxmlparse.so
        libxmltok.so -> libxmltok.so
And then the configure and compile work just fine.
-- 
Edit bug report at http://bugs.php.net/?id=16776&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16776&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16776&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16776&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16776&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16776&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16776&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16776&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16776&r=submittedtwice

Reply via email to