Linux-Hams archive - December 1997: Compiling ax25-utils with libc6

Compiling ax25-utils with libc6


Fri, 5 Dec 1997 15:24:44 +1100 (EST)


G'day All,
In case some of you didn't know, there has been a large upgrade of the
libraries in Linux. A lot of the include files have change (for the
long term good, IMHO).

Unfortunately it means you may have some difficultly compiling
ax25-utils with libc6 for a little while. The following instructions are
for those who a real keen and love compiling errors, in other words:

DON'T DO THIS UNLESS YOU UNDERSTAND WHAT YOU ARE DOING!!

These changes are in the debian ax25utils packages.

Changes to make to ax25-utilities:

lib/axconfig.c
linux/if.h is now net/if.h
linux/if_arp.h is now net/if_arp.h
Remove linux/netdevice.h

lib/nrconfig.c
linux/if.h is now net/if.h
linux/if_arp.h is now net/if_arp.h
Remove linux/netdevice.h

lib/procutils.c
Add errno.h

lib/rsconfig.c
linux/if.h is now net/if.h
linux/if_arp.h is now net/if_arp.h
Remove linux/netdevice.h

==================================================================
Changes to make to the include files (note these changes, or ones that
will give the same effect, are in the works, so check you need to do this
first!).

/usr/include/linux/ax25.h has
#define PF_AX25 AF_AX25

/usr/include/socketbits.h has

#define PF_AX25 3 /* Amateur Radio AX.25. */
#define AF_AX25 PF_AX25

suggest that the line in <linux/ax25.h> is removed.

------------------

There is no /usr/include/linux/rose.h

Suggest that rose.h from linux source be copied to /usr/include/linux/rose.h
Also remove the following line from rose.h
#define PF_ROSE AF_ROSE

------------------
The following lines need to be added to /usr/include/socketbits.h

#define AF_ROSE 11 /* Amateur Radio X.25 PLP */
#define PF_ROSE AF_ROSE

-----------------
/usr/include/linux/netrom.h has
#define PF_NETROM AF_NETROM

/usr/include/socketbits.h has
#define PF_NETROM 6 /* Amateur radio NetROM. */
#define AF_NETROM PF_NETROM

Suggest that the line in <linux/netrom.h> is removed.

------------------------
SOL_AX25 used to be in linux/socket.h, does not appear in sys/socket.h

Suggest the following line be added to <socketbits.h>
#define SOL_AX25 257

- Craig VK2XLZ