Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Another problem with Installing new-snmp in QNX 6.x Architechture

90 views
Skip to first unread message

rid_One

unread,
Jul 29, 2004, 5:13:40 AM7/29/04
to
Thanx. I followed your suggestion and it worked,
eventhough there're always messages "od: illegal
option -- x" after every compiling line. after that, I
tried to add my own module to snmpd, it work nicely
(at least, when I tried them globally).

But there's another problem. Files in directory
"net-snmp-5.1.1/apps" have not been compiled. So I
compiled them with "make", it run OK (with messages
"od: illegal option -- x" after every compiling line
:-\ ), but It couldn't link snmptrapd file. there's
error message:

./.libs/libnetsnmptrapd.a(snmptrapd_handlers.o): in
function 'command_handler' :
/root./net-snmp-5.1.1/apps/snmptrapd_handlers.c:809:
undefined reference to 'run_exec_command'

Can anyone help?

--- "Fernández_Piñas,_David" <dfern...@indra.es>
wrote:
>
> I am using these configure options with QNX 6.2.1 on
> a PC, net-snmp 5.1:
>
> ./configure --enable-mini-agent --with-defaults
> --disable-applications --disable-manuals
> --disable-scripts --disable-mibs --disable-debugging
> --disable-mib-loading --enable-shared
> --disable-static
> --with-out-mib-modules="mibII/snmp_mib
> mibII/sysORTable mibII/vacm_vars utilities/execute
> notification target utilities snmpv3 snmpv3mibs smux
> ucd_snmp agentx agent_mibs"
> --with-out-transports="Callback Unix TCP AAL5PVC
> UDPIPv6 TCPIPv6 IPX" --with-transports="UDP"
> --without-kmem-usage --with-out-zlibc
> --disable-privacy --with-openssl=no
> --with-default-snmp-version="2"
> --disable-internal-md5
> --with-out-security-modules="ksm"

[deleted]

=====
Mohammad Ridwan Agustiawan :: 13599066
------------------------------------------------
LAPI-Divusi ITB
Departemen Sistem dan Telekomunikasi
Ganesha 10 Bandung 40122
m19...@yahoo.com
rid...@divusi.com

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

"Fernández Piñas, David"

unread,
Jul 29, 2004, 7:30:59 AM7/29/04
to

od: illegal option -- x

I have seen that messages also. Does anybody knows the meaning and/or pro=
bable cause?

making all in /net-snmp-5.1/agent
make[1]: Entering directory `/net-snmp-5.1/agent'
making all in /net-snmp-5.1/agent/helpers
make[2]: Entering directory `/net-snmp-5.1/agent/helpers'
/bin/sh ../../libtool --mode=3Dcompile gcc -I../../include -I../../inclu=
de -I. -I
=2E. -I../.. -I. -I./.. -I./../mibgroup -I./../.. -I./../../snmplib -g -=
O2 -Dnto
-c -o baby_steps.lo baby_steps.c


od: illegal option -- x

Regarding the problem with applications, they are not compiled due to --d=
isable-applications configure option.

Try this configure options to build the apps:

configure --enable-mini-agent --with-defaults --with-out-mib-modules=3D"s=
nmpv3 snmpv3mibs smux agentx" --with-out-transports=3D"Callback Unix" --w=
ith-transports=3D"UDP" --with-out-transports=3D"TCP" --disable-privacy --=
with-openssl=3Dno --with-default-snmp-version=3D"2"

then make and make install.

Make sure you are running the net-snmp snmptrapd, located at /usr/local/s=
bin, instead of the one provided by QNX (at /usr/sbin).

If you want to use the net-snmp snmpwalk, snmpget, etc, they are at /usr/=
local/bin. QNX includes its own snmp command-line utilities.

# snmpwalk -c public 127.0.0.1 system
Usage: snmpwalk -v 1 hostname community [objectID] or:
Usage: snmpwalk [-v 2 ] hostname noAuth [objectID] or:
Usage: snmpwalk [-v 2 ] hostname srcParty dstParty context [objectID]
# /usr/local/bin/snmpwalk -c public 127.0.0.1 system
SNMPv2-MIB::sysDescr.0 =3D STRING: QNX ATLAS 6.2.1 2003/01/18-02:12:22est=
x86pc
SNMPv2-MIB::sysObjectID.0 =3D OID: SNMPv2-SMI::enterprises.8072.3.2.255
SNMPv2-MIB::sysUpTime.0 =3D Timeticks: (6067) 0:01:00.67
SNMPv2-MIB::sysContact.0 =3D STRING: jeacin
SNMPv2-MIB::sysName.0 =3D STRING: ATLAS
SNMPv2-MIB::sysLocation.0 =3D STRING: Indra Espacio Barcelona
SNMPv2-MIB::sysORLastChange.0 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 =3D OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 =3D OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 =3D STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.2 =3D STRING: View-based Access Control Model for =
SNMP.
SNMPv2-MIB::sysORUpTime.1 =3D Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 =3D Timeticks: (0) 0:00:00.00
# /usr/local/bin/snmpwalk -c public localhost system
snmpwalk: Unknown host (No such file or directory)

