symbol "_send_OBSOLETE_" unresolved

Humpolicek <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
      I have got problem with dynamic linking of net-snmp library on tru64 platform. After installation of net-snmp, when I tried to run "snmpd" program fails with message:

NET-SNMP version 5.4.1
679992:/usr/local/sbin/snmpd: /sbin/loader: Fatal Error: call to unresolved symbol from /usr/local/lib/libnetsnmp.so.15 (pc=0x300008ae19c)

     Same problem occurs when I run my own sub-agent code, in this case program fails with message:

resolve_symbols: loader error: dlopen: libnetsnmp.so.15: symbol "_send_OBSOLETE_" unresolved

      I was looking for solution of this problem and I found that problem is in usage "send" and "recv" system calls. When I searched and replaced all occurences of  send(*, *, *, *) with sendto(*, *, *, *, NULL, 0) and recv(*, *, *, *) with recfrom(*, *, *, *, NULL, 0) in net-snmp sources, above problems disappeared.

     I am working on machine:

$ uname -a
OSF1 bizon1 V5.1 2650 alpha

with  /usr/bin/cxx -> V6.5-042

and I compiling net-snmp-5.4.1 with ./configure --disable-embedded-perl --without-perl-modules

What do you think about my problems and about solution? if this patch is correct it would be nice to apply them to latest release of net-snmp, if exists another better solution please tell me about.

Thanks and have a nice day, Jiri Humpolicek

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.