Re: symbol "_send_OBSOLETE_" unresolved

Humpolicek <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
> Od: Dave Shield <[email protected]>
> 
> My one surprise is that this actually fixes the problem, since
> the same BSD/XOpen difference exists with sento/recvfrom as well.
> 

I think that one answer to question why replacement fixes the problem is hidden in "/usr/sys/include/sys/socket.h" header file:

#if defined(_SOCKADDR_LEN) && \
    !defined(_KERNEL) && \
    !defined(_XOPEN_SOURCE_EXTENDED) && \
    !defined(_POSIX_PII_SOCKET)

#define recv		_recv_OBSOLETE_ /* use recvfrom */
#define send		_send_OBSOLETE_ /* use sendto   */
#define	accept		naccept
#define	getpeername	ngetpeername
#define	getsockname	ngetsockname
#define	recvfrom	nrecvfrom
#define	recvmsg		nrecvmsg
#define	sendmsg		nsendmsg

#endif /* _SOCKADDR_LEN && !_KERNEL && !_XOPEN_SOURCE_EXTENDED && !_POSIX_PII_SOCKET*/

When I use recv() or send() in some code it is compiled like OBSOLETE non-existent identifiers and that's why program fails during dynamic linking.

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.