New to this mailing list...

Tried to compile net-tools-1.60 on an LFS system.  Ran into some
header file problems.  (yes, I did patch with the latest).  First
tried with linux-libc-headers.  Got a couple of error messages saying
"#error dont include kernel headers in userspace applications you
idiot", so I replied export
C_INCLUDE_PATH=/usr/src/linux-2.6.15/include.  What could possibly go
wrong?  Well, as it turns out, this didn't work, so i started hacking
around with the offending file in net-tools,
net-tools-1.60/lib/inet_sr.c.  I noted the line:
#include <linux/route.h> /* this is realy broken */
and, yes, really is misspelled in the file.

so i did further analysis of the gcc output, and came to the
conclusion that the only thing used from linux/route.h is a structure
definition (struct rtentry).  I simply commented out the #include
<linux/route.h> and manually added the structure definition as defined
in <linux/route.h>.  This is very very ugly, but does work for those
in desperate need.

Note that this configuration of net-tools is basically unix sockets
and inet, no PPP, SLIP or anything fancy.  I might jump to the
conclusion (no checking has been done on my part) that ipv6 may have
similar disfunctionality, but I doubt that PPP is affected by the
component.

I'm going to continue hacking around and see what I come up with, but
if anyone knows a proper way to fix this, it would be *greatly*
appreciated on my end.

P.S. Did anyone else have this problem?
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to