Does anybody knows why snmpwalk is not able to translate localhost to 127=
=2E0.0.1 ?

I can ping localhost.
# ping localhost
PING localhost.localdomain (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=3D0 ttl=3D255 time=3D0.000 ms

/etc/hosts file looks like this:

#
# Host Database
#
127.0.0.1 localhost
127.1 localhost.localdomain localhost
::1 localhost.localdomain localhost

> -----Original Message-----
> Sent: Thursday, July 29, 2004 11:03 AM
> To: net-snm...@lists.sourceforge.net
> Subject: Another problem with Installing new-snmp in QNX 6.x
> Architechture
>=20
>=20
> Thanx. I followed your suggestion and it worked,
> eventhough there're always messages "od: illegal
> option -- x" after every compiling line. after that, I
> tried to add my own module to snmpd, it work nicely
> (at least, when I tried them globally).

>=20


> But there's another problem. Files in directory
> "net-snmp-5.1.1/apps" have not been compiled. So I
> compiled them with "make", it run OK (with messages
> "od: illegal option -- x" after every compiling line
> :-\ ), but It couldn't link snmptrapd file. there's
> error message:

>=20


> ./.libs/libnetsnmptrapd.a(snmptrapd_handlers.o): in
> function 'command_handler' :
> /root./net-snmp-5.1.1/apps/snmptrapd_handlers.c:809:
> undefined reference to 'run_exec_command'

>=20
> Can anyone help?
>=20
> >=20


> > I am using these configure options with QNX 6.2.1 on
> > a PC, net-snmp 5.1:

> >=20


> > ./configure --enable-mini-agent --with-defaults
> > --disable-applications --disable-manuals
> > --disable-scripts --disable-mibs --disable-debugging
> > --disable-mib-loading --enable-shared
> > --disable-static

> > --with-out-mib-modules=3D"mibII/snmp_mib


> > mibII/sysORTable mibII/vacm_vars utilities/execute
> > notification target utilities snmpv3 snmpv3mibs smux
> > ucd_snmp agentx agent_mibs"

> > --with-out-transports=3D"Callback Unix TCP AAL5PVC
> > UDPIPv6 TCPIPv6 IPX" --with-transports=3D"UDP"
> > --without-kmem-usage --with-out-zlibc
> > --disable-privacy --with-openssl=3Dno
> > --with-default-snmp-version=3D"2"
> > --disable-internal-md5
> > --with-out-security-modules=3D"ksm"
>=20
> [deleted]
>=20
> =3D=3D=3D=3D=3D


> Mohammad Ridwan Agustiawan :: 13599066
> ------------------------------------------------
> LAPI-Divusi ITB
> Departemen Sistem dan Telekomunikasi
> Ganesha 10 Bandung 40122
> m19...@yahoo.com
> rid...@divusi.com

>=20
-------------------------------------------------------------------------=
------------------------------------------
Este correo electr=F3nico y, en su caso, cualquier fichero anexo al mismo=
, contiene informaci=F3n de car=E1cter confidencial exclusivamente dirigi=
da a su destinatario o destinatarios. Queda prohibida su divulgaci=F3n, c=
opia o distribuci=F3n a terceros sin la previa autorizaci=F3n escrita de =
Indra. En el caso de haber recibido este correo electr=F3nico por error, =
se ruega notificar inmediatamente esta circunstancia mediante reenv=EDo a=
la direcci=F3n electr=F3nica del remitente.

The information in this e-mail and in any attachments is confidential and=
solely for the attention and use of the named addressee(s). You are here=
by notified that any dissemination, distribution or copy of this communic=
ation is prohibited without the prior written consent of Indra. If you ha=
ve received this communication in error, please, notify the sender by rep=
ly e-mail

Wes Hardaker

unread,
Jul 29, 2004, 4:09:28 PM7/29/04
to
>>>>> On Thu, 29 Jul 2004 10:03:10 +0100 (BST), rid_One <m19...@yahoo.com> said:

rid> Thanx. I followed your suggestion and it worked,
rid> eventhough there're always messages "od: illegal
rid> option -- x" after every compiling line. after that, I
rid> tried to add my own module to snmpd, it work nicely
rid> (at least, when I tried them globally).

rid> But there's another problem. Files in directory
rid> "net-snmp-5.1.1/apps" have not been compiled. So I
rid> compiled them with "make", it run OK (with messages
rid> "od: illegal option -- x" after every compiling line
rid> :-\ ), but It couldn't link snmptrapd file. there's
rid> error message:

rid> ./.libs/libnetsnmptrapd.a(snmptrapd_handlers.o): in
rid> function 'command_handler' :
rid> /root./net-snmp-5.1.1/apps/snmptrapd_handlers.c:809:
rid> undefined reference to 'run_exec_command'

run_exec_command is defined in agent/mibgroup/utilities/execute, which
you excluded.

You'd have to remove those calls to snmptrapd to remove that functionality.

--
Wes Hardaker
Sparta


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com

0 new messages