Re: net-snmp-5.5_CrossCompiling_xscale_be

2010-02-23 Thread Dave Shield
On 23 February 2010 03:55, Queenie de Melo queenie...@gmail.com wrote:
 Actually I only require my target platform to receive traps sent from other
 agents and then depending on what type of trap, take appropriate action
 (like send email etc)

 In this scenario, is it enough if i compile only snmptrapd.o with compile
 options of
 --with-out-mib-modules=mibII/at
 --disable-agent

If you don't need the Net-SNMP agent, then it should be
sufficient to run configure --disable-agent
   If you're not compiling the agent, then you don't need to
worry about including/excluding particular MIB modules
within the agent.


 --disable-applications

You *do* need to include the applications, since these include
the trap receiver.   Or at least, that's my understanding.  I'm
somewhat surprised that it seems to work for you.



 would this be enough for my requirement??

If you find something that compiles cleanly, and generates a
working trap daemon, then go for it.

Dave

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


Re: net-snmp-5.5_CrossCompiling_xscale_be

2010-02-22 Thread Dave Shield
On 19 February 2010 10:15, Queenie de Melo queenie...@gmail.com wrote:
 I configure using the below configure options, which gives me no errors
 ./configure --host=xscale --with-cc=xscale_be-gcc --with-linkcc=xscale_be-ld
 --with-ar=xscale_be-ar --with-endianness=big

 After configuring, when i do a make, I get the below errors:

 mibII/at.c: In function `ARP_Scan_Next':
 mibII/at.c:736: error: `ifIndex' undeclared (first use in this function)
 mibII/at.c:736: error: (Each undeclared identifier is reported only once
 mibII/at.c:736: error: for each function it appears in.)


Try omitting the 'mibII/at' module from the agent.
I.e. run
configure --with-out-mib-modules=mibII/at .

(plus the configure options you are currently using)

Dave

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


Re: net-snmp-5.5_CrossCompiling_xscale_be

2010-02-22 Thread Queenie de Melo
Thanks Dave for you response.

Well I tried with
* ./configure --host=xscale --with-cc=xscale_be-gcc
--with-linkcc=xscale_be-ld
 --with-ar=xscale_be-ar --with-endianness=big
--with-out-mib-modules=mibII/at*


 /bin/sh ../libtool  --mode=link xscale_be-ld -g -O2 -Unone -Dnone=none  -o
 snmpd snmpd.lo  -L../snmplib/.libs -L../snmplib -L./.libs -L./helpers/.libs
 -L./helpers  libnetsnmpagent.la helpers/libnetsnmphelpers.la
 libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lelf
 libtool: link: xscale_be-ld -g -O2 -Unone -Dnone=none -o snmpd snmpd.o
 -L/home/queenie/Linux_NMS/net-snmp-5.5/agent/.libs
 -L/home/queenie/Linux_NMS/net-snmp-5.5/agent/helpers/.libs
 -L/home/queenie/Linux_NMS/net-snmp-5.5/snmplib/.libs
 -L/home/queenie/Linux_NMS/net-snmp-5.5/snmplib
 -L/home/queenie/Linux_NMS/net-snmp-5.5/agent/helpers
 ./.libs/libnetsnmpagent.a helpers/.libs/libnetsnmphelpers.a
 ./.libs/libnetsnmpmibs.a
 /home/queenie/Linux_NMS/net-snmp-5.5/agent/helpers/.libs/libnetsnmphelpers.a
 /home/queenie/Linux_NMS/net-snmp-5.5/agent/.libs/libnetsnmpagent.a
 /home/queenie/Linux_NMS/net-snmp-5.5/snmplib/.libs/libnetsnmp.a -ldl
 ../snmplib/.libs/libnetsnmp.a -lcrypto -lelf
 xscale_be-ld: unrecognized option '-Unone'
 xscale_be-ld: use the --help option for usage information
 make[1]: *** [snmpd] Error 1
 make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
 make: *** [subdirs] Error 1

 Any  idea  what could be going wrong?
Is there any special CFLAGS to be given?




