Modify

Opened 3 years ago

Last modified 3 years ago

#18070 new defect

eglibc 2.19 compile failed, Perl 5.0.20 cannot find -lnsl

Reported by: whotopia@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Barrier Breaker 14.07
Keywords: Cc:

Description

Perl fails to build due to dependency on libnsl.

i486-openwrt-linux-gnu-gcc -o libperl.so -shared -rdynamic -L/mnt/src/stevie/ent/14.07-openwrt/staging_dir/target-i386_geode_eglibc-2.19/usr/lib -L/mnt/src/stevie/ent/14.07-openwrt/staging_dir/target-i386_geode_eglibc-2.19/lib -L/mnt/src/stevie/ent/14.07-openwrt/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_eglibc-2.19/usr/lib -L/mnt/src/stevie/ent/14.07-openwrt/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_eglibc-2.19/lib op.o perl.o   gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o   DynaLoader.o -lnsl -ldl -lm -lcrypt -lutil -lc -lbsd 
/mnt/src/stevie/ent/14.07-openwrt/staging_dir/toolchain-i386_geode_gcc-4.8-linaro_eglibc-2.19/lib/gcc/i486-openwrt-linux-gnu/4.8.3/../../../../i486-openwrt-linux-gnu/bin/ld: cannot find -lnsl
collect2: error: ld returned 1 exit status
make[4]: *** [libperl.so] Error 1
make[4]: Leaving directory `/mnt/src/stevie/ent/14.07-openwrt/build_dir/target-i386_geode_eglibc-2.19/perl/perl-5.20.0'
make[3]: *** [/mnt/src/stevie/ent/14.07-openwrt/build_dir/target-i386_geode_eglibc-2.19/perl/perl-5.20.0/.built] Error 2

Perl probably doesn't actually need to be linked with libnsl.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by whotopia@…

Can be fixed by removing the references to libnsl in the configuration file appropriate for build architecture. e.g. feeds/packages/lang/perl/files/config.sh-i486.in

comment:2 Changed 3 years ago by imwilder

Also seeing this in Chaos Calmer compiling for x86_64 target with eglibc

Last edited 3 years ago by imwilder (previous) (diff)

comment:3 Changed 3 years ago by Naoir

This issue should be fixed in CC/trunk since ef3ac53/perl-5.20.0-6 for all architectures. Please make sure your tree is current, and provide a log if the problem persists.
perl-5.20.0-6 in BB should also fix this.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.