lkml.org 
[lkml]   [1996]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject1.3.80 & compiling appl. programs
Date


fyi,

when compiling, (my own program, *not* the kernel),
linux 1.3.80 gives me the following error:

> root@ferkel # make
> cc -Wall -O6 -c slip.c -o slip.o
> In file included from /usr/include/net/if_arp.h:1,
> from slip.c:10:
> /usr/include/linux/if_arp.h:118: `MAX_ADDR_LEN' undeclared here (not in a function)
> make: *** [slip.o] Error 1
> root@ferkel #

the program includes the follwoing files in the follwoing order:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <net/if_route.h>
#include <net/if_arp.h>
#include <netdb.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <fcntl.h>
#include <termio.h>
#include "config.h"

can you tell me, if there's an additionnal file needed now ?
It was possible to compile it with 1.3.74 without the above error.

regards, herp
herp@wildsau.idv.uni-linz.ac.at
rosmanith@edvz.uni-linz.ac.at



\
 
 \ /
  Last update: 2005-03-22 13:36    [W:1.351 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site