Bug #16343 Updated: Recurrent failure with libIconv
| From: | bariou at brasnah dot com | Date: | Fri, 29 Mar 2002 15:39:58 +0000 |
| Subject: | Bug #16343 Updated: Recurrent failure with libIconv | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3610@lists.php.net to get a copy of this message | ||
ID: 16343
Updated by: bariou@brasnah.com
Reported By: bariou@brasnah.com
Status: Feedback
Bug Type: Compile Failure
Operating System: Solaris 8
PHP Version: 4.1.2
New Comment:
I seems to work on the RedHat 7.2, I complete the tests with sablotron
and iconv and I re-install on solaris8 and I give you a feedback
Thanx a lot for this first step
Previous Comments:
------------------------------------------------------------------------
[2002-03-29 10:06:41] sniper@php.net
Just to clarify this: PHP 4.2.0RC1 is NOT a release.
It's a release candidate.
Anyways, you can try the latest snapshot from:
http://snaps.php.net/
if you're not that familiar with CVS.
--Jani
------------------------------------------------------------------------
[2002-03-29 08:59:58] bariou@brasnah.com
I met exactly the same problem on a redhat 7.2 linux platform with the
4.2.0RC1 release, are you speaking about the same one?
Thanx
------------------------------------------------------------------------
[2002-03-29 08:31:28] sniper@php.net
Get PHP 4.2.0 from CVS. This should be fixed already.
(tag is PHP_4_2_0)
------------------------------------------------------------------------
[2002-03-29 08:02:14] bariou@brasnah.com
Thank in advance for any help and even for not help at all but a help
will be great :-)
I use here PHP4.2.0-dev release
I'am working with a Sun-Sparc-Solaris 8 platform. But the problem I
describe here, I met it in a slight different way on Red Hat 7.2
platform with the PHP-4.2.0RC1.
I start with SOLARIS it's enough:
My configure command is :
./configure --prefix=/usr/local/apache
--with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/apache/php --with-gettext=shared
--with-dom=/usr --with-iconv=/usr/local --enable-socket=shared
--with-ttf --enable-inline-optimization --enable-magic-quotes
--enable-trans-id --enable-bcmath --enable-memory-limit --enable-wddx
--enable-sysvsem=shared --enable-sysvshm=shared --with-png-dir=/usr
--with-jpeg-dir=/usr --with-freetype-dir=/usr/local
--with-tiff-dir=/usr/local -with-zlib-dir=/usr --with-gd=/usr/local
--enable-gd-native-ttf --with-mysql=/usr/local/mysql --enable-ftp
--with-pdflib=/usr/local --with-xpm-dir=/usr/X11R6 --enable-xslt
--with-xslt-sablot --with-expat-dir=/usr/local --with-zlib=/usr
--with-xml-rpc --enable-libgcc
The drama starts here with the make :
/bin/sh /opt/xtra_targz/php4/libtool --silent --mode=link gcc -I.
-I/opt/xtra_targz/php4/sapi/cli -I/opt/xtra_targz/php4/main
-I/opt/xtra_targz/php4 -I/usr/local/apache/include
-I/opt/xtra_targz/php4/Zend -I/usr/local/include/freetype2/freetype
-I/usr/local/include -I/usr/local/mysql/include
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -I/opt/xtra_targz/php4/TSRM
-g -O2 -prefer-non-pic -static -o libphp4cli.la -rpath
/opt/xtra_targz/php4/libs -avoid-version -L/usr/ucblib
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/usr/local/lib
-L/usr/X11R6/lib -L/usr/local/mysql/lib -R /usr/ucblib -R
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -R /usr/local/lib -R
/usr/X11R6/lib -R /usr/local/mysql/lib php_cli.lo getopt.lo
/opt/xtra_targz/php4/Zend/libZend.la
/opt/xtra_targz/php4/main/libmain_cli.la
/opt/xtra_targz/php4/regex/libregex.la
/opt/xtra_targz/php4/ext/zlib/libzlib.la
/opt/xtra_targz/php4/ext/bcmath/libbcmath.la
/opt/xtra_targz/php4/ext/ctype/libctype.la
/opt/xtra_targz/php4/ext/domxml/libdomxml.la
/opt/xtra_targz/php4/ext/ftp/libftp.la
/opt/xtra_targz/php4/ext/gd/libgd.la
/opt/xtra_targz/php4/ext/iconv/libiconv.la
/opt/xtra_targz/php4/ext/mysql/libmysql.la
/opt/xtra_targz/php4/ext/overload/liboverload.la
/opt/xtra_targz/php4/ext/pcre/libpcre.la
/opt/xtra_targz/php4/ext/pdf/libpdf.la
/opt/xtra_targz/php4/ext/posix/libposix.la
/opt/xtra_targz/php4/ext/session/libsession.la
/opt/xtra_targz/php4/ext/standard/libstandard.la
/opt/xtra_targz/php4/ext/wddx/libwddx.la
/opt/xtra_targz/php4/ext/xml/libxml.la
/opt/xtra_targz/php4/ext/xslt/libxslt.la
/opt/xtra_targz/php4/TSRM/libtsrm.la -lpam -lsablot -lexpat -lexpat
-lexpat -lpdf -lz -ltiff -lpng -ljpeg -lmysqlclient -lgd -lfreetype
-lX11 -lXpm -lpng -lz -ljpeg -lz -lxml2 -lz -lcrypt -lresolv -lresolv
-lresolv -lm -ldl -lnsl -lsocket -lsocket -lgcc -lcrypt
/bin/sh /opt/xtra_targz/php4/libtool --silent --mode=link gcc -I.
-I/opt/xtra_targz/php4/sapi/cli -I/opt/xtra_targz/php4/main
-I/opt/xtra_targz/php4 -I/usr/local/apache/include
-I/opt/xtra_targz/php4/Zend -I/usr/local/include/freetype2/freetype
-I/usr/local/include -I/usr/local/mysql/include
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -I/opt/xtra_targz/php4/TSRM
-g -O2 -o php -export-dynamic libphp4cli.la
Undefined first referenced
symbol in file
libiconv ./.libs/libphp4cli.a(iconv.lo)
libiconv_open ./.libs/libphp4cli.a(iconv.lo)
libiconv_close ./.libs/libphp4cli.a(iconv.lo)
ld: fatal: Symbol referencing errors. No output written to php
collect2: ld returned 1 exit status
make[2]: *** [php] Error 1
make[2]: Leaving directory `/opt/xtra_targz/php4/sapi/cli'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/xtra_targz/php4/sapi/cli'
make: *** [all-recursive] Error 1
As indicated in ./configure Libiconv is installed in /usr/local, on the
fault message It looks like the invocation of liconv is not present for
gcc. But as you can see I have this invocation I/...... Some lines
later /opt/xtra_targz/php4/ext/iconv/libiconv.la, which is the
invocation of the ICONV extension not of the standalone ICONV... but
4'm afraid I think I must have also '-liconv' whic is not present
I met this problem recurrently, I'm not an expert and maybe I'm wrong I
think I have to add that in some Makefile, but where and how ?
If I remove from ./configure the "--with-iconv..." I've exactly the
same error but for sablotron ?
If you have an idea it will be a great help .
Thanks
Marcel
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16343&edit=1