Bug #51600 [NEW]: libiconv dependency in gd extension not accounted for by linker on Solaris 10

From: Date: Mon, 19 Apr 2010 12:42:33 +0000
Subject: Bug #51600 [NEW]: libiconv dependency in gd extension not accounted for by linker on Solaris 10
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-149690@lists.php.net to get a copy of this message
From:             
Operating system: Solaris 10 Sparc
PHP version:      5.3.2
Package:          Compile Failure
Bug Type:         Bug
Bug description:libiconv dependency in gd extension not accounted for by linker on Solaris 10

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 bug report at http://bugs.php.net/bug.php?id=51600&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=51600&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=51600&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=51600&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=51600&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51600&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=51600&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=51600&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=51600&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=51600&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=51600&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=51600&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=51600&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=51600&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=51600&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51600&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51600&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=51600&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=51600&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=51600&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=51600&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=51600&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#149690) next »