I have the source code for kernel 2.0.36 and 2.2.1 available on
this computer. I am using a glibc computer so I obtained the file
ax25-utils-2.1.42a-glibc.tar.gz and I ran the following experiment. I am
now using 2.0.36 and I compiled this package with the 2.0.36 kernel source
code and it compiled without a single problem.

        Then I removed that directory tree and remade it. I changed the
kernel source to that of 2.2.1 and I compiled again. It stopped with an
error as shown below:

make[1]: Leaving directory `/home/k5di/work/glibc/ax25-utils-2.1.42a/ax25'
make[1]: Entering directory
`/home/k5di/work/glibc/ax25-utils-2.1.42a/ax25ipd'
gcc -Wall -Wstrict-prototypes -O2 -DUSE_TERMIO -I../lib -c config.c
gcc -Wall -Wstrict-prototypes -O2 -DUSE_TERMIO -I../lib -c crc.c
gcc -Wall -Wstrict-prototypes -O2 -DUSE_TERMIO -I../lib -c io.c
gcc -Wall -Wstrict-prototypes -O2 -DUSE_TERMIO -I../lib -c kiss.c
gcc -Wall -Wstrict-prototypes -O2 -DUSE_TERMIO -I../lib -c ax25ipd.c
gcc -Wall -Wstrict-prototypes -O2 -DUSE_TERMIO -I../lib -c process.c
gcc -Wall -Wstrict-prototypes -O2 -DUSE_TERMIO -I../lib -c routing.c
gcc -L../lib -o ax25ipd config.o crc.o io.o kiss.o ax25ipd.o process.o
routing.o -lax25
make[1]: Leaving directory
`/home/k5di/work/glibc/ax25-utils-2.1.42a/ax25ipd'
make[1]: Entering directory
`/home/k5di/work/glibc/ax25-utils-2.1.42a/ax25rtd'
gcc -Wall -Wstrict-prototypes -O2 -I../lib -c ax25rtd.c
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
`/home/k5di/work/glibc/ax25-utils-2.1.42a/ax25rtd'
make: *** [all] Error 2
[root@cannac ax25-utils-2.1.42a]# 

        As you see there is a "parse error before '}' and I stared at that
for 10 minutes and can't see the error. But it IS a 2.2.1 kernel error in
the /linux/ax25.h file which looks fine to me at line 50 and several lines
before. I correct myself. It is an error in the source code.

        Has anyone had this same problem? 

Best wishes 

         - Karl F. Larsen, [EMAIL PROTECTED]  (505) 524-3303  -

Reply via email to