Re: IPv6 support missing
Jörg Sommer <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
Hallo John, "John E. Davis" <[email protected]> wrote: > Jörg Sommer <[email protected]> wrote: >> how can I enable IPv6 support? Do I have to edit src/config.h and set >> HAVE_GETADDRINFO and HAVE_GETNAMEINFO? > > Or you can wait until I return later this week. I've used this patch to fix this problem and some others: #! /bin/sh /usr/share/dpatch/dpatch-run ## add-missing-checks.dpatch © Jörg Sommer <[email protected]> ## ## DP: configure misses some checks for functions, header files or types used ## DP: in the source # # % diff <(grep -oh HAVE_'[A-Z_]*' src/(slrnconf.h|config.hin) |sort -u) \ # <(grep -oh HAVE_'[A-Z_]*' src/*~src/(slrnconf.h|config.hin) |sort -u) G ^+ # --- /proc/self/fd/17 2008-04-06 21:58:16.554411533 +0200 # +++ /proc/self/fd/18 2008-04-06 21:58:16.502417663 +0200 # +HAVE_GETADDRINFO # +HAVE_GETNAMEINFO # +HAVE_LIBIDN # +HAVE_LONG_DOUBLE # +HAVE_MEMCMP # +HAVE_SYS_FCNTL_H # +HAVE_SYS_TIME_H # % diff <(sed -n '/^## confdefs.h. ##/,$p' config.log |sed '/^#define/!d; s/#define //; s/ .*//' |sort) \ # <(grep -oh HAVE_'[A-Z_]*' src/(slrnconf.h|config.hin) |sort -u) G ^+ # --- /proc/self/fd/17 2008-04-06 22:11:05.326420105 +0200 # +++ /proc/self/fd/18 2008-04-06 22:11:05.350416796 +0200 # +HAVE_ANSI_SPRINTF # +HAVE_DIRECT_H # +HAVE_GETTIMEOFDAY # +HAVE_LONG_DOUBLE # +HAVE_MEMCHR # +HAVE_NDIR_H # +HAVE_SOCKET_H # +HAVE_SYS_DIR_H # +HAVE_SYS_NDIR_H # +HAVE_UUDEVIEW_H # +HAVE_WINSPOOL_H @DPATCH@ diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 2c0bbac..89d17ac 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -230,19 +230,26 @@ fi #--------------------------------------------------------------------------- AC_CHECK_HEADERS( \ +direct.h \ stdlib.h \ unistd.h \ memory.h \ fcntl.h \ +sys/fcntl.h \ +sys/dir.h \ +ndir.h \ +sys/ndir.h \ malloc.h \ termios.h \ sys/socket.h \ socket.h \ +sys/time.h \ sys/wait.h \ netinet/in.h \ arpa/inet.h \ sys/utsname.h \ locale.h langinfo.h \ +winspool.h \ ) #AC_CHECK_LIB(socket, socket, [LIBSOCKET="-lnsl -lsocket"]) dnl for Solaris @@ -254,13 +261,19 @@ AC_HEADER_DIRENT AC_TYPE_MODE_T AC_TYPE_PID_T AC_TYPE_UID_T +AC_CHECK_TYPE(long double) AC_CHECK_FUNCS(\ memset \ memcpy \ +memcmp \ +memchr \ putenv \ getcwd \ getdomainname \ +getaddrinfo \ +getnameinfo \ +gettimeofday \ sigaction \ sigemptyset \ sigprocmask \ diff --git a/src/config.hin b/src/config.hin index e7c4922..ebdefd6 100644 --- a/src/config.hin +++ b/src/config.hin @@ -30,6 +30,7 @@ /* define if you have fcntl.h */ #undef HAVE_FCNTL_H +#undef HAVE_SYS_FCNTL_H /* define if you have termios.h */ #undef HAVE_TERMIOS_H @@ -46,6 +47,8 @@ /* define if you have memcpy */ #undef HAVE_MEMCPY +#undef HAVE_MEMCMP + #undef HAVE_SYS_UTSNAME_H #undef HAVE_UNAME @@ -79,6 +82,8 @@ #undef HAVE_LOCALE_H #undef HAVE_LANGINFO_H +#undef HAVE_SYS_TIME_H + /* define if you have a "timezone" variable in time.h */ #undef HAVE_TIMEZONE @@ -87,6 +92,10 @@ #undef HAVE_GETDOMAINNAME +/* functions for IPv6 */ +#undef HAVE_GETADDRINFO +#undef HAVE_GETNAMEINFO + /* Do we have posix signals? */ #undef HAVE_SIGACTION #undef HAVE_SIGPROCMASK @@ -109,6 +118,8 @@ /* define if va_lists can't be copied by value */ #undef VA_COPY_AS_ARRAY +#undef HAVE_LONG_DOUBLE + #if defined(HAVE_SIGADDSET) && defined(HAVE_SIGEMPTYSET) # if defined(HAVE_SIGACTION) && defined(HAVE_SIGPROCMASK) # define SLRN_POSIX_SIGNALS Schöne Grüße, Jörg. -- “Perl—the only language that looks the same before and after RSA encryption.” (Keith Bostic) ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone