Skip to contentSkip to conversation

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

PATCH In review Otavio Salvador 3 participants 5 messages Aug 24, 2014 – Aug 28, 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 030c090..6bdae78 100644
@@ -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
#1 lore raw
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.

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

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]
Acked-by on v1 1/1
#3 lore raw
In reply to Otavio Salvador
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.

---
  meta-oe/recipes-devtools/php/php.inc |    1 +
  1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/php/php.inc +1 -0
index 030c090..6bdae78 100644
@@ -35,6 +35,7 @@ EXTRA_OECONF = "--enable-mbstring \
  "
  EXTRA_OECONF_virtclass-native = " \
                  --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \
+                --without-iconv \
                  ${COMMON_EXTRA_OECONF} \
  "
 
#4 lore raw
Quoted 2 lines · On Wed, Aug 27, 2014 at 07:37:59PM -0700, akuster808 wrote:

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.

---
  meta-oe/recipes-devtools/php/php.inc |    1 +
  1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/php/php.inc +1 -0
index 030c090..6bdae78 100644
@@ -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]