Compiling with Sun Forte compiler
helge.fredriksen____edb4tel.com
helge.fredriksen____edb4tel.com
Thu Oct 25 09:41:22 CEST 2001
Hello!
I've been compiling snmp++ and agent++ on the solaris 2.7/8 platform with
the native Sun Forte compiler, and here's the adaptions I needed to do:
In snmp++/src/address.cpp:
Replaced lines 444-449 with
#if defined(_WIN32) || defined(SUN_CC)
ip_token = strtok( (char *) temp,".");
#else
char* lasts = 0;
ip_token = strtok_r( (char *) temp,".", &lasts);
#endif
and similarly lines 471-475 with
#if defined(_WIN32) || defined(SUN_CC)
ip_token = strtok( NULL,".");
#else
ip_token = strtok_r( NULL,".", &lasts);
#endif
The macro SUN_CC is a macro I give to the compiler using -DSUN_CC,
I haven't had time to dig into the built-in compiler macros yet...
In snmp++/src/eventlist.cpp:
Replaced lines 244-249 with
#if defined(WIN32) || defined(SUN_CC)
nfound = select(maxfds, &readfds, &writefds, &exceptfds, &fd_timeout);
#else
nfound = select(maxfds, (int *)&readfds, (int *)&writefds,
(int *)&exceptfds, &fd_timeout);
#endif
Similarly
Replaced lines 301-306 with
#if defined(WIN32) || defined(SUN_CC)
nfound = select(maxfds, &readfds, &writefds, &exceptfds, &fd_timeout);
#else
nfound = select(maxfds, (int *)&readfds, (int *)&writefds,
(int *)&exceptfds, &fd_timeout);
#endif
I still don't get the NotificationGenerator to take action upon
authentication failure.
I have enabled this feature in the agent as described in earlier mails.
Frank,
could you please check that this feature is working all right?
I am using the NET-SNMP (formerly UCD-SNMP) tool "snmptrapd" for
traplistening:
snmptrapd -M ./mibs -p 4508 -C -P
PS: I am sucessful in sending and receiving other types of traps.
I then get a note in my log like this:
NotificationGenerator: sent v1 trap (id)(tdomain)(addr)(vbs)(community):
(1.3.6.1.4.1.4452.1.2), (1), (148.118.153.26/4805), (10), (public)
No such message comes in the log for authFailure, and no trap is received
with the
trap receiver
Best regards,
Helge Fredriksen
More information about the AGENTPP
mailing list