Bug 11907 - slang: Fail to build sltest for ptest (issue with static linking)
Summary: slang: Fail to build sltest for ptest (issue with static linking)
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium+ normal
Target Milestone: 2.4 M3
Assignee: Joe Slater
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-08 07:54 UTC by Holger Freyther
Modified: 2017-08-14 20:18 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Freyther 2017-08-08 07:54:45 UTC
The ptest task is failing as libslang.a is built and linking is missing the library for terminfo. This doesn't impact the normal compile task


rm -f /home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/slang-2.3.1a/src/objs/libslang.a
cd /home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/slang-2.3.1a/src/objs && ar cr libslang.a sltermin.o sldisply.o slutty.o slang.o slarray.o slclass.o slcmd.o slerr.o slgetkey.o slkeymap.o slmalloc.o slmath.o slmemchr.o slmemcmp.o slmemcpy.o slmemset.o slmisc.o slparse.o slprepr.o slregexp.o slrline.o slsearch.o slsmg.o slstd.o sltoken.o sltypes.o slxstrng.o slcurses.o slscroll.o slsignal.o slkeypad.o slerrno.o slstring.o slstruct.o slcmplex.o slarrfun.o slimport.o slpath.o slarith.o slassoc.o slcompat.o slposdir.o slstdio.o slproc.o sltime.o slstrops.o slbstr.o slpack.o slintall.o slistruc.o slposio.o slnspace.o slarrmis.o slospath.o slscanf.o sllower.o slupper.o slischar.o slutf8.o slwcwidth.o slwclut.o slcommon.o sllist.o slexcept.o slfpu.o slsig.o slboseos.o
arm-poky-linux-gnueabi-ranlib /home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/slang-2.3.1a/src/objs/libslang.a

libslang.a created in /home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/slang-2.3.1a/src/objs
make: Leaving directory '/home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/slang-2.3.1a/src'
NOTE: make RPATH= -C src/test sltest
make: Entering directory '/home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/slang-2.3.1a/src/test'
arm-poky-linux-gnueabi-gcc  -march=armv5te -marm --sysroot=/home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0=/usr/src/debug/slang/2.3.1a-r0 -fdebug-prefix-map=/home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/jenkinsdebian8amd64/jenkins/workspace/Yocto-Master/label/Debian8-AMD64/system-images/build.sysmobts/tmp/work/armv5te-poky-linux-gnueabi/slang/2.3.1a-r0/recipe-sysroot=   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed sltest.c -o sltest -I.. -L../objs -lslang -lm
../objs/libslang.a(sldisply.o): In function `tt_tgetstr':
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2576: undefined reference to `tgetstr'
../objs/libslang.a(sldisply.o): In function `tt_tgetnum':
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2619: undefined reference to `tgetnum'
../objs/libslang.a(sldisply.o): In function `tt_tgetflag':
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2635: undefined reference to `tgetflag'
../objs/libslang.a(sldisply.o): In function `SLtt_initialize':
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2770: undefined reference to `tgetent'
../objs/libslang.a(sldisply.o): In function `tt_tgetflag':
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2635: undefined reference to `tgetflag'
../objs/libslang.a(sldisply.o): In function `tt_tgetnum':
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2619: undefined reference to `tgetnum'
../objs/libslang.a(sldisply.o): In function `tt_tgetflag':
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2635: undefined reference to `tgetflag'
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2635: undefined reference to `tgetflag'
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2635: undefined reference to `tgetflag'
../objs/libslang.a(sldisply.o): In function `tt_tgetnum':
/usr/src/debug/slang/2.3.1a-r0/slang-2.3.1a/src/sldisply.c:2619: undefined reference to `tgetnum'
Comment 1 Joe Slater 2017-08-10 19:19:57 UTC
53fbc13 on master-next should fix this issue.  Looking for terminfo at configure time will not work properly.