Skip to contentSkip to conversation

php: Fix native build due mistakenly linking against host's iconv

PATCH In review Otavio Salvador 4 participants 7 messages Aug 24, 2014 – Aug 29, 2014

lore
Share & tools
lore
#0 lore raw

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
index b1bf79c..1e2aa72 100644
@@ -37,6 +37,7 @@ EXTRA_OECONF = "--enable-mbstring \
 EXTRA_OECONF_virtclass-native = " \
                 --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \
                 --with-libxml-dir=${STAGING_BINDIR_NATIVE} \
+                --without-iconv \
                 ${COMMON_EXTRA_OECONF} \
 "
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 4 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:

Quoted 9 lines

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

the patch subject is confusing. enabling iconv is not mistake but its probed and if found its used. in this case libz against which libxml2 is linked is not used here and that ends up in error.

Can you try to add --with-iconv-dir=${STAGING_LIBDIR_NATIVE} and see if it helps ?

Quoted 25 lines
---
 meta-oe/recipes-devtools/php/php.inc |    1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/php/php.inc +1 -1
index b1bf79c..1e2aa72 100644
@@ -37,6 +37,7 @@ EXTRA_OECONF = "--enable-mbstring \
 EXTRA_OECONF_virtclass-native = " \
                 --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \
                 --with-libxml-dir=${STAGING_BINDIR_NATIVE} \
+                --without-iconv \
                 ${COMMON_EXTRA_OECONF} \
 "
 
--

1.7.10.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 16 lines · Khem Raj
Quoted 4 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:

Quoted 9 lines

,----[ 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 6 lines

the patch subject is confusing. enabling iconv is not mistake but its probed and if found its used. in this case libz against which libxml2 is linked is not used here and that ends up in error.

Can you try to add --with-iconv-dir=${STAGING_LIBDIR_NATIVE} and see if it helps ?

The native does not depends on virtual/iconv. So the natural thing is to disable it.

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
#3 lore raw
Quoted 21 lines · Otavio Salvador
Quoted 20 lines · Khem Raj
Quoted 4 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:

Quoted 9 lines

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

the patch subject is confusing. enabling iconv is not mistake but its probed and if found its used. in this case libz against which libxml2 is linked is not used here and that ends up in error.

Quoted 5 lines
Quoted 2 lines

Can you try to add --with-iconv-dir=${STAGING_LIBDIR_NATIVE} and see if it helps ?

The native does not depends on virtual/iconv. So the natural thing is to disable it.

Hey guys, can you review this one for backporting?

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
#4 lore raw

Martin,

Quoted 23 lines · Otavio Salvador
Quoted 21 lines · Otavio Salvador
Quoted 20 lines · Khem Raj
Quoted 4 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:

Quoted 9 lines

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

the patch subject is confusing. enabling iconv is not mistake but its probed and if found its used. in this case libz against which libxml2 is linked is not used here and that ends up in error.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Can you try to add --with-iconv-dir=${STAGING_LIBDIR_NATIVE} and see if it helps ?

The native does not depends on virtual/iconv. So the natural thing is to disable it.

Hey guys, can you review this one for backporting?

This is the Daisy backport one.

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
Acked-by
#5 lore raw

might have acked the wrong one.

Quoted 37 lines · Otavio Salvador

Martin,

Quoted 23 lines · Otavio Salvador
Quoted 21 lines · Otavio Salvador
Quoted 20 lines · Khem Raj
Quoted 4 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:

Quoted 9 lines

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

the patch subject is confusing. enabling iconv is not mistake but its probed and if found its used. in this case libz against which libxml2 is linked is not used here and that ends up in error.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Can you try to add --with-iconv-dir=${STAGING_LIBDIR_NATIVE} and see if it helps ?

The native does not depends on virtual/iconv. So the natural thing is to disable it.

Hey guys, can you review this one for backporting?

This is the Daisy backport one.

Acked-by
#6 lore raw
Quoted 56 lines · On Thu, Aug 28, 2014 at 3:37 PM, akuster808 <[email protected]> wrote:

might have acked the wrong one.

Quoted 46 lines · Otavio Salvador

Martin,

Quoted 32 lines · Otavio Salvador
Quoted 29 lines · Otavio Salvador
Quoted 25 lines · Khem Raj
Quoted 8 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'

Quoted 7 lines
| .../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.

the patch subject is confusing. enabling iconv is not mistake but its probed and if found its used. in this case libz against which libxml2 is linked is not used here and that ends up in error.

Can you try to add --with-iconv-dir=${STAGING_LIBDIR_NATIVE} and see if it helps ?

Quoted 5 lines
Quoted 2 lines

The native does not depends on virtual/iconv. So the natural thing is to disable it.

Hey guys, can you review this one for backporting?

This is the Daisy backport one.

Signature · 2 lines
=================
http://bec-systems.com