[Python-Dev] configure.in linkage error
itojun@iijlab.net
itojun@iijlab.net
Fri, 09 Nov 2001 11:51:29 +0900
at least on NetBSD-current and 1.5.2,
- sys/socket.h requires sys/types.h
- NULL is not declared in sys/socket.h nor netdb.h
therefore, the following patch is necessary to make getaddrinfo(3)
detection successful.
NetBSD starfruit.itojun.org 1.5Y NetBSD 1.5Y (STARFRUIT) #3: Tue Nov 6 17:27:18 JST 2001 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
itojun
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.279
diff -u -r1.279 configure.in
--- configure.in 2001/10/31 12:11:47 1.279
+++ configure.in 2001/11/09 02:50:03
@@ -1431,8 +1431,10 @@
# for [no]getaddrinfo in netdb.h.
AC_MSG_CHECKING(for getaddrinfo)
AC_TRY_LINK([
+#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
+#include <stdio.h>
],[
getaddrinfo(NULL, NULL, NULL, NULL);
], [