All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] php: Fix native build due mistakenly linking against host's iconv
@ 2014-08-24 19:39 Otavio Salvador
  2014-08-24 19:45 ` Otavio Salvador
  2014-08-28  2:37 ` akuster808
  0 siblings, 2 replies; 5+ messages in thread
From: Otavio Salvador @ 2014-08-24 19:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: 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 <otavio@ossystems.com.br>
---
 meta-oe/recipes-devtools/php/php.inc |    1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index 030c090..6bdae78 100644
--- a/meta-oe/recipes-devtools/php/php.inc
+++ b/meta-oe/recipes-devtools/php/php.inc
@@ -35,6 +35,7 @@ EXTRA_OECONF = "--enable-mbstring \
 "
 EXTRA_OECONF_virtclass-native = " \
                 --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \
+                --without-iconv \
                 ${COMMON_EXTRA_OECONF} \
 "
 
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] php: Fix native build due mistakenly linking against host's iconv
  2014-08-24 19:39 [meta-oe][PATCH] php: Fix native build due mistakenly linking against host's iconv Otavio Salvador
@ 2014-08-24 19:45 ` Otavio Salvador
  2014-08-24 20:36   ` Martin Jansa
  2014-08-28  2:37 ` akuster808
  1 sibling, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2014-08-24 19:45 UTC (permalink / raw)
  To: OpenEmbedded Devel List; +Cc: Otavio Salvador

On Sun, Aug 24, 2014 at 4:39 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> 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 <otavio@ossystems.com.br>

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?

-- 
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] php: Fix native build due mistakenly linking against host's iconv
  2014-08-24 19:45 ` Otavio Salvador
@ 2014-08-24 20:36   ` Martin Jansa
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2014-08-24 20:36 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Otavio Salvador

[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]

On Sun, Aug 24, 2014 at 04:45:22PM -0300, Otavio Salvador wrote:
> On Sun, Aug 24, 2014 at 4:39 PM, Otavio Salvador
> <otavio@ossystems.com.br> wrote:
> > 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 <otavio@ossystems.com.br>
> 
> 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.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] php: Fix native build due mistakenly linking against host's iconv
  2014-08-24 19:39 [meta-oe][PATCH] php: Fix native build due mistakenly linking against host's iconv Otavio Salvador
  2014-08-24 19:45 ` Otavio Salvador
@ 2014-08-28  2:37 ` akuster808
  2014-08-28  9:26   ` Martin Jansa
  1 sibling, 1 reply; 5+ messages in thread
From: akuster808 @ 2014-08-28  2:37 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Otavio Salvador


Acked-by: Armin Kuster <akuster808@gmail.com>

On 08/24/2014 12:39 PM, Otavio Salvador wrote:
> 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 <otavio@ossystems.com.br>
> ---
>   meta-oe/recipes-devtools/php/php.inc |    1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
> index 030c090..6bdae78 100644
> --- a/meta-oe/recipes-devtools/php/php.inc
> +++ b/meta-oe/recipes-devtools/php/php.inc
> @@ -35,6 +35,7 @@ EXTRA_OECONF = "--enable-mbstring \
>   "
>   EXTRA_OECONF_virtclass-native = " \
>                   --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \
> +                --without-iconv \
>                   ${COMMON_EXTRA_OECONF} \
>   "
>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] php: Fix native build due mistakenly linking against host's iconv
  2014-08-28  2:37 ` akuster808
@ 2014-08-28  9:26   ` Martin Jansa
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2014-08-28  9:26 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Otavio Salvador

[-- Attachment #1: Type: text/plain, Size: 1706 bytes --]

On Wed, Aug 27, 2014 at 07:37:59PM -0700, akuster808 wrote:
> 
> Acked-by: Armin Kuster <akuster808@gmail.com>

Is this for "for-daisy" one?

> On 08/24/2014 12:39 PM, Otavio Salvador wrote:
> > 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 <otavio@ossystems.com.br>
> > ---
> >   meta-oe/recipes-devtools/php/php.inc |    1 +
> >   1 file changed, 1 insertion(+)
> >
> > diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
> > index 030c090..6bdae78 100644
> > --- a/meta-oe/recipes-devtools/php/php.inc
> > +++ b/meta-oe/recipes-devtools/php/php.inc
> > @@ -35,6 +35,7 @@ EXTRA_OECONF = "--enable-mbstring \
> >   "
> >   EXTRA_OECONF_virtclass-native = " \
> >                   --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \
> > +                --without-iconv \
> >                   ${COMMON_EXTRA_OECONF} \
> >   "
> >
> >
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-28  9:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-24 19:39 [meta-oe][PATCH] php: Fix native build due mistakenly linking against host's iconv Otavio Salvador
2014-08-24 19:45 ` Otavio Salvador
2014-08-24 20:36   ` Martin Jansa
2014-08-28  2:37 ` akuster808
2014-08-28  9:26   ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.