From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.5-RELEASE
PHP version:      4.1.2
PHP Bug Type:     Compile Failure
Bug description:  failed to compile with iconv

I tried to compile latest PHP 4.1.2 on my system.
I need the iconv extension, but I get the following
error in linking:

/bin/sh /usr/ports/www/mod_php4/work/php-4.1.2/libtool --silent
--mode=link cc -I. -I/usr/ports/www/mod_php4/work/php-4.1.2/
-I/usr/ports/www/mod_php4/work/php-4.1.2/main
-I/usr/ports/www/mod_php4/work/php-4.1.2
-I/usr/ports/www/mod_php4/work/php-4.1.2/Zend
-I/usr/local/include/freetype2/freetype -I/usr/local/include/gd
-I/usr/local/include -I/usr/local/include/mysql
-I/usr/local/include/pspell  -I/usr/ports/www/mod_php4/work/php-4.1.2/TSRM
-march=i686 -O6 -I/usr/local/include -I/usr/local/include/pgsql   -o php
-export-dynamic stub.lo libphp4.la 
./.libs/libphp4.a(internal_functions.o)(.data+0x3c): undefined reference
to `iconv_module_entry'
*** Error code 1

I'm making the PHP binary standalone, right from ports. Some info about
the system: iconv-2.0, Sablot-0.81, expat-1.95.2. I had a similar problem
on other system, making an Apache PHP module; with PHP 4.0.6 I had no
problems with that (on FreeBSD 4.4-RELEASE/STABLE).

Here's my configure line:
--with-config-file-path=/usr/local/etc/php.standalone --disable-pear
--enable-discard-path --with-readline=/usr --enable-force-cgi-redirect
--enable-versioning --with-system-regex --disable-debug
--enable-track-vars --without-gd --without-mysql --with-gd=/usr/local
--with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local
--with-png-dir=/usr/local --with-zlib --with-mcrypt=/usr/local
--with-mhash=/usr/local --with-mysql=/usr/local --with-pgsql=/usr/local
--with-xml --with-expat-dir=/usr/local --enable-xslt --with-xslt-sablot
--with-expat-dir=/usr/local --with-iconv=/usr/local
--with-pspell=/usr/local --enable-mbregex --enable-mbstring
--enable-sockets --enable-trans-sid --with-iconv=/usr/local
--prefix=/usr/local i386-portbld-freebsd4.5

-- 
Edit bug report at http://bugs.php.net/?id=15908&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15908&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15908&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15908&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15908&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15908&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15908&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15908&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15908&r=submittedtwice

Reply via email to