On Mon, Feb 22, 2010 at 4:00 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote:

 On 19 February 2010 10:15, Queenie de Melo queenie...@gmail.com wrote:
  I configure using the below configure options, which gives me no errors
  ./configure --host=xscale --with-cc=xscale_be-gcc
 --with-linkcc=xscale_be-ld
  --with-ar=xscale_be-ar --with-endianness=big
 
  After configuring, when i do a make, I get the below errors:

  mibII/at.c: In function `ARP_Scan_Next':
  mibII/at.c:736: error: `ifIndex' undeclared (first use in this function)
  mibII/at.c:736: error: (Each undeclared identifier is reported only once
  mibII/at.c:736: error: for each function it appears in.)


 Try omitting the 'mibII/at' module from the agent.
 I.e. run
configure --with-out-mib-modules=mibII/at .

 (plus the configure options you are currently using)

 Dave

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


Re: net-snmp-5.5_CrossCompiling_xscale_be

2010-02-22 Thread Dave Shield
On 22 February 2010 12:27, Queenie de Melo queenie...@gmail.com wrote:
 Well I tried with
  ./configure --host=xscale --with-cc=xscale_be-gcc
 --with-linkcc=xscale_be-ld
  --with-ar=xscale_be-ar --with-endianness=big
 --with-out-mib-modules=mibII/at


 /bin/sh ../libtool  --mode=link xscale_be-ld -g -O2 -Unone -Dnone=none  -o
 snmpd snmpd.lo  -L../snmplib/.libs -L../snmplib -L./.libs -L./helpers/.libs

 xscale_be-ld: unrecognized option '-Unone'
 xscale_be-ld: use the --help option for usage information
 make[1]: *** [snmpd] Error 1


