From patchwork Mon Mar 26 16:35:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 148777 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 1C5F2B6EE8 for ; Tue, 27 Mar 2012 03:35:35 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5EA7FA0206; Mon, 26 Mar 2012 16:35:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EvTwEvzq1bfq; Mon, 26 Mar 2012 16:35:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E85C5A01F6; Mon, 26 Mar 2012 16:35:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1DDD28F753 for ; Mon, 26 Mar 2012 16:35:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 09ACB8CEB4 for ; Mon, 26 Mar 2012 16:35:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9f2H0sIM++Nq for ; Mon, 26 Mar 2012 16:35:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.213.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id DA8F18CB79 for ; Mon, 26 Mar 2012 16:35:30 +0000 (UTC) Received: by yenl11 with SMTP id l11so6368786yen.16 for ; Mon, 26 Mar 2012 09:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yawnlUHZ4QBBwpAM5ACGuIgVwj6fLTcJKitxIM0fpVg=; b=bLNNitT84WvDAynUOorftuDvKIYoYOxFNk+/IonZ+jenuomWggJMBpPc9i7jbcZTFW In+hs0xIV8QyLWcflDJvLOe2j3AYQ20OOFOpUaPTULz6RdK7zRu2sSHWyGObsjTvyP4Z EqcWiNrDE41mgdUINGH7+ymdE5B2HJLxiGjm8Acllumwz/Qk6ObSJGU8/dzGuKfkD53W Zeb+eLGxPI/sFUKb2yMyqdmkOyew2HKcBWeixUjl9JOkl8vUnwbR24ilxriYfPJ64Eov dT7PW/uqscImhkejuyrV42CrxcGHCRq5ajera859SRkqbAON7UwZXDjI582PmszZbw/O UDpg== MIME-Version: 1.0 Received: by 10.68.234.200 with SMTP id ug8mr54275251pbc.78.1332779729286; Mon, 26 Mar 2012 09:35:29 -0700 (PDT) Received: by 10.68.12.137 with HTTP; Mon, 26 Mar 2012 09:35:29 -0700 (PDT) Date: Mon, 26 Mar 2012 17:35:29 +0100 Message-ID: From: Will Newton To: buildroot@busybox.net Subject: [Buildroot] Host libxml-parser-perl build issue X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Hi all, I have a build failure building avahi on a CentOS 5 system (old, but not ancient) which is caused by the configure script failing to load the XML::Parser perl module. buildroot has built a host version of libxml-parser-perl and also a host version of expat, but the configure for avahi is still failing. The reason for this appears to be that perl cannot find libexpat.so, presumably because it is not in the shared library search path. The attached patch fixes it but seems like quite a far-reaching change, does anybody have any opinions on it? Thanks, diff --git a/package/Makefile.in b/package/Makefile.in index dc8d038..3ac7505 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -193,10 +193,12 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \ LDFLAGS="$(TARGET_LDFLAGS)" \ FCFLAGS="$(TARGET_FCFLAGS)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ + LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \ PERLLIB="$(HOST_DIR)/usr/lib/perl" \ STAGING_DIR="$(STAGING_DIR)" TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \ + LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \ PERLLIB="$(HOST_DIR)/usr/lib/perl" HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \ diff --git a/package/Makefile.in b/package/Makefile.in index dc8d038..3ac7505 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -193,10 +193,12 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \ LDFLAGS="$(TARGET_LDFLAGS)" \ FCFLAGS="$(TARGET_FCFLAGS)" \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \ + LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \ PERLLIB="$(HOST_DIR)/usr/lib/perl" \ STAGING_DIR="$(STAGING_DIR)" TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \ + LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \ PERLLIB="$(HOST_DIR)/usr/lib/perl" HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \