#39089 [Fbk->Opn]: Missing -liconv during GD configuring fails ./configure run
| From: | suhachov at gmail dot com | Date: | Tue, 10 Oct 2006 12:53:19 +0000 |
| Subject: | #39089 [Fbk->Opn]: Missing -liconv during GD configuring fails ./configure run | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103362@lists.php.net to get a copy of this message | ||
ID: 39089
User updated by: suhachov at gmail dot com
Reported By: suhachov at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: *Compile Issues
Operating System: Linux FC
PHP Version: 5.1.6
Assigned To: pajoye
New Comment:
No. It's still here:
/usr/apache-2006-10-10/gd-2.0.33/lib/libgd.so: undefined reference to
`libiconv_open'
php: php6.0-200610100830
gd: gd-2.0.33
#/usr/apache-2006-10-10/gd-2.0.33/bin/gdlib-config --all
GD library 2.0.33
includedir: /usr/apache-2006-10-10/gd-2.0.33/include
cflags: -I/usr/apache-2006-10-10/gd-2.0.33/include
ldflags: -L/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr/local/lib -L/usr/apache-2006-10-10/jpeg-6b/lib
-L/usr/X11R6/lib
libs: -ljpeg -lfreetype -lpng12 -lz -lm
/usr/apache-2006-10-10/libiconv-1.9.2/lib/libiconv.so -Wl,-rpath
-Wl,/usr/apache-2006-10-10/libiconv-1.9.2/lib
libdir: /usr/apache-2006-10-10/gd-2.0.33/lib
features: GD_JPEG GD_FREETYPE GD_PNG GD_GIF
Previous Comments:
------------------------------------------------------------------------
[2006-10-09 16:14:03] pajoye@php.net
Can you try with php6 (HEAD), we use gdlib-config and should solve this
problem.
------------------------------------------------------------------------
[2006-10-09 12:59:34] suhachov at gmail dot com
Thanx, I know. But sometimes even glibc becomes updated...
And I think it's very confusing behavior - to allow use "--with-iconv"
(for PHP itself) and don't allow to used GD compiled with the same
iconv...
------------------------------------------------------------------------
[2006-10-09 09:46:25] tony2001@php.net
Linux has libiconv bundled into glibc, no need for external libraries.
------------------------------------------------------------------------
[2006-10-09 08:43:24] suhachov at gmail dot com
Description:
------------
1. cd gd-2.0.33
2. ./configure --with-iconv-prefix=/path/to/iconv \
--prefix=/path/to/gd \
...
3. make
4. make install
5. cd ../php-5.1.6
6. ./configure --with-gd=/path/to/gd \
--with-iconv=/path/to/iconv \
...
# (fails on GD tests with compile errors:
# unresolved symbol libiconv_open ...)
# adding LDFLAGS="-L/path/to/iconv -liconv" to ./configure
# solves this problem, but adds another one:
# HAVE_DLOPEN becomes undefined: #undef HAVE_DLOPEN.
I've solved this problem with removing "--with-iconv-prefix" from GD,
but it broke my heart :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39089&edit=1