|  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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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
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 

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

(line 185) from

#define iconv libiconv


#define iconv libiconv

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` 


Add a Patch

Pull Requests

Add a Pull Request


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:

With the parameters provided in the Makefile this works seamless:

 [2010-03-05 10:12 UTC]
Automatic comment from SVN on behalf of moriyoshi
Log: - Fixed bug #49267 (linking fails for iconv)
 [2010-03-10 23:29 UTC]
-Status: No Feedback +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 29 11:01:31 2024 UTC