Compile error when cross compiling net-snmp

"Jon Dufresne" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I am trying to cross compile net-snmp-5.4.2.1. Both my build and host
system are Linux. This is how I am building net-snmp:

$ ./configure \
	--build=${HOST} \
	--host=${TARGET} \
	--with-endianness=little \
	--prefix=/usr \
	--sysconfdir=/etc \
	--disable-applications \
	--with-default-snmp-version=3 \
	--with-sys-contact= \
	--with-sys-location= \
	--with-logfile=/var/log/snmpd.log \
	--with-persistent-directory=/var/net-snmp
$ make

Quite a lot of code get compiled. Most the time I notice that the code
is correctly being compiled with "${TARGET}-gcc". However, at some
point, the build stops using my cross compiler and starts using the
host compile and I see "gcc" instead of "${TARGET}-gcc". Then the
build tries to link the code it built with gcc with ld, instead of the
${TARGET}-ld. This then fails with a linking error.

Any idea why the build stops using the cross toolchain?

The full output of my build can be seen at http://pastebin.com/f61313fba

Any ideas?

Thanks,
Jon

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.