Linux-Hams archive - February 1997: Re: Changes to ax25-utils-2.1.22-ALPHA on Alpha

Re: Changes to ax25-utils-2.1.22-ALPHA on Alpha

psbcw@csun.edu
Sat, 1 Feb 1997 09:21:17 +1100 (EST)


Heikki Hannikainen typed:
>
> Trying out the AX.25 code on a 64 bit Alpha system here. Kernel 2.0.28,
> patched with axp-diffs and ax25-module-10. 275 MHz Alpha on an EB64+
> motherboard. ax25-utils-2.1.22-ALPHA + node-0.2.1.
An Alpha, whoooo!

Part of your problem might be that we're using the wrong includes. I'm not
close to an expert in this, but I always prefer including files from
somewhere other than the linux directory
> listener.c includes /usr/include/linux/if.h, and gcc barfs on the
> definition for caddr_t. I don't use ax25rtd, so i left it out of the
> Makefiles...
Try changing it it net/if.h

> node/node.c: Added #include <linux/in.h> (to get the definition for
> sockaddr_in, first needed on line 192.
netinet/in.h may be better.

> ** Loads of warnings: "incompatible pointer type", implicit declarations
> of functions `ntohl' and `htons'
>
> This is normal and expected. Caused by the doubled word size and
> differences in the header files on this system...
Hekki, is the alpha big endian or little endian? I know that the Amiga and
Atari folks had a lot of grief with these functions. I think they got
around it with things like;
#define ntohl(x) (x)
as the bits are the right way around in these machines already.

> Now, if i only could get an alpha binary of xfbb 8-)
I'm sorry, your alpha doesn't look the same to users so they'll get
confused. You'll have to dig out that XT again and run MBL. ;)

- Craig vk2xlz

-- 
  // /\   |  | |  Craig Small VK2XLZ     @home: pfxvcoax@kerailya.tunkki.fi
 ||==||===|==|=|  [44.136.13.17]         @play: xuzuh@salebmw.com
  \\ \/   |  | |                         @work: mmb@mailit.tunk.net