php.net |  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: -
Votes:4
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: a dot skwar+php-bugs at gmail dot com
New email:
PHP Version: OS:

 

 [2010-04-19 14:42 UTC] 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...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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: Sat Sep 21 17:01:27 2019 UTC