I think you just need to follow the advice in the error message. To cross compile for powerPC, we're successfully using

./configure --host=powerpc-8540-linux-gnu --with-endianness=big

We've also manually specified the compiler (inherent in our build).
        
CC=/opt/crosstool/gcc-3.4.4-glibc-2.3.5/powerpc-8540-linux-gnu/bin/powerpc-8540-linux-gnu-gcc

I hope this is helpful (or are you not cross-compiling?)

Regards

Raffles

PS Can I suggest making new posts for new questions such as this, rather than replying to an existing post with an unrelated subject? It makes the post much easier to find if/when you want to come back to it later. Thanks.


[EMAIL PROTECTED] wrote:
Hi All,
I am using net-snmp-5.2.1.2 and i want to compile with powerpc compiler for that i used the following option for configuring.

./configure --with-cc=ppc_82xx-gcc

After this i am getting following error.

checking what to build and install...  agent apps man local mibs
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking if I need to feed myself to ksh... no
checking for gcc... ppc_82xx-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.


Regards,
Sasikumar.


--

Visit our website at www.roke.co.uk

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to