ID: 15908 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Operating System: FreeBSD 4.5-RELEASE PHP Version: 4.1.2 New Comment:
I tried the patch specified in: http://bugs.php.net/bug.php?id=14423 but it fails at: Making all in main cc -I. -I/usr/ports/www/mod_php4/work/php-4.1.2/main -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 -c internal_functions.c && touch internal_functions.lo internal_functions.c:69: `iconv_module_entry' undeclared here (not in a function) internal_functions.c:69: initializer element is not constant internal_functions.c:69: (near initialization for `php_builtin_extensions[15]') *** Error code 1 Previous Comments: ------------------------------------------------------------------------ [2002-03-06 12:58:42] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=15908&edit=1