All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: Dexuan Cui <dexuan.cui@intel.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] wget: fix a host intrusion issue introduced by adding --with-ssl=openssl.
Date: Mon, 19 Dec 2011 06:37:01 +0100	[thread overview]
Message-ID: <4EEECD7D.7030807@eukrea.com> (raw)
In-Reply-To: <33eb9cf534f8e946cf8cb2d67d64b47f193a89e7.1324271587.git.dexuan.cui@intel.com>

Hi Dexuan,

Le 19/12/2011 06:14, Dexuan Cui a écrit :
> On my x86-64 Ubuntu 11.04, with MACHINE=qemux86, "bitbake wget" fails. The
> config.log shows:
>
> configure:30072: i586-poky-linux-gcc  -m32   -march=i586
>   --sysroot=/distro/dcui/1212/p1/build/tmp/sysroots/qemux86 -o conftest -O2
>   -pipe -g -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu
>   -Wl,--as-needed conftest.c -ldl -lz  /usr/lib/libssl.so /usr/lib/libcrypto.so
>   -lz>&5
> /usr/lib/libssl.so: could not read symbols: File in wrong format
>
> The patch fixes the issue by specifying libssl-prefix.
>
> Signed-off-by: Dexuan Cui<dexuan.cui@intel.com>
> ---
>   meta/recipes-extended/wget/wget.inc |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-extended/wget/wget.inc b/meta/recipes-extended/wget/wget.inc
> index 7083569..25f36c8 100644
> --- a/meta/recipes-extended/wget/wget.inc
> +++ b/meta/recipes-extended/wget/wget.inc
> @@ -4,11 +4,11 @@ LICENSE = "GPL"
>   LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
>   DEPENDS = "openssl"
>
> -INC_PR = "r12"
> +INC_PR = "r13"
>
>   inherit autotools gettext update-alternatives
>
> -EXTRA_OECONF = "--with-libc --enable-ipv6 --with-ssl=openssl"
> +EXTRA_OECONF = "--with-libc --enable-ipv6 --with-libssl-prefix=${STAGING_DIR_HOST} --with-ssl=openssl"
>
>   do_install_append () {
>   	mv ${D}${bindir}/wget ${D}${bindir}/wget.${PN}

this also fix a problem I just met (angstrom, armv5 target) :
  | configure: error: --with-ssl=openssl was given, but SSL is not available.

Tested-by: Eric Bénard <eric@eukrea.com>

Thanks !
Eric



  parent reply	other threads:[~2011-12-19  5:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-19  5:14 [PATCH 0/1] fix wget build issue: /usr/lib/libssl.so: could not read symbols Dexuan Cui
2011-12-19  5:14 ` [PATCH 1/1] wget: fix a host intrusion issue introduced by adding --with-ssl=openssl Dexuan Cui
2011-12-19  5:27   ` Steve Sakoman
2011-12-19  5:37   ` Eric Bénard [this message]
2011-12-19  6:13     ` Cui, Dexuan
2011-12-22 19:19 ` [PATCH 0/1] fix wget build issue: /usr/lib/libssl.so: could not read symbols Saul Wold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EEECD7D.7030807@eukrea.com \
    --to=eric@eukrea.com \
    --cc=dexuan.cui@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.