php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72299 undefined reference to `libiconv_open'
Submitted: 2016-05-31 05:29 UTC Modified: 2021-04-25 04:22 UTC
Votes:5
Avg. Score:4.6 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:2 (40.0%)
From: sxddwuwang at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: ICONV related
PHP Version: 7.0.7 OS: CentOS release 6.3 (Final)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 + 23 = ?
Subscribe to this entry?

 
 [2016-05-31 05:29 UTC] sxddwuwang at gmail dot com
Description:
------------
make error

/root/toole/php-7.0.6/ext/iconv/iconv.c:755: undefined reference to `libiconv_open'
/root/toole/php-7.0.6/ext/iconv/iconv.c:779: undefined reference to `libiconv'
/root/toole/php-7.0.6/ext/iconv/iconv.c:813: undefined reference to `libiconv_close'


Test script:
---------------
In iconv.c add the following code is success

#ifndef LIBICONV_PLUG
#define LIBICONV_PLUG
#endif


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-31 05:36 UTC] sxddwuwang at gmail dot com
libiconv version is 1.14
 [2021-04-14 13:28 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-04-14 13:28 UTC] cmb@php.net
> In iconv.c add the following code is success

That wouldn't be a general solution, though.

Anyhow, is this still an issue for you with any of the actively
supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-04-25 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 04:05:53 2022 UTC