#31193 [NEW]: iconv.c:254 undefined reference to 'libiconv'
From: david at cubbieco dot com
Operating system: linux gcc-3.2
PHP version: 5.0.3
PHP Bug Type: Compile Failure
Bug description: iconv.c:254 undefined reference to 'libiconv'
Description:
------------
Using either ./configure with no options or
./configure --prefix=/... --enable-sockets --enable-pcntl --enable-sockets
--disable-pear --disable-cgi
Fails when building -o sapi/cli/php
Reproduce code:
---------------
SOLUTION:
Makefile ends up being line 70
EXTRA_LIBS = -lcrypt ...
if you add -liconv to the EXTRA_LIBS line in Makefile then Make works just
fine.
I don't know enough about ./configure to find where to tell it to add
this.
tried: ./configure -- failed with libiconv error
./configure --enable-sockets --disable-pear --disable-cgi failed with
libiconv error
./configure --with-apxs2=/... failed with liniconv error
--
Edit bug report at http://bugs.php.net/?id=31193&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31193&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31193&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31193&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31193&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31193&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31193&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31193&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31193&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31193&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31193&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31193&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31193&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31193&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31193&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31193&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31193&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31193&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31193&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31193&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31193&r=mysqlcfg
Thread (18 messages)
- david at cubbieco dot com
- sniper@php.net#31193 [Opn->Fbk]: iconv.c:254 undefined reference to 'libiconv'
- david at cubbieco dot com#31193 [Fbk->Opn]: iconv.c:254 undefined reference to 'libiconv'
- nlopess@php.net#31193 [Opn]: iconv.c:254 undefined reference to 'libiconv'
- moriyoshi@php.net#31193 [Opn->Fbk]: iconv.c:254 undefined reference to 'libiconv'
- moriyoshi@php.net#31193 [Opn]: iconv.c:254 undefined reference to 'libiconv'
- sniper@php.net#31193 [Fbk->NoF]: iconv.c:254 undefined reference to 'libiconv'
- gaikwad_s at rediffmail dot com#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- weber at lviv dot farlep dot net#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- janarbek at icu dot ac dot kr#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- w dot peter dot howell at meccahosting dot com#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- fr33z at inmail dot cz#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- marrtins at hackers dot lv#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- bugs dot php dot net at michaelrack dot de#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- kspetter at curreyadkinscook dot com#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- spadefinger at hotmail dot com#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- justincase at mailcatch dot com#31193 [Com]: iconv.c:254 undefined reference to 'libiconv'
- wolfgang_weber at gmx dot atBug #31193 [Com]: iconv.c:254 undefined reference to 'libiconv'