cannot find -ldl

Vladimir Iskoz Vladimir.Iskoz at
Tue Nov 14 12:27:34 CET 2006

Hi all,
I'm trying to add firewall functionality to my current project. I'm starting with adding iptables (1.3.4) to my project using Buildroot menucofig tool.
Unfortunately I received the following error during the link:
cannot find -ldl

I tried to removed -ldl from iptables Makefile but receive the other errors:
undefined reference to 'dl+AF8-open'

I'm using armeb-linux-uclibc-gcc 

Where are I can find corresponding libdl.a (I did not find it in my project)?
What workaround can be done?

The last rows during Buildroot compilation before the Error are:
/home/vladimir/R2/osdk/buildroot/build+AF8-armeb+AF8-nofpu/staging+AF8-dir/bin/armeb-linux-uclibc-gcc -Os -pipe  -membedded-pic -Wall -Wunused -I/include -Iinclude/ -DIPTABLES+AF8-VERSION+AD0AXAAi-1.3.4+AFwAIg-  -D+AF8-UNKNOWN+AF8-KERNEL+AF8-POINTER+AF8-SIZE -DIPT+AF8-LIB+AF8-DIR+AD0AXAAi-/usr/lib/iptables+AFwAIg- -rdynamic -o iptables iptables-standalone.c iptables.o libiptc/libiptc.a -ldl -lnsl
/home/vladimir/R2/osdk/buildroot/build+AF8-armeb+AF8-nofpu/staging+AF8-dir/bin-ccache/../lib/gcc/armeb-linux-uclibc/3.4.5/../../../../armeb-linux-uclibc/bin/ld: cannot find -ldl

What is a preferable way to add iptables: add them to Buildroot menu or explicitly to Linux Kernel menu in Network Options?

My Target details:
Architecture: ARM
OS: uClinux
Linux Kernel: 2.6.14
Cross Compilation Tool: Buildroot

Thanks a lot for any help

Vladi Iskoz

This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses(42).

More information about the netfilter mailing list