[uClibc] Can uClibc work with ipfwadm-2.3.0 ?

teacher & wpl at cc4.ckitc.edu.tw
Thu Jul 3 02:37:52 UTC 2003


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 
www.xos.nl
#include <linux/ip_fw.h>
#include <sys/param.h>

main()
{
  exit(0);
}
=========================================

The purpose of doing this is simply to understand if the header files
conflict with each other. As a result, it seems that <netinet/in.h>
doesn't like <linux/*.h>, e.g. <linux/ip.h> will include <linux/in.h>
which seems to conflict with <netinet/in.h>. <netdb.h> is not happy with
<linux/*.h> either.

So my questions are:

1. Is my understanding meaningful?
2. Can any version of uClibc work with ipfwadm-2.3.0 ? or
3. Can <netdb.h> or <netinet/in.h> work with <linux/*.h> ?
4. Has anyone ever cross-compiled ipfwadm-2.3.0 for uClinuc-based
   ARM7-TDMI?

Thanks,
Wen-Ping Lai
Dept. of Management Information Systems
TAIWAN
wpl at mail.ckitc.edu.tw







More information about the uClibc mailing list