Ethereal-dev: Re: [Ethereal-dev] inet_ntop and inet_pton checks in 0.9.9

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 27 Feb 2003 14:17:24 -0800
On Thu, Feb 27, 2003 at 09:38:32AM -0600, Albert Chin wrote:
> On Wed, Feb 26, 2003 at 07:03:22PM -0800, Guy Harris wrote:
> > Unfortunately, the patch doesn't apply to the current CVS vrsion - we no
> > longer have acconfig.h files, as per Pavel Roskin's mail.  Could you
> > generate a patch against the current CVS version?
> 
> Attached. Untested.

Unfortunately, there's a bug somewhere - on Solaris 2.8/SPARC, with GLib
1.2.7, autoconf 2.57, and automake 1.4, the new epan configure script
doesn't think GLib supports loadable modules, although the top-level
script does.

The config.log output is

configure:5934: checking whether GLib supports loadable modules
configure:5987: gcc -o conftest -D_U_="__attribute__((unused))" -Wall -W -g -O2 -I/usr/local/lib/glib/include -I/usr/local/include   conftest.c -lnsl  -L/usr/local/lib -R/usr/local/lib -lgmodule -lglib -ldl >&5
configure:6022: parse error before `if'
configure:5987: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 5987 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libethereal.a"
| #define VERSION "0.9.9"
| #define YYTEXT_POINTER 1
| #define DATAFILE_DIR "/usr/local/etc"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_ARPA_NAMESER_H 1
| #define NEED_INET_ATON_H 1
| #define HAVE_INET_NTOP_PROTO 1
|     Define if inet_ntop() prototype exists
| #define NEED_STRPTIME_H 1
| /* end confdefs.h.  */
| 
| #include <glib.h>
| #include <gmodule.h>
| #include <stdio.h>
| #include <stdlib.h>
| 
| int
| main ()
| {
|   if (g_module_supported())
|     return 0;	/* success */
|   else
|     return 1;	/* failure */
| }
| 
configure:5998: result: no

The code right before that code is the strptime test, and the code right
before that is the inet_ntop tests.