RE: Compile problem

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC0D03D5C7@mailserver.metatv-ds.metatv.com>
> From: Андрей Долгушин [mailto:[email protected]]
> Sent: Wednesday, September 16, 2009 7:29 AM


> I try compile this package for PowerPC platform. Configuration string
> is:
> 
> ./configure --host=i686-pc-linux-gnu --target=powerpc --
> prefix=$HOME/ppc_install --exec-prefix=$HOME/ppc_exec_install --
> disable-embedded-perl --disable-scripts --with-cc=powerpc-405-linux-
> gnu-gcc --with-linkcc=powerpc-405-linux-gnu-gcc --with-ar=powerpc-405-
> linux-gnu-ar --with-endianness=big

	Just curious, but is powerpc-405-linux-gnu-gcc a wrapoper for gcc with the proper crosscompiling flags, or a different build of gcc?

> There is some error in compile time:
> 
> powerpc-405-linux-gnu-gcc -I../../include -I. -I../../agent -
> I../../agent/mibgroup -I../../snmplib -g -O2 -Unone -Dnone=none -c
> mibII/at.c  -fPIC -DPIC -o mibII/.libs/at.o
> mibII/at.c: In function 'ARP_Scan_Next':
> mibII/at.c:732: error: 'ifIndex' undeclared (first use in this function)
> mibII/at.c:732: error: (Each undeclared identifier is reported only
> once
> mibII/at.c:732: error: for each function it appears in.)
> 
> I edit this file (at.c) in body of the function ( 'ARP_Scan_Next'  ):
> 
> #ifdef ARP_SCAN_FOUR_ARGUMENTS
> ifIndex = ...
> #endif

http://marc.info/?l=net-snmp-users&m=121239609108632&w=2

	I don't think that's the answer.  Looks like you're building on a four-arg system.  You should set -host= top the system you're building for - look in include/net-snmp/systems for a match, or you may need to modify your own.
 
> P.S. Sorry for my bad english.

	It's better than my Russian... (is it Russian?)


	HTH,

Mike

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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.