[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     Re: Make problems in /usr/local/nocol/etherload/linux.c



I think this is quick hack was all I had to do to build under RH 6.0.

Randall

diff -u -r1.1 linux.c
--- linux.c     1999/10/13 00:56:00     1.1
+++ linux.c     1999/10/13 00:56:50
@@ -24,10 +24,8 @@
 #include <sys/types.h>
 #include <stdio.h>
 #include <errno.h>
-#ifndef __GLIBC__              /* linux 2.0 gcc is wierd */
 # include <sys/socket.h>
 # include <asm/types.h>
-#endif
 #include <sys/ioctl.h>
 #include <sys/time.h>
 /* #include <sys/file.h>  /* */


On Tue, 12 Oct 1999, Jason Jardina wrote:

: This may or may not be a hard question to answer.  But below is the
: output from my make, the etherload module is the only one that is giving
: me major problems.  I have tried modifying the linux.c file, and
: changing the in.h file.  But I still get problems.  Anything that you
: could do to help me find out what I or this code is doing wrong would be
: helpful.  I am really anxious to get this up and running.
: 
: SYSTEM: RedHat 6.0
: NOCOL: Version 4.2.1
: Tried both gcc and cc compilers.
: 
: /* Begin make output
: 
: In file included from linux.c:34:
: /usr/include/linux/in.h:109: parse error before `sa_family_t'
: /usr/include/linux/in.h:109: warning: no semicolon at end of struct or
: union
: /usr/include/linux/in.h:116: parse error before `}'
: In file included from /usr/include/linux/netdevice.h:28,
:                  from linux.c:35:
: /usr/include/linux/if.h:111: field `ifru_addr' has incomplete type
: /usr/include/linux/if.h:112: field `ifru_dstaddr' has incomplete type
: /usr/include/linux/if.h:113: field `ifru_broadaddr' has incomplete type
: /usr/include/linux/if.h:114: field `ifru_netmask' has incomplete type
: /usr/include/linux/if.h:115: field `ifru_hwaddr' has incomplete type
: linux.c: In function `setup_device':
: linux.c:61: storage size of `sa' isn't known
: linux.c:74: `AF_INET' undeclared (first use in this function)
: linux.c:74: (Each undeclared identifier is reported only once
: linux.c:74: for each function it appears in.)
: linux.c:74: `SOCK_PACKET' undeclared (first use in this function)
: linux.c:150: `SOL_SOCKET' undeclared (first use in this function)
: linux.c:150: `SO_RCVBUF' undeclared (first use in this function)
: linux.c: In function `getpkt':
: linux.c:227: storage size of `from' isn't known
: make[1]: *** [linux.o] Error 1
: 
: End make output */
: 
: It appears that the interpreter is having a problem reading the in.h
: file in linux, but other programs that use this header compile fine. 
: Has anyone ever seen anything like this before.
: 
: Thanks,
: Jason Jardina
: jjardina@trusted.net
: