What's new

OpenWRT compiling issue

  • Thread starter Thread starter tufani
  • Start date Start date
T

tufani

Guest
Hi All,
I want to compile OpenWRT and I have taken iptables-1.3.8 as one of the packages .
Now in the makefile of iptables-1.3.8 I have uncommented options ,
# uncomment this to get a fully statically linked version
NO_SHARED_LIBS = 1

# uncomment this to disable IPv6 support
DO_IPV6 = 0

but with this change if I want to compile OpenWRT I am getting errors as :
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -fpic -Wall -Wunused -I/home/netgear_work/openwrt-wgr614l/trunk/build_dir/linux-brcm-2.4/linux-2.4.35.4/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.8\" -DNO_SHARED_LIBS=1 -DIPT_LIB_DIR=\"/usr/lib/iptables\" -rdynamic -static-libgcc -o iptables iptables-standalone.c iptables.o extensions/libext.a libiptc/libiptc.a
iptables.o: In function `find_match':
iptables.csad.text+0x804): undefined reference to `dlopen'
iptables.csad.text+0x858): undefined reference to `dlerror'
iptables.o: In function `find_target':
iptables.csad.text+0x19b8): undefined reference to `dlopen'
iptables.csad.text+0x1a08): undefined reference to `dlerror'
extensions/libext.a(initext.o): In function `init_extensions':
initext.csad.text+0x358): undefined reference to `ipt_IMQ_init'
collect2: ld returned 1 exit status
make[4]: *** [iptables] Error 1


Could anybody plz tell me how to overcome this ...
 
This seems a bit strange .... bcoz if you look for this flag NO_SHARED_LIBS , you will notice that if this flag is defined , dlopen etc. will not get called .... I think something funny has happened to your configuration ... I would suggest to do a make clean and then make ...
Hopefully it will get compiled ...
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top