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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC