Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [May15 patch 12/12] netsnmp: disable build with external toolchain
@ 2010-06-22 14:16 Darcy L. Watkins
  2010-06-23 15:30 ` Darcy L. Watkins
  0 siblings, 1 reply; 3+ messages in thread
From: Darcy L. Watkins @ 2010-06-22 14:16 UTC (permalink / raw)
  To: buildroot

Hello,

I need to be able to build net-snmp in my buildroot using a crosstool-ng
external toolchain.

Has anyone made progress or determined the underlying cause of why
net-snmp cannot properly locate the libraries even though --sysroot
points to the buildroot staging area (instead of using the toolchain
default)?

Would adding redundant -L<path> to the staging library area work (and
likely also -I<path> to the includes if needed)?

Any insight as to why this happens with net-snmp (or is it observed with
some other packages too)?

Regards,

Darcy

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

* [Buildroot] [May15 patch 12/12] netsnmp: disable build with external toolchain
  2010-06-22 14:16 [Buildroot] [May15 patch 12/12] netsnmp: disable build with external toolchain Darcy L. Watkins
@ 2010-06-23 15:30 ` Darcy L. Watkins
  2010-06-23 18:25   ` Darcy L. Watkins
  0 siblings, 1 reply; 3+ messages in thread
From: Darcy L. Watkins @ 2010-06-23 15:30 UTC (permalink / raw)
  To: buildroot

Hello,

The fourth chunk in the buildroot-libtool.patch appears to be bogus.  It
adds a commented out chunk of code, but doesn't remove what appears to
have been intended to be the code to comment out (around line # 29xx in
ltmain.sh).  It would seem that an "exit 1" was replaced with "exit
$EXIT_FAILURE" so the patch broke.  I think it's possible that the patch
was refreshed without anyone catching this.

I also notice what appears to be two different variants of ltmain.sh
floating around in the packages - one circa 2007 (ver 1.5.24), the other
circa 2008 (ver 2.2.6).  Only the former is compatible with the patch.

The ltmain.sh in the netsnmp package is the newer one (not compatible
with the patch).  Do we need a variant of buildroot-libtool.patch for
the newer libtool, or is the newer ltmain.sh variant supposed to have
the cross compile problems fixed?

Regards,

Darcy

On Tue, 2010-06-22 at 07:16 -0700, Darcy L. Watkins wrote:
> I need to be able to build net-snmp in my buildroot using a
> crosstool-ng
> external toolchain.
> 
> Has anyone made progress or determined the underlying cause of why
> net-snmp cannot properly locate the libraries even though --sysroot
> points to the buildroot staging area (instead of using the toolchain
> default)?
> 
> Would adding redundant -L<path> to the staging library area work (and
> likely also -I<path> to the includes if needed)?
> 
> Any insight as to why this happens with net-snmp (or is it observed
> with
> some other packages too)?

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

* [Buildroot] [May15 patch 12/12] netsnmp: disable build with external toolchain
  2010-06-23 15:30 ` Darcy L. Watkins
@ 2010-06-23 18:25   ` Darcy L. Watkins
  0 siblings, 0 replies; 3+ messages in thread
From: Darcy L. Watkins @ 2010-06-23 18:25 UTC (permalink / raw)
  To: buildroot

Hello,

The patch below appears to get net-snmp to build OK (at least in my
environment using crosstool-ng).  It is a bit of a hack/kludge since it
is basically saying, "just in case you don't understand the --sysroot
directive, here are some redundant -I and -L directives to include with
CFLAGS and LDFLAGS to point to the staging area includes and libraries."


Regards,

Darcy

------


signed-off-by: Darcy Watkins <dwatkins@tranzeo.com>
Index: buildroot-2010.02_x86/package/Makefile.in
===================================================================
--- buildroot-2010.02_x86.orig/package/Makefile.in
+++ buildroot-2010.02_x86/package/Makefile.in
@@ -92,8 +92,10 @@ TARGET_CXXFLAGS=$(TARGET_CFLAGS)
 #########################################################################
 else
 TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) --sysroot $(STAGING_DIR)/
+TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
 TARGET_CXXFLAGS=$(TARGET_CFLAGS)
 TARGET_LDFLAGS=--sysroot $(STAGING_DIR)/
+TARGET_LDFLAGS+=-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib
 endif
 #########################################################################
 #ifeq ($(BR2_ROOTFS_SUFFIX),)

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

end of thread, other threads:[~2010-06-23 18:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-22 14:16 [Buildroot] [May15 patch 12/12] netsnmp: disable build with external toolchain Darcy L. Watkins
2010-06-23 15:30 ` Darcy L. Watkins
2010-06-23 18:25   ` Darcy L. Watkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox