"Nguyá»
n Thái Ngá»c Duy" wrote:
From: Nguyá»
n Thái Ngá»c Duy [off-list ref]
There is a check in configure.ac to determine if libc has function
socket(). It is used to link with libsocket on SunOS.
On Windows, libc does not have socket() as well but it is provided
by winsock, not libsocket. So don't link with libsocket if you are
on Windows.
ifdef NEEDS_SOCKET
+ifndef MINGW
EXTLIBS += -lsocket
endif
+endif
This looks wrong. NEEDS_SOCKET is set in the architecture sections of
Makefile where necessary, but the MinGW section doesn't want it and
doesn't set it. If ./configure sets it, then you should fix
configure.ac, not work around in Makefile.
-- Hannes
PS: Appologies for the mangled name - this MUA is from the stone age.