ID:               16343
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: Solaris 8
 PHP Version:      4.1.2
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2002-03-29 08:31:28] [EMAIL PROTECTED]

Get PHP 4.2.0 from CVS. This should be fixed already.

(tag is PHP_4_2_0)



------------------------------------------------------------------------

[2002-03-29 08:02:14] [EMAIL PROTECTED]

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

Reply via email to