[Buildroot] [PATCH] lsof: fix "'TCP_*' undeclared" build errors

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Fri May 2 15:29:44 UTC 2014


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


More information about the buildroot mailing list