From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Beno=C3=AEt_Th=C3=A9baudeau?= Date: Fri, 2 May 2014 17:29:44 +0200 (CEST) Subject: [Buildroot] [PATCH] lsof: fix "'TCP_*' undeclared" build errors In-Reply-To: <1399042764-22388-2-git-send-email-benoit.thebaudeau@advansee.com> References: <1399042764-22388-1-git-send-email-benoit.thebaudeau@advansee.com> <1399042764-22388-2-git-send-email-benoit.thebaudeau@advansee.com> Message-ID: <61985964.1908854.1399044584132.JavaMail.zimbra@advansee.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On Friday, May 2, 2014 4:59:24 PM, Beno?t Th?baudeau wrote: > With some configurations, cross-building lsof results in the following > errors: FYI, I had this issue on 64-bit Ubuntu 13.10, building with a custom cross-toolchain for ARM926EJ-S based on Linaro 2011.08 4.5.4 20110808 and EGLIBC 2.13 and generated using crosstool-NG hg_default at 2617_41bd6777fa4f. [...] > diff --git a/package/lsof/lsof.mk b/package/lsof/lsof.mk > index aa101e4..66d2133 100644 > --- a/package/lsof/lsof.mk > +++ b/package/lsof/lsof.mk > @@ -47,7 +47,8 @@ endef > define LSOF_CONFIGURE_CMDS > (cd $(@D) ; \ > echo n | $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS) > $(BR2_LSOF_CFLAGS)" \ > - LSOF_INCLUDE="$(STAGING_DIR)/usr/include" LSOF_CFLAGS_OVERRIDE=1 > ./Configure linux) > + LSOF_INCLUDE="$(STAGING_DIR)/usr/include" LSOF_CFLAGS_OVERRIDE=1 \ > + LSOF_CC="cc --sysroot $(STAGING_DIR)" ./Configure linux) It'd be better if $(STAGING_DIR) were quoted. > $(LSOF_CONFIGURE_WCHAR_FIXUPS) > $(LSOF_CONFIGURE_LOCALE_FIXUPS) > endef > -- > 1.8.3.2 > > Beno?t