|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51600 libiconv dependency in gd extension not accounted for by linker on Solaris 10
Submitted: 2010-04-19 14:42 UTC Modified: -
Avg. Score:3.0 ± 1.4
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: a dot skwar+php-bugs at gmail dot com Assigned:
Status: Open Package: Compile Failure
PHP Version: 5.3.2 OS: Solaris 10 Sparc
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
19 - 1 = ?
Subscribe to this entry?

 [2010-04-19 14:42 UTC] a dot skwar+php-bugs at gmail dot com
I'm seeing the exact same errors as presented in bug #33141 @

Test script:
/opt/csw/bin/bash /export/home/user/Source/php-5.3.2/ \
 --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, \
 --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 - it's a bit 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-21 14:38 UTC] matorola at gmail dot com
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.
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 17:01:26 2019 UTC