RE: snmp cross-compiler error

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thank you for ur inputs.

Regards,
Sasikumar.



-----Original Message-----
From: Raffles [mailto:[email protected]]
Sent: Wed 3/1/2006 5:37 PM
To: Sasikumar Bodathula (WT01 - Broadband Networks)
Cc: [email protected]
Subject: Re: snmp cross-compiler error
 
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.
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.