Hello Brian, hello all,
> I loaded Red Hat 5.2 with 2.0.36 onto a hard-drive
>
> patched ax25-2.0.31-2.1.47-2.diff
That's the problem, kernel 2.0.36 doesn't need the patch anymore.
>
> compiled the kernel for ax25 stuff.
>
> make dep
> make clean
> make zdisk
>
> it barfs about 30 or so minutes into the compile with:
>
> make[3]: Entering directory `/usr/src/linux-2.0.36/net/ax25'
> gcc -D__KERNEL__ -I/usr/src/linux-2.0.36/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-poi
> nter -fno-strength-reduce -pipe -m386 -DCPU=386 -DMODVERSIONS
> -DEXPORT_SYMTAB -c af_ax25.c
> af_ax25.c:2376: macro `_basic_version' used with just one arg
> af_ax25.c:2377: macro `_basic_version' used with just one arg
> af_ax25.c:2378: macro `_basic_version' used with just one arg
> af_ax25.c:2379: macro `_basic_version' used with just one arg
> af_ax25.c:2380: macro `_basic_version' used with just one arg
> af_ax25.c:2381: macro `_basic_version' used with just one arg
> make[3]: *** [af_ax25.o] Error 1
> make[3]: Leaving directory `/usr/src/linux-2.0.36/net/ax25'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.0.36/net/ax25'
> make[1]: *** [sub_dirs] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.0.36/net'
> make: *** [linuxsubdirs] Error 2
>
> It sure seemed to complain while I ran the patch, and supposed maybe
> with 2.0.36 the patch wasn't needed, so re-ran the compile without
> running the patch...same results.
The best way to get this problem solved is deleting the
/usr/src/linux directory and reinstalling a clean kernel source again.
After this, compiling should run without problems.
I also recommend using the original linux-2.0.36.tar.gz file
downloadable everywhere on the Internet
(http://ftpsearch.lycos.com knows where). Instructions on how to
install it are available in both the Kernel-HOWTO and the AX.25-
HOWTO (at http://metalab.unc.edu/LDP/HOWTO or in your
/usr/doc directory, already).
A short note concerning patches in general:
If you use some source code patch, you _do not_ have to run it
every time you want to compile the program.
You only need to apply it once before the first compile. It then stay
sufficient until you delete the source tree or apply some more
patch :)
Cheers, 73
Gerd