Subject: sysutils.c:1940: error: invalid application of `sizeof' to an incomplete type
To: NetBSD-sparc <port-sparc@NetBSD.org>
From: Ganimede <newtoolbox@yahoo.com>
List: port-sparc
Date: 12/17/2007 05:33:43
Hi,

I would like to build afbackup server on my
NetBSD/SPARC 32 bit.
I've 3 host: Linux, Solaris 9 on UltraSPARC and a
NetBSD on SPARC.

On Linux and Solaris building works fine (both server
and client), on NetBSD make ends with error:

# make server
Please enter at least 5 characters as a unique
key for some encryption used for authenticating
the client to the server.

Key: afbackup
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB -DLOC
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB -DLOC
ar rcv libafbackup.a buutil.o prot.o
a - buutil.o
a - prot.o
if [ _ranlib != _ ] ; then ranlib libafbackup.a ; fi
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB -DLOC
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB -DLOC
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB -DLOC
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB
-DLOCALEDIR=\"/afbackup/backup/common/share/locale\"
-O2  genutils.c
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB
-DLOCALEDIR=\"/afbackup/backup/common/share/locale\"
-O2  goptions.c
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB
-DLOCALEDIR=\"/afbackup/backup/common/share/locale\"
-O2  fileutil.c
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB
-DLOCALEDIR=\"/afbackup/backup/common/share/locale\"
-O2  x_regex.c
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB
-DLOCALEDIR=\"/afbackup/backup/common/share/locale\"
-O2  mutils.c
gcc -c -I.    -I/usr/pkg/include -DNetBSD_3
-DOSNAME=NetBSD_3   -DUSE_ZLIB
-DLOCALEDIR=\"/afbackup/backup/common/share/locale\"
-O2  sysutils.c
sysutils.c: In function `get_all_mounts':
sysutils.c:1940: error: invalid application of
`sizeof' to an incomplete type
sysutils.c:1945: error: invalid application of
`sizeof' to an incomplete type
sysutils.c:1970: error: increment of pointer to
unknown structure
sysutils.c:1970: error: arithmetic on pointer to an
incomplete type
sysutils.c:1971: error: dereferencing pointer to
incomplete type
sysutils.c:2005: error: dereferencing pointer to
incomplete type
sysutils.c:2009: error: dereferencing pointer to
incomplete type
*** Error code 1

Stop.
make: stopped in /tmp/afbackup-3.5.1pl2
#

Configure ends without error on all host. In NetBSD I
run ./configure with option:

-prefix=/afbackup --with-zlib
--with-zlib-include=/usr/pkg/include
--with-zlib-libdir=/usr/pkg/lib 


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