Hmmm...
That looks like an issue with the cross-compilation environment,
or the target-host recognition.   Unfortunately, that's not something
which I have any experience of.   (Though pre-processor directives
shouldn't really be being passed to the linker, surely?)

I'll have to leave this query for someone else to pick up on.
Sorry

Dave

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


Re: net-snmp-5.5_CrossCompiling_xscale_be

2010-02-21 Thread Thomas Anders
Queenie de Melo wrote: 
 Iam a newbie to linux and I recently downloaded net-snmp, Iam getting
 errors when i try cross compiling net-snmp-5.5 for my target platform
 having xscale big endian architecture.

http://www.net-snmp.org/wiki/index.php/FAQ:General_07


+Thomas

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


net-snmp-5.5_CrossCompiling_xscale_be

2010-02-19 Thread Queenie de Melo
Hello everybody,

Iam a newbie to linux and I recently downloaded net-snmp, Iam getting errors
when i try cross compiling net-snmp-5.5 for my target platform having xscale
big endian architecture.

I configure using the below configure options, which gives me no errors
*./configure --host=xscale --with-cc=xscale_be-gcc
--with-linkcc=xscale_be-ld --with-ar=xscale_be-ar --with-endianness=big *
**
After configuring, when i do a make, I get the below errors:


 /bin/sh ../../libtool  --mode=compile xscale_be-gcc -I../../include -I.
 -I../../agent -I../../agent/mibgroup -I../../snmplib   -g -O2 -Unone
 -Dnone=none  -c -o mibII/at.lo mibII/at.c
 libtool: compile:  xscale_be-gcc -I../../include -I. -I../../agent
 -I../../agent/mibgroup -I../../snmplib -g -O2 -Unone -Dnone=none -c
 mibII/at.c -o mibII/at.o
 mibII/at.c: In function `ARP_Scan_Next':
 mibII/at.c:736: error: `ifIndex' undeclared (first use in this function)
 mibII/at.c:736: error: (Each undeclared identifier is reported only once
 mibII/at.c:736: error: for each function it appears in.)
 make[2]: *** [mibII/at.lo] Error 1
 make[2]: Leaving directory
 `/home/queenie/Linux_NMS/net-snmp-5.5/agent/mibgroup'
 make[1]: *** [subdirs] Error 1
 make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
 make: *** [subdirs] Error 1


What could be the problem? any suggestions for solutions???

I tried make snmptrapd but again i get below error


 make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/snmplib'
 make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/snmplib'
 make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
 make[1]: Nothing to be done for `libs'.
 make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
 make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/apps'
 /bin/sh ../libtool  --mode=compile xscale_be-gcc -I../include -I.
 -I../agent -I../agent/helpers -I../agent/mibgroup -I../snmplib   -g -O2
 -Unone -Dnone=none  -c -o snmptrapd.lo snmptrapd.c
 libtool: compile:  xscale_be-gcc -I../include -I. -I../agent
 -I../agent/helpers -I../agent/mibgroup -I../snmplib -g -O2 -Unone
 -Dnone=none -c snmptrapd.c -o snmptrapd.o
 make[1]: *** No rule to make target `../agent/libnetsnmpmibs.la', needed
 by `snmptrapd'.  Stop.
 make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/apps'
 make: *** [snmptrapd] Error 2


Surprisingly when i configure using below options

*./configure --host=xscale --with-cc=xscale_be-gcc
--with-linkcc=xscale_be-ld --with-ar=xscale_be-ar --with-endianness=big
--disable-agent --disable-applications*
and then do a make or make snmptrapd i get no errors. (both
*--disable-agent
--disable-applications* should be disabled)

Any clue?? Please help!!
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


net-snmp-5.5_CrossCompiling_xscale_be

2010-02-19 Thread Queenie de Melo
Hello everybody,

Iam a newbie to linux and I recently downloaded net-snmp, Iam getting errors
when i try cross compiling net-snmp-5.5 for my target platform having xscale
big endian architecture.

I configure using the below configure options, which gives me no errors
*./configure --host=xscale --with-cc=xscale_be-gcc
--with-linkcc=xscale_be-ld --with-ar=xscale_be-ar --with-endianness=big *
**
After configuring, when i do a make, I get the below errors:

/bin/sh ../../libtool  --mode=compile xscale_be-gcc -I../../include -I.
-I../../agent -I../../agent/mibgroup -I../../snmplib   -g -O2 -Unone
-Dnone=none  -c -o mibII/at.lo mibII/at.c
libtool: compile:  xscale_be-gcc -I../../include -I. -I../../agent
-I../../agent/mibgroup -I../../snmplib -g -O2 -Unone -Dnone=none -c
mibII/at.c -o mibII/at.o
mibII/at.c: In function `ARP_Scan_Next':
mibII/at.c:736: error: `ifIndex' undeclared (first use in this function)
mibII/at.c:736: error: (Each undeclared identifier is reported only once
mibII/at.c:736: error: for each function it appears in.)
make[2]: *** [mibII/at.lo] Error 1
make[2]: Leaving directory
`/home/queenie/Linux_NMS/net-snmp-5.5/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
make: *** [subdirs] Error 1
What could be the problem? any suggestions for solutions???
I tried make snmptrapd but again i get below error
make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/snmplib'
make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/snmplib'
make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
make[1]: Nothing to be done for `libs'.
make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/agent'
make[1]: Entering directory `/home/queenie/Linux_NMS/net-snmp-5.5/apps'
/bin/sh ../libtool  --mode=compile xscale_be-gcc -I../include -I. -I../agent
-I../agent/helpers -I../agent/mibgroup -I../snmplib   -g -O2 -Unone
-Dnone=none  -c -o snmptrapd.lo snmptrapd.c
libtool: compile:  xscale_be-gcc -I../include -I. -I../agent
-I../agent/helpers -I../agent/mibgroup -I../snmplib -g -O2 -Unone
-Dnone=none -c snmptrapd.c -o snmptrapd.o
make[1]: *** No rule to make target `../agent/libnetsnmpmibs.la', needed by
`snmptrapd'.  Stop.
make[1]: Leaving directory `/home/queenie/Linux_NMS/net-snmp-5.5/apps'
make: *** [snmptrapd] Error 2

Surprisingly when i configure using below options

*./configure --host=xscale --with-cc=xscale_be-gcc
--with-linkcc=xscale_be-ld --with-ar=xscale_be-ar --with-endianness=big
--disable-agent --disable-applications*
and then do a make or make snmptrapd i get no errors. (both
*--disable-agent
--disable-applications* should be disabled)

Any clue?? Please help!!
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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