[uClibc] Can uClibc work with ipfwadm-2.3.0 ?
Erik Andersen
andersen at codepoet.org
Thu Jul 3 06:08:34 UTC 2003
On Thu Jul 03, 2003 at 10:37:52AM +0800, teacher & wrote:
> Dear all,
>
> I am new to this discussion forum, but I have started using
> uClibc (0.9.5) for transplanting some applications from my x86 PC
> to a ARM7TDMI SBC running with uClinux 2.0.38.
>
> I am encoutering a problem with cross-compiling ipfwadm-2.3.0
> with the uClibc mentioned above. In order to simplify the problem,
> the included header part of the code was kept intact, while
> the main functional part was replaced as follows:
>
> =======================================
> #include <stdio.h>
> #include <errno.h>
> #include <limits.h>
> #include <string.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <getopt.h>
> #include <netdb.h>
> #include <netinet/in.h>
> #include <linux/ip.h>
> #include <linux/tcp.h>
> #include <linux/udp.h>
> #include <linux/icmp.h>
> #include <linux/if.h>
> #include <linux/timer.h> <---added according to the suggestion of
Using linux kernel headers directly within a userspace
application (i.e. #include <linux/foo.h>) is illegal.
Therefore, ipfwadm-2.3.0 as shipped, is completely broken.
Look at
http://ftp.debian.org/debian/pool/main/i/ipfwadm/ipfwadm_2.3.0-4.diff.gz
for an example showing how to fix ipfwadm-2.3.0 so it works
with both glibc and uClibc.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list