php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16165 iconv extension fails to compile
Submitted: 2002-03-19 07:36 UTC Modified: 2002-03-21 15:25 UTC
From: jan at horde dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0CVS-2002-03-19 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jan at horde dot org
New email:
PHP Version: OS:

 

 [2002-03-19 07:36 UTC] jan at horde dot org
Since the recent changes in cvs for detecting the correct libiconv to include, PHP fails to compile.

This is what I get at compile time:
ext/iconv/iconv.lo: In function `php_iconv_string':
/root/cvs/cvsphp/ext/iconv/iconv.c:198: undefined reference to `libiconv_open'
/root/cvs/cvsphp/ext/iconv/iconv.c:218: undefined reference to `libiconv'
/root/cvs/cvsphp/ext/iconv/iconv.c:230: undefined reference to `libiconv'
/root/cvs/cvsphp/ext/iconv/iconv.c:233: undefined reference to `libiconv_close'

I installed libiconv 1.7 under /usr/local, my configure line uses --with-iconv=/usr/local

This are the relevant lines from config.log:
configure:29655: checking for iconv support
configure:29685: result: yes
configure:29692: checking for iconv_open in -lc
configure:29719: gcc -o conftest -I[......]
configure:29722: $? = 0
configure:29725: test -s conftest
configure:29728: $? = 0
configure:29739: result: yes

configure:63320: checking for iconv_open in -lc
configure:63367: result: yes

ac_cv_lib_c_iconv_open=yes

#define HAVE_ICONV 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-19 08:05 UTC] sander@php.net
It's a known problem and we're working on it.
 [2002-03-19 18:00 UTC] sniper@php.net
Fixed now.

 [2002-03-21 06:14 UTC] jan at horde dot org
But it was reintroduced with yesterday's changes by Jon Parise and others.
 [2002-03-21 08:24 UTC] sniper@php.net
Are you sure this happens with latest CVS (HEAD) ?

--Jani

 [2002-03-21 08:35 UTC] jan at horde dot org
Updated around 11:30 GMT+0100
Configured with a distclean'ed and new buildconf'ed source tree.

The error message has slightly changed of course, the undefined references now start at line 203.
 [2002-03-21 15:25 UTC] sniper@php.net
Hopefully this is now fixed for everyone.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 13:01:36 2025 UTC