Amanda-Users

Re: Amanda on a Cobalt Raq-4 web server?

2008-04-26 11:20:18
Subject: Re: Amanda on a Cobalt Raq-4 web server?
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: cdewick AT lios.apana.org DOT au
Date: Sat, 26 Apr 2008 11:15:48 -0400
Craig,

What's the output of:
 grep HAVE_SOCKADDR_STORAGE config/config.h

If it is defined, then how 'struct sockaddr_storage'is defined on your machine? It should be in socket.h under /usr/include

Jean-Louis

Craig Dewick wrote:

Hi everyone,

Ok I've had another go at compiling Amanda (2.5.2p1 is the source version I have in use on other systems at present) on my Cobalt Raq-4i system, and it's aborted when compiling dgram.c like this:

---- start ----

source='dgram.c' object='dgram.lo' libtool=yes \
DEPDIR=.deps depmode=gcc /bin/sh ../config/depcomp \
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../gnulib -Wall -W -Wparentheses -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat -Wsign-compare -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -c -o dgram.lo dgram.c gcc -DHAVE_CONFIG_H -I. -I. -I../config -I../gnulib -Wall -W -Wparentheses -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat -Wsign-compare -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -c dgram.c -Wp,-MD,.deps/dgram.TPlo -fPIC -DPIC -o .libs/dgram.o

gram.c: In function `dgram_bind':
dgram.c:83: structure has no member named `ss_family'
dgram.c: In function `dgram_send_addr':
dgram.c:167: structure has no member named `ss_family'
gmake[1]: *** [dgram.lo] Error 1
gmake[1]: Leaving directory `/home/root/azwan/amanda-2.5.2p1/common-src'
gmake: *** [all-recursive] Error 1

---- stop ----

Looks like it could be a coding error, but it might be something triggered by the specific version of Linux that the Cobalt server is running, or the version of gcc provided with it.

If it helps, this is the configure script I'm using on the system to set up things prior to running 'make':

sh ./configure --with-user=amanda --with-group=sys --with-amandahosts \
    --with-tmpdir=/var/amanda/tmp --with-config=ORBnet --without-server \
    --with-debugging=/var/amanda/debug --with-shared --with-db=text \
    --with-debug-days=28 --with-gnutar=/bin/tar --without-ipv6

Regards,

Craig.



<Prev in Thread] Current Thread [Next in Thread>