Re: cannot find -ldl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Le mardi 14 novembre 2006 à 13:27 +0200, Vladimir Iskoz a écrit :
> 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

You should try to compile it statically as you plan to use it on an
embededded system.
In iptables Makefile uncommment :
# NO_SHARED_LIBS = 1

BR,

> 
> I tried to removed -ldl from iptables Makefile but receive the other errors:
> undefined reference to 'dl_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_armeb_nofpu/staging_dir/bin/armeb-linux-uclibc-gcc -Os -pipe  -membedded-pic -Wall -Wunused -I/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.4\"  -D_UNKNOWN_KERNEL_POINTER_SIZE -DIPT_LIB_DIR=\"/usr/lib/iptables\" -rdynamic -o iptables iptables-standalone.c iptables.o libiptc/libiptc.a -ldl -lnsl
> /home/vladimir/R2/osdk/buildroot/build_armeb_nofpu/staging_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).
> ************************************************************************************
> 
> 
> 
> 




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux