Help for a newbie: sysutils.c:1940: error: invalid application of `sizeof' to an incomplete type

Ganimede <[email protected]> Sun, 16 Dec 2007 12:17:03 -0800 (PST)
Newsgroups gmane.comp.sysutils.backup.afbackup.general
Message-ID <[email protected]>
Hi,

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

Regards.
Ganimede Dignan.


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


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace