Linux-Hams archive - September 1997: Re: Compiling ax25-utils-2.1.42

Re: Compiling ax25-utils-2.1.42

Richard Adams (lqctcp.ipdnonhj@arcusdigital.com)
Mon, 1 Sep 1997 00:32:13 +0000 (GMT)


According to Edward J. Young, While burning my cpu.:
>
>
>
> Thank you for the rapid reply.
>
> I issued the command as you said and the patch reported that it went
> successfully. Rerunning make on the ax25-utilities results in:
>
> gcc -Wall -Wstrict-prototypes -O2 -I../lib -c kissattach.c
> kissattach.c: In function `main':
> kissattach.c:186: `N_AX25' undeclared (first use this function)
> kissattach.c:186: (Each undeclared identifier is reported only once
>
Its defined in /usr/include/asm!! directorys, this could indicate 2 possable
problems,
1) You do not have a symlink as advised in /usr/src/linux/README
cd /usr/include
ln -s /usr/src/linux/include/asm-i386 asm

2) you may not have patched against a "clean source tree" which may have led
to you haveing some *.rej files, in which case you will have more problems
later on. Do a "find *.rej" in your source tree, If you find rej files then
either edit the source files by hand (if the changes are small), or
reinstall a "clean" source tree and apply the modules patch again. This time
i suggest you use the -s option with patch, this will result in patch
writeing only error messages to the screen instead of scrolling the screen
like billyo and not letting you something went wrong.

> It would seem that N_AX25 is not defined. A grep in /usr/include/linux
> finds no refs to it. My /usr/include/linux is a link to the kernel source
> for 2.0.30. It seems that I still don't have all the correct source in
> place.
>
Yes it is as mentioned above. Its defined in:
linux/include/asm-alpha/termios.h
linux/include/asm-i386/termios.h
linux/include/asm-m68k/termios.h
linux/include/asm-ppc/termios.h
linux/include/asm-sparc/termios.h
Note that they are all in "asm-!!!" directorys, this suggests again that you
do not have a symlink for "asm".

> I tried the patch to my 2.1.42 source tree and got the parser error I
> originaly had when I ran make. It also seems that you cannot run the patch
> command more than once.
>
The patch in question is for 2.0.30 it might seem like it patched against a
2.1.xx source tree,but once again use the find command to hunt for *.rej
files.
Patch will detect if the patch has been previously applied, if so it will
tell you and ask what you want to do.

> I'm beginning to think I've done something fundamentaly wrong here since
> I'm having so many problems, and I hope I haven't broken something. I'll
> detail the steps:
>
Dont worry about mucking up the source tree, just reinstall a clean 2.0.30
source tree, and repatch with the modules patch.

> For 2.0.30, I first tried running make on the utils with out the patch
> and got the error I detailed in the previous message. Then I ran the
> patch pointing to the /usr/include/linux which links to the correct 2.0.30
> source includes and it reported success. I then got the error above when I
> ran make again. Make config now reports "nothing to be done for config".
>
"make distclean" in the ax25-utils dir will clean everything up and allow
you to start over again with make config.

>
> I'm afraid I've broken something, but I've been very careful.
>
> Thanx again in advance,
>
> Ed
> NL7FU
> kqnn.gyywiqavvh@bhfc.net
>
>

-- 
Regards Richard, 73.              | "I see" said the blind man to his
AX25  pa3gcu@pi8mid.#zld.nld.eu   |  deaf en dumb daughter, who replyed,
smtp  tqw@nitroquimica.com.br      | "Yes" Linux AX25. NET/ROM, "I have heard
inet  vwe.ntremx@kis.ru |  that what you see is what you get".