php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49267 Linking fails for iconv: "Undefined symbols: _libiconv"
Submitted: 2009-08-15 13:51 UTC Modified: 2010-03-10 23:29 UTC
Votes:79
Avg. Score:4.8 ± 0.7
Reproduced:78 of 78 (100.0%)
Same Version:54 (69.2%)
Same OS:63 (80.8%)
From: s dot rost at ewerk dot com Assigned: scottmac (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.3, 6 (2009-08-18) OS: Mac OSX 10.6 Snow Leopard
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: s dot rost at ewerk dot com
New email:
PHP Version: OS:

 

 [2009-08-15 13:51 UTC] s dot rost at ewerk dot com
Description:
------------
The linker fails to link the PHP 5.3.0 binaries on Mac OS X 10.6. For 
two reasons.

1. The configure Script fails to add `-lresolv` to EXTRA_LIBS and 
MH_BUNDLE_FLAGS in Makefile

2. ext/iconv/iconv.c has to be changed

(line 185) from

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif

to

#ifdef HAVE_LIBICONV
#define iconv libiconv
#endif


Reproduce code:
---------------
./configure --with-iconv

Expected result:
----------------
`configure` and `make` work

Actual result:
--------------
Unresolved symbols when linking the binaries at the end of the `make` 
process.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-09 20:34 UTC] rickdunn at chez dot com
For what it's worth, this is probably the same iconv issue that has 
already popped up in bug #43189 and bug #48195.
 [2009-09-15 22:26 UTC] j dot jeising at gmail dot com
Apple already added a path to it's own sources:

http://opensource.apple.com/source/apache_mod_php/apache_mod_php-
53/patches/iconv.patch

With the parameters provided in the Makefile this works seamless:

--with-iconv-dir=/usr
 [2010-03-05 10:12 UTC] moriyoshi@php.net
Automatic comment from SVN on behalf of moriyoshi
Revision: http://svn.php.net/viewvc/?view=revision&revision=295848
Log: - Fixed bug #49267 (linking fails for iconv)
 [2010-03-10 23:29 UTC] jani@php.net
-Status: No Feedback +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC