php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61130 --with-iconv pulls in /usr/include
Submitted: 2012-02-18 01:16 UTC Modified: 2021-06-20 04:22 UTC
Votes:5
Avg. Score:4.2 ± 0.7
Reproduced:5 of 5 (100.0%)
Same Version:0 (0.0%)
Same OS:5 (100.0%)
From: fscan at chilicode dot com Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.3.10 OS: linux
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fscan at chilicode dot com
New email:
PHP Version: OS:

 

 [2012-02-18 01:16 UTC] fscan at chilicode dot com
Description:
------------
I'm cross compiling php for arm and want to use the glibc internal iconv 
implentation. when i specify --with-iconv configure pulls in the system 
/usr/include and the compilation fails.



Test script:
---------------
CC=arm-none-linux-gnueabi-gcc ./configure --disable-all --with-iconv
make


Expected result:
----------------
build succeeds


Actual result:
--------------
build fails because of incompatible asm directives from include files in 
/usr/include.
also, many warnings of including /usr/include path in cross compilation.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-18 01:23 UTC] rasmus@php.net
How about if you set it to a path where there is no iconv installed?

eg. --with-iconv=/tmp
 [2012-02-18 01:23 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-02-18 16:54 UTC] fscan at chilicode dot com
CC=arm-none-linux-gnueabi-gcc ./configure --disable-all --with-iconv=/tmp

....
checking for iconv support... yes
configure: error: Please reinstall the iconv library.

config.log:
configure:46880: checking for iconv support
 [2012-02-18 16:54 UTC] fscan at chilicode dot com
-Status: Feedback +Status: Open
 [2014-01-03 17:01 UTC] olivier dot antheaume at gmail dot com
A workaround solution is to build PHP without iconv:

CC=arm-none-linux-gnueabi-gcc ./configure --disable-all --without-iconv
make

And rebuild it into the same directory with iconv:

CC=arm-none-linux-gnueabi-gcc ./configure --disable-all --with-iconv --with-iconv-dir=$(SYSROOT)/usr
make

with SYSROOT=base directory of your cross-compilation target (path to the root dir of your target)
 [2014-07-10 06:48 UTC] 140111 at gmail dot com
same bug with 5.4.12
 [2021-06-10 12:47 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-10 12:47 UTC] cmb@php.net
Is that still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-06-20 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-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 22 05:01:23 2021 UTC