[gnet] build problem with 'ss_family'



I'm having an interesting problem trying to compile gnet.  I'm using
gnet-2.0.7.  I am trying to compile it on a fairly old version of SuSE
(7.1).  I'm guessing that this is what is causing my problems, but
before I go through a flurry of updates I wanted to see if anyone had
seen this before.  There was a post to the mailing list a little over a
year ago with a similar problem [1], however there was no resolution.
Here are some version numbers of things on my machines that might be of
interest:

glibc-2.2
gcc-2.95.2
glib2-2.4.8
kernel-2.4.27

The error that I am receiving is:

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -
DG_LOG_DOMAIN=\"GNet\" -I/usr/local/include/glib-2.0 -
I/usr/local/lib/glib-2.0/include   -pthread -
I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include       -g
-O2 -D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes     -
Wmissing-prototypes -Wmissing-declarations -c -o gnet-private.lo gnet-
private.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GNet\" -
I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -pthread
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -
D_REENTRANT -DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes -Wmissing-
prototypes -Wmissing-declarations -c gnet-private.c -Wp,-MD,.deps/gnet-
private.TPlo  -fPIC -DPIC -o .libs/gnet-private.o
gnet-private.c: In function `gnet_private_create_listen_socket':
gnet-private.c:46: structure has no member named `ss_family'
gnet-private.c:48: structure has no member named `ss_family'
make[2]: *** [gnet-private.lo] Error 1
make[2]: Leaving directory `/root/gnet-2.0.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gnet-2.0.7'
make: *** [all] Error 2

[1] http://lists.gnetlibrary.org/pipermail/gnet/2003-
November/000239.html

Any information is greatly appreciated,
Mark Drago


PS - here is my output from configure:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for Win32... no
checking debug level... minimum
checking network tests... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i486-suse-linux/bin/ld
checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-suse-linux/bin/ld option to reload object
files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i486-suse-linux/bin/ld) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i486-suse-linux/bin/ld
checking if the linker (/usr/i486-suse-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i486-suse-linux/bin/ld) supports
shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i486-suse-linux/bin/ld) supports
shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for long... yes
checking size of long... 4
checking for void*... yes
checking size of void*... 4
checking for main in -lsocket... no
checking for main in -lnsl... yes
checking for main in -lresolv... yes
checking for -pthread... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking for glib-2.0... yes
checking GLIB_CFLAGS... -I/usr/local/include/glib-2.0 -
I/usr/local/lib/glib-2.0/include
checking GLIB_LIBS... -L/usr/local/lib -lglib-2.0
checking for gthread-2.0... yes
checking GTHREAD_CFLAGS... -pthread -I/usr/local/include/glib-2.0 -
I/usr/local/lib/glib-2.0/include
checking GTHREAD_LIBS... -pthread -L/usr/local/lib -lgthread-2.0 -
lglib-2.0
checking for IPv6 availability... yes
checking for ANSI C header files... (cached) yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking ifaddrs.h usability... no
checking ifaddrs.h presence... no
checking for ifaddrs.h... no
checking for linux/netlink.h... yes
checking for struct sockaddr.sa_len... no
checking for struct sockaddr_storage... yes
checking for an ANSI C-conforming const... yes
checking for getifaddrs... no
checking for getaddrinfo... yes
checking for threadsafe getaddrinfo()... no
checking for threadsafe gethostbyname()... no
checking for glibc gethostbyname_r... yes
checking for Solaris/Irix gethostbyname_r... no
checking for HP-UX gethostbyname_r... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/version.xml
config.status: creating gnetconfig.h
config.status: creating gnet.spec
config.status: creating gnet-2.0.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]