Edit report at http://bugs.php.net/bug.php?id=51600&edit=1

 ID:                 51600
 Comment by:         matorola at gmail dot com
 Reported by:        a dot skwar+php-bugs at gmail dot com
 Summary:            libiconv dependency in gd extension not accounted
                     for by linker on Solaris 10
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Solaris 10 Sparc
 PHP Version:        5.3.2
 Block user comment: N

 New Comment:

afaik, there's no pre-compiled libiconv for solaris 10, please try to
install it (for example) from sunfreeware and try again. I've no
problems compiling php (version 5.3.3) on (sparc) solaris 10 using
libiconv sunfreeware package.


Previous Comments:
------------------------------------------------------------------------
[2010-04-19 14:42:22] a dot skwar+php-bugs at gmail dot com

Description:
------------
I'm seeing the exact same errors as presented in bug #33141 @ 

http://bugs.php.net/bug.php?id=33141

Test script:
---------------
/opt/csw/bin/bash
/export/home/user/Source/php-5.3.2/build.32bit.mit-gd.20100419-133348/../configure
\

 --prefix=/opt/local/php --with-exec-dir=/opt/local/php/bin
--with-config-file-path=/etc/opt/local/php/php.ini \

 --sysconfdir=/etc/opt/local/php \

 --with-pic --disable-ipv6 \

 --with-mysql=shared,/opt/local/mysql
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-pdo-mysql=shared,/opt/local/mysql \

 --with-mysqli=shared,/opt/local/mysql/bin/mysql_config \

 --with-zlib=shared,/opt/local/zlib \

 --with-curl=shared,/opt/local/curl --with-curlwrappers \

 --with-openssl=shared,/opt/local/openssl
--with-openssl-dir=/opt/local/openssl \

 --with-oci8=shared,instantclient,/opt/local/instantclient_11_1/32
--with-pdo-oci=shared,instantclient,/opt/local/instantclient_11_1/32,11.1.0.7.0
\

 --with-sqlite3=shared,/opt/local/sqlite
--with-pdo-sqlite=shared,/opt/local/sqlite \

 --with-iconv=shared,/opt/local/libiconv \

 --with-pcre-regex=/opt/local/pcre --with-pcre-dir=/opt/local/pcre \

 --with-libxml-dir=/opt/local/libxml2 
--with-gettext=shared,/opt/local/gettext \

 --with-bz2=shared \

 --enable-dba=shared --with-gdbm=/opt/local/gdbm
--with-db4=/opt/local/db4 \

 --enable-bcmath=shared \

 --enable-exif=shared \

 --enable-calendar=shared \

 --enable-ftp=shared \

 --enable-mbstring=shared \

 --enable-pcntl=shared \

 --enable-shmop=shared --enable-sysvmsg=shared --enable-sysvsem=shared
--enable-sysvshm=shared \

 --enable-sockets=shared \

 --enable-soap=shared \

 --enable-zip=shared \

 --enable-session=shared \

 \

 --with-gd -with-png-dir=/usr --with-jpeg-dir=/usr
--with-freetype-dir=/opt/local/freetype && make

Expected result:
----------------
Should compile just fine.

Actual result:
--------------
Make dies with:



Undefined                       first referenced

 symbol                             in file

libiconv_close                      ext/gd/libgd/.libs/gdkanji.o

libiconv_open                       ext/gd/libgd/.libs/gdkanji.o

libiconv                            ext/gd/libgd/.libs/gdkanji.o

ld: fatal: Symbol referencing errors. No output written to
sapi/cgi/php-cgi

*** Error code 1

make: Fatal error: Command failed for target `sapi/cgi/php-cgi'



My configure command is also on http://sh.pastebin.com/Phbuzgpw - it's a
bit 

longer...


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



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51600&edit=1

Reply via email to