php: Fix native build due mistakenly linking against host's iconv
PATCH 1/1 php: Fix native build due mistakenly linking against host's iconv
The configure script has mistakenly choose to enable iconv support, due host to provide it, adding '/usr/lib' to the linking flags and failing as:
,----[ Linking error while testing 'fork' support ]
| conftest.c:268: warning: conflicting types for built-in function 'fork' | .../build/tmp/sysroots/x86_64-linux/usr/lib/libxml2.so: | undefined reference to `gzopen64@ZLIB_1.2.3.3' | collect2: ld returned 1 exit status
`----
This patch disables iconv support for native builds fixing the error.
--- meta-oe/recipes-devtools/php/php.inc | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/php/php.inc +1 -0
@@ -35,6 +35,7 @@ EXTRA_OECONF = "--enable-mbstring \ " EXTRA_OECONF_virtclass-native = " \ --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ + --without-iconv \ ${COMMON_EXTRA_OECONF} \ "
Signature · 1 line
1.7.10.4
Quoted 9 lines · Otavio Salvador
The configure script has mistakenly choose to enable iconv support, due host to provide it, adding '
/usr/lib' to the linking flags and failing as:,----[ Linking error while testing 'fork' support ]
| conftest.c:268: warning: conflicting types for built-in function 'fork' | .../build/tmp/sysroots/x86_64-linux/usr/lib/libxml2.so: | undefined reference to `gzopen64@ZLIB_1.2.3.3' | collect2: ld returned 1 exit status
Quoted 5 lines
`----
This patch disables iconv support for native builds fixing the error.
Signed-off-by Otavio Salvador <[email protected]>
Same error exist in Daisy.
I did the rebase here and I can send a patch for it, as it has a minor conflict due the pkgconfig rework. Martin, do you want me to send the patch on top of Daisy as well or do you resolve the conflict yourself?
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 15 lines · Otavio Salvador
Quoted 13 lines · Otavio Salvador
The configure script has mistakenly choose to enable iconv support, due host to provide it, adding '
/usr/lib' to the linking flags and failing as:,----[ Linking error while testing 'fork' support ]
| conftest.c:268: warning: conflicting types for built-in function 'fork' | .../build/tmp/sysroots/x86_64-linux/usr/lib/libxml2.so: | undefined reference to `gzopen64@ZLIB_1.2.3.3' | collect2: ld returned 1 exit status`----
This patch disables iconv support for native builds fixing the error.
Quoted 7 lines
Quoted 1 line
Signed-off-by Otavio Salvador <[email protected]>Same error exist in Daisy.
I did the rebase here and I can send a patch for it, as it has a minor conflict due the pkgconfig rework. Martin, do you want me to send the patch on top of Daisy as well or do you resolve the conflict yourself?
Please send it.
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 31 lines · Otavio Salvador
The configure script has mistakenly choose to enable iconv support, due host to provide it, adding '
/usr/lib' to the linking flags and failing as:,----[ Linking error while testing 'fork' support ]
| conftest.c:268: warning: conflicting types for built-in function 'fork' | .../build/tmp/sysroots/x86_64-linux/usr/lib/libxml2.so: | undefined reference to `gzopen64@ZLIB_1.2.3.3' | collect2: ld returned 1 exit status`----
This patch disables iconv support for native builds fixing the error.
Signed-off-by Otavio Salvador <[email protected]>--- meta-oe/recipes-devtools/php/php.inc | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-devtools/php/php.inc +1
-0@@ -35,6 +35,7 @@ EXTRA_OECONF = "--enable-mbstring \ " EXTRA_OECONF_virtclass-native = " \ --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ + --without-iconv \ ${COMMON_EXTRA_OECONF} \ "
Quoted 2 lines · On Wed, Aug 27, 2014 at 07:37:59PM -0700, akuster808 wrote:
Acked-by Armin Kuster <[email protected]>
Is this for "for-daisy" one?
Quoted 37 lines · Otavio Salvador
Quoted 31 lines
The configure script has mistakenly choose to enable iconv support, due host to provide it, adding '
/usr/lib' to the linking flags and failing as:,----[ Linking error while testing 'fork' support ]
| conftest.c:268: warning: conflicting types for built-in function 'fork' | .../build/tmp/sysroots/x86_64-linux/usr/lib/libxml2.so: | undefined reference to `gzopen64@ZLIB_1.2.3.3' | collect2: ld returned 1 exit status`----
This patch disables iconv support for native builds fixing the error.
Signed-off-by Otavio Salvador <[email protected]>--- meta-oe/recipes-devtools/php/php.inc | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-devtools/php/php.inc +1
-0@@ -35,6 +35,7 @@ EXTRA_OECONF = "--enable-mbstring \ " EXTRA_OECONF_virtclass-native = " \ --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ + --without-iconv \ ${COMMON_EXTRA_OECONF} \ "Signature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]