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: 2021-06-20 04:22 UTC
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: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.3.2 OS: Solaris 10 Sparc
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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.
 [2021-06-10 12:38 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-10 12:38 UTC] cmb@php.net
Is that still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-06-20 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 03:01:30 2024 UTC