linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Can't start snmpd when adding notification handler to the configuration file
@ 2007-01-10 15:33 An Le Thien
  2007-01-11  1:19 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: An Le Thien @ 2007-01-10 15:33 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]

Hi,

I have a problem when starting snmpd as following:

1. I have just downloaded net-snmp-5.0.6-17_2.src.rpm from
ftp://ftp.sunet.se/pub/Linux/distributions/eldk/3.1.1/ppc-linux-x86/sources/target/SRPMS/

2. I used ELDK3.1.1 to build it and install to ramdisk that is used for
TQM8xxL (Using kernel 2.6.11)

3. I used the default configuration (EXAMPLE.conf). When I started snmpd,
the snmpd was started normally.

4. But when I add "trapsink 192.168.1.15 public" to the configuration file.
I can't start snmpd. The following is the configuration file and a log file:

a.  /etc/snmp/snmpd.conf

trapsink 192.168.1.15 public
com2sec local     localhost       public
com2sec mynetwork 192.168.1.0/24      public
......

b. /var/log/snmpd.log

.....
snmp_clean_persistent:  removing old config file: /var/net-snmp/snmpd.0.conf
trace: snmp_call_callbacks(): callback.c, 99
callback: START calling callbacks for maj=1 min=7
trace: snmp_call_callbacks(): callback.c, 107
callback: calling a callback for maj=1 min=7
trace: send_notifications(): notification/snmpNotifyTable.c, 95
send_notifications: starting: pdu=1009abe8, vars=7fffe37c
segmentation faults


Could you give some comments to fix this problem?

Thanks in advance.

An Le.

[-- Attachment #2: Type: text/html, Size: 1659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't start snmpd when adding notification handler to the configuration file
  2007-01-10 15:33 Can't start snmpd when adding notification handler to the configuration file An Le Thien
@ 2007-01-11  1:19 ` Wolfgang Denk
  2007-01-11  2:04   ` An Le Thien
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2007-01-11  1:19 UTC (permalink / raw)
  To: An Le Thien; +Cc: linuxppc-embedded

In message <f2042b870701100733v20d7a052kca11f2ef0d108849@mail.gmail.com> you wrote:
> 
> 2. I used ELDK3.1.1 to build it and install to ramdisk that is used for
> TQM8xxL (Using kernel 2.6.11)

ELDK 3.x has been tested with  2.4  kernel  trees  only.  For  a  2.6
kernel, you should use ELDK 4.x.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Hiring experienced unix people is  like  a  built-in  filter  against
idiots. Hiring experienced NT people provides no such guarantee.
            -- Miguel Cruz in WgL96.349$CC.122704@typhoon2.ba-dsg.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't start snmpd when adding notification handler to the configuration file
  2007-01-11  1:19 ` Wolfgang Denk
@ 2007-01-11  2:04   ` An Le Thien
  0 siblings, 0 replies; 3+ messages in thread
From: An Le Thien @ 2007-01-11  2:04 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]

I tried to download
net-snmp-5.2.1.2-1_1.src.rpm<ftp://ftp.sunet.se/pub/Linux/distributions/eldk/4.0/ppc-linux-x86/sources/target/SRPMS/net-snmp-5.2.1.2-1_1.src.rpm>of
ELDK4.0 and  used ELDK4.0  to build. But the same error happens :(. Then I
tried to build net-snmp-5.0.6-17_2.src.rpm with ELDK4.0. The error still
happens.

Best Regards,
An Le.

On 1/11/07, Wolfgang Denk <wd@denx.de> wrote:
>
> In message <f2042b870701100733v20d7a052kca11f2ef0d108849@mail.gmail.com>
> you wrote:
> >
> > 2. I used ELDK3.1.1 to build it and install to ramdisk that is used for
> > TQM8xxL (Using kernel 2.6.11)
>
> ELDK 3.x has been tested with  2.4  kernel  trees  only.  For  a  2.6
> kernel, you should use ELDK 4.x.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
> Hiring experienced unix people is  like  a  built-in  filter  against
> idiots. Hiring experienced NT people provides no such guarantee.
>             -- Miguel Cruz in WgL96.349$CC.122704@typhoon2.ba-dsg.net
>

[-- Attachment #2: Type: text/html, Size: 1817 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-11  2:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-10 15:33 Can't start snmpd when adding notification handler to the configuration file An Le Thien
2007-01-11  1:19 ` Wolfgang Denk
2007-01-11  2:04   ` An Le Thien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).