Bug #61130 [Com]: --with-iconv pulls in /usr/include

From: Date: Fri, 03 Jan 2014 17:01:18 +0000
Subject: Bug #61130 [Com]: --with-iconv pulls in /usr/include
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183567@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61130&edit=1

 ID:                 61130
 Comment by:         olivier dot antheaume at gmail dot com
 Reported by:        fscan at chilicode dot com
 Summary:            --with-iconv pulls in /usr/include
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   linux
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

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)


Previous Comments:
------------------------------------------------------------------------
[2012-02-18 16:54:49] 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 01:23:44] 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:16:56] 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.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61130&edit=1


Thread (7 messages)

« previous php.bugs (#183567) next »