Re: Compilin ax25-tools

From: Bernard Pidoux (gpexzso.aajklj@landsbanki.is)
Date: Sat Feb 14 2004 - 13:58:04 EET

  • Next message: Bernard Pidoux: "script for 2.6 multi kiss dual port TNC"

    Hi Jarmo,

    Did you succeed in compiling ax25-tools.0.0.8 with kernel 2.6 ?

    Using Mandrake Linux 10 rc2 I had to apply the attached patch for compiling
    ax25-tools.0.0.8

    73 de Bernard, f6bvp

    diff -ru ax25-tools-0.0.8/ax25/axspawn.c ax25-tools-0.0.8b/ax25/axspawn.c
    --- ax25-tools-0.0.8/ax25/axspawn.c 2001-04-10 04:09:28.000000000 +0200
    +++ ax25-tools-0.0.8b/ax25/axspawn.c 2004-01-18 21:24:04.000000000 +0100
    @@ -124,7 +124,7 @@
     #include <paths.h>
     #include <errno.h>
     #include <syslog.h>
    -#include <sys/time.h>
    +#include <time.h>
     #include <sys/types.h>
     #include <sys/stat.h>
     #include <sys/ioctl.h>
    diff -ru ax25-tools-0.0.8/hdlcutil/hdrvcomm.c ax25-tools-0.0.8b/hdlcutil/hdrvcomm.c
    --- ax25-tools-0.0.8/hdlcutil/hdrvcomm.c 2001-04-10 04:10:48.000000000 +0200
    +++ ax25-tools-0.0.8b/hdlcutil/hdrvcomm.c 2004-01-18 22:52:46.000000000 +0100
    @@ -48,7 +50,14 @@
     #include "hdrvcomm.h"
     #include "usersmdiag.h"
     #include <net/if_arp.h>
    +
    +#ifdef __GLIBC__
    +#include <net/ethernet.h>
    +#else
     #include <linux/if_ether.h>
    +#endif
    +#include <netinet/in.h>
    +
     #include <linux/if_packet.h>
     #ifndef SOL_PACKET
     #define SOL_PACKET 263
    diff -ru ax25-tools-0.0.8/kiss/net2kiss.c ax25-tools-0.0.8b/kiss/net2kiss.c
    --- ax25-tools-0.0.8/kiss/net2kiss.c 2001-04-10 04:10:36.000000000 +0200
    +++ ax25-tools-0.0.8b/kiss/net2kiss.c 2004-01-18 22:47:39.000000000 +0100
    @@ -49,6 +49,8 @@
     #include <sys/socket.h>
     #include <net/if.h>
     
    +#include <netinet/in.h>
    +
     #ifdef __GLIBC__
     #include <net/ethernet.h>
     #else

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to terhi.victor@logonet.com
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Sat Feb 14 2004 - 13:30:49 EET