> From: Jon Dufresne [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 27, 2008 12:49 PM

> 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.

        It appears that the system is building perl modules, which have their 
own set of flags.  I would suggest using the "--disable-embedded-perl" flag to 
hopefully eliminate perl connections altogether.  If you will have perl on the 
target system, you can try the "--disable-perl-cc-checks" flag, which I suspect 
will force the same compiler to be used.  I must confess, however, that I 
remain a bit baffled by the perl/net-snmp entanglement, and have not yet been 
able to get a completely perl-free build...


        HTH,

Mike

-------------------------------------------------------------------------
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

Reply via email to