[uClibc]Compiling iptables with uClibc

Erik Andersen andersen at lineo.com
Thu Mar 22 18:57:25 UTC 2001


On Wed Mar 21, 2001 at 08:52:45AM -0800, Andrew Mashchak wrote:
> On Wed, Mar 21, 2001 at 10:16:49AM +0200, michaels at jungo.com wrote:
> > Andrew,
> > 
> > What you see is not really a problem. I have seen similar behaviour when
> > creating dependencies (make dep) for several packages, when gcc is used
> > with -M flag. The warning just says: "I am not linking any object, so
> > why did you specify me a linker  and an object file?". 
> Now that I don't have to worry about the warnings, I get this error at the end:
> 
> Something wrong... deleting dependencies.
> make: *** [/usr/src/linux/include/dlfcn.h] Error 1
> 
> However, there is no dlfcn.h file in the whole kernel source. There is a dlfcn.h in sysdeps/linux/i386/bits/dlfcn.h in the uClibc sources. But it has the line:
> 
> # error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
> 
> So I assume that in and of itself won't work. I found /usr/include/dlfcn.h and copied it into iptables' include/ directory. Running make this time got a lot farther, but resulted in these errors:
> 
> include/dlfcn.h:45: parse error before `__THROW'
> include/dlfcn.h:45: warning: type defaults to `int' in declaration of `__THROW'
> include/dlfcn.h:45: warning: data definition has no type or storage class
> <snip repeated warnings/errors>
> iptables.c: In function `find_match':
> iptables.c:655: warning: implicit declaration of function `dlopen'
> iptables.c:667: warning: implicit declaration of function `dlerror'
> iptables.c:667: warning: format argument is not a pointer (arg 4)
> iptables.c: In function `find_target':
> iptables.c:920: warning: format argument is not a pointer (arg 4)

Well, right now we don't have dlopen() implemented yet...  That will be 
coming as soon as we get an ld.so integrated.

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list