Re: problems after compiling new kernel

1999-06-21 Thread Brad
On Sat, 19 Jun 1999, Pollywog wrote:

 After compiling kernel 2.2.10 and trying to install new software, I got:
 
 make  all-recursive
 make[1]: Entering directory `/home/pollywog/ksnuffle-0.2'
 Making all in libpcap-0.4
 make[2]: Entering directory `/home/pollywog/ksnuffle-0.2/libpcap-0.4'
 gcc -g  -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1
 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./pcap-linux.c
 ./pcap-linux.c:31: net/if.h: No such file or directory
 ./pcap-linux.c:33: net/if_arp.h: No such file or directory
 make[2]: *** [pcap-linux.o] Error 1
 
 
 Why does this happen?  Am I doing something wrong?  It seems I frequently
 lose if.h

if.h and if_arp.h are in the libc6-dev package. Is that package properly
installed?

On Sun, 20 Jun 1999, Remco van de Meent wrote:

 In the 2.2.x kernels, if.h is in include/linux/, so instead of #include
 net/if.h, you should use #include linux/if.h.

Unless you're compiling a kernel or linking explicitly against the kernel 
headers (a -I/usr/src/linux/include flag?), this shouldn't make the
difference. Note that in Debian, /usr/include/{linux,asm} shouldn't be
symlinks into a kernel source tree at all; see the README included in a
kernel-headers package (aka /usr/lib/kernel-package/README.headers from
the kernel-package package) for a detailed explanation.



problems after compiling new kernel

1999-06-20 Thread Pollywog
After compiling kernel 2.2.10 and trying to install new software, I got:

make  all-recursive
make[1]: Entering directory `/home/pollywog/ksnuffle-0.2'
Making all in libpcap-0.4
make[2]: Entering directory `/home/pollywog/ksnuffle-0.2/libpcap-0.4'
gcc -g  -I.  -Ilinux-include -DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1
-DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1  -c ./pcap-linux.c
./pcap-linux.c:31: net/if.h: No such file or directory
./pcap-linux.c:33: net/if_arp.h: No such file or directory
make[2]: *** [pcap-linux.o] Error 1


Why does this happen?  Am I doing something wrong?  It seems I frequently
lose if.h

--
Andrew



Re: problems after compiling new kernel

1999-06-20 Thread Remco van de Meent
Pollywog wrote:
 After compiling kernel 2.2.10 and trying to install new software, I got:
...
 ./pcap-linux.c:31: net/if.h: No such file or directory
...
 Why does this happen?  Am I doing something wrong?  It seems I frequently
 lose if.h

In the 2.2.x kernels, if.h is in include/linux/, so instead of #include
net/if.h, you should use #include linux/if.h.

HTH,
 -Remco