Hi,

I get this error that has shown up on the lists a few times before.  When
i try to compile, I get a "parse error before `sa_family_t'". The thing
is,  it seems to be okay.  Here is a transcript of the problem:

shellz:~/ax25-utils-2.1.42a# make
<SNIP>
make[1]: Entering directory `/root/ax25-utils-2.1.42a/ax25rtd'
gcc -Wall -Wstrict-prototypes -O2 -I../lib -c cache_ctl.c
In file included from cache_ctl.c:25:
/usr/include/linux/ax25.h:46: parse error before `sa_family_t'
/usr/include/linux/ax25.h:46: warning: no semicolon at end of struct or union
/usr/include/linux/ax25.h:50: parse error before `}'
/usr/include/linux/ax25.h:55: field `fsa_ax25' has incomplete type
make[1]: *** [cache_ctl.o] Error 1
make[1]: Leaving directory `/root/ax25-utils-2.1.42a/ax25rtd'
make: *** [all] Error 2

/* $Id: cache_ctl.c,v 1.4 1996/10/23 18:27:43 jreuter Exp jreuter $
<SNIP>
#include <linux/socket.h>
#include <linux/ax25.h>
<SNIP TO EOF>

One theory in the past was that socket.h needed to be defined before
ax25.h.  This is the case here, and the files look to be okay.  Is there
some other way to get more debugging info?  The structure def seems to be
just fine in ax25.h, and the string.h reference seems okay.

System:
Stampede Linux 0.89 (europa)
Kernel 2.2.0-pre7 (I installed pre9 also, and made config & dep but that
didn't seem to help.)
glibc6
gcc 2.8.1

I know a little about C programming, but not enough to solve this problem.
I would like to find the problem here, and submit the answer to the right
person so that this gets fixed!  ;-)

Paul Kenyon
KC0BDI (Kansas City, MO)

Reply via email to