#41265 [NEW]: spurious error about missing iconv
| From: | paul at ensigma dot com dot au | Date: | Thu, 03 May 2007 02:19:57 +0000 |
| Subject: | #41265 [NEW]: spurious error about missing iconv | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-112190@lists.php.net to get a copy of this message | ||
From: paul at ensigma dot com dot au
Operating system: Linux - Slackware 11.0
PHP version: 5.2.1
PHP Bug Type: Compile Failure
Bug description: spurious error about missing iconv
Description:
------------
./configure reports missing iconv when in fact ttf is missing
Configuration line was:
./configure --with-mysql --with-gd --with-ttf --enable-track-vars
--with-apxs2=/usr/local/apache2/bin/apxs --with-jpeg --with-png
--with-zlib --with-tiff --with-gdbm --with-pdflib=/usr/local
--with-freetype --enable-mbstring
failed to compile complaining about iconv install but iconv is correctly
installed.
Reproduce code:
---------------
Run above configuration line with no libttf
Expected result:
----------------
Successful compile
Actual result:
--------------
checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
checking for libiconv in -liconv... no
checking for iconv in -liconv... no
configure: error: Please reinstall the iconv library.
Config.log shows the issue:
int main() {
libiconv()
; return 0; }
configure:44525: checking for iconv in -liconv
configure:44544: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib
-L/usr/local/lib conftest.c -liconv -lttf -lpng -lz -lgdbm -lz -lresolv
-lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld:
cannot find -lttf
collect2: ld returned 1 exit status
configure: failed program was:
#line 44533 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char iconv();
int main() {
iconv()
; return 0; }
--
Edit bug report at http://bugs.php.net/?id=41265&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41265&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41265&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41265&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41265&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41265&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41265&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41265&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41265&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41265&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41265&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41265&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41265&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41265&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41265&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41265&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41265&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41265&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41265&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41265&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41265&r=mysqlcfg