Opened 4 years ago

Closed 3 years ago

#14380 closed defect (moved_to_github)

eglibc-2.15/2.17 r38435 compile failed (tcp_wrappers_7.6 cannot find -lnsl)

Reported by: zouhair.s@… Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: eglibc tcp_wrappers libnsl Cc:


eglibc-2.15/2.17 r38435 compile fail (tcp_wrappers_7.6 cannot find -lnsl)

OpenWrt r38435 with eglibc-2.15 or 2.17 failed to build.
The problem is libnsl*.so not compiled in eglibc.
I try to find it in "build_dir/toolchain-mips_mips32_gcc-4.6-linaro_eglibc-2.17" no libnsl*.so found.

With uClibc instead of eglibc, this version (r38435) compiles fine.

mips-openwrt-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fpic -DFACILITY=LOG_DAEMON -DHOSTS_ACCESS      -DDAEMON_UMASK=022 -DREAL_DAEMON_DIR=\"/usr/sbin\" -DPROCESS_OPTIONS -DKILL_IP_OPTIONS -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10  -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"   -DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len    -fPIC -shared -D_REENTRANT -c myvsyslog.c -o shared/myvsyslog.o
rm -f shared/
mips-openwrt-linux-gnu-gcc -o shared/ -shared -Xlinker -soname -Xlinker -lc -lnsl shared/hosts_access.o shared/options.o shared/shell_cmd.o shared/rfc931.o shared/eval.o shared/hosts_ctl.o shared/refuse.o shared/percent_x.o shared/clean_exit.o shared/fromhost.o shared/fix_options.o shared/socket.o shared/tli.o shared/workarounds.o shared/update.o shared/misc.o shared/diag.o shared/percent_m.o shared/myvsyslog.o;
/mnt/wd/zz/dev/openbox/owrt_20131017/staging_dir/toolchain-mips_mips32_gcc-4.6-linaro_eglibc-2.15/lib/gcc/mips-openwrt-linux-gnu/4.6.4/../../../../mips-openwrt-linux-gnu/bin/ld: cannot find -lnsl
collect2: ld returned 1 exit status
make[4]: *** [shared/] Error 1
make[4]: Leaving directory `/mnt/wd/zz/dev/openbox/owrt_20131017/build_dir/target-mips_mips32_eglibc-2.15/tcp_wrappers_7.6'
make[3]: *** [/mnt/wd/zz/dev/openbox/owrt_20131017/build_dir/target-mips_mips32_eglibc-2.15/tcp_wrappers_7.6/.built] Error 2
make[3]: Leaving directory `/mnt/wd/zz/dev/openbox/owrt_20131017/feeds/packages/libs/tcp_wrappers'
make[2]: *** [package/feeds/packages/tcp_wrappers/compile] Error 2
make[2]: Leaving directory `/mnt/wd/zz/dev/openbox/owrt_20131017'
make[1]: *** [/mnt/wd/zz/dev/openbox/owrt_20131017/staging_dir/target-mips_mips32_eglibc-2.15/stamp/.package_compile] Error 2
make[1]: Leaving directory `/mnt/wd/zz/dev/openbox/owrt_20131017'
make: *** [world] Erreur 2

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by zouhair.s@…

fixed by removing LIBS="-lnsl" from libs/tcp_wrappers/Makefile in r38800

--- Makefile.back.20131115114118	2013-11-14 15:56:44.956069960 +0100
+++ Makefile	2013-11-15 11:41:18.741906857 +0100
@@ -35,7 +35,6 @@
-		LIBS=-lnsl \
 		BUGS= \

comment:2 Changed 3 years ago by whotopia@…

Same is still true on Barrier Breaker if trying to build with EGLIBC. The same patch above seems to fix it.

comment:3 Changed 3 years ago by nbd

  • Resolution set to moved_to_github
  • Status changed from new to closed

tcp_wrappers is maintained here:

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.