Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73850 - newt fails to build
Summary: newt fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-12-08 16:52 UTC by REdOG
Modified: 2004-12-14 23:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description REdOG 2004-12-08 16:52:19 UTC
gcc -g -o test test.o libnewt.a -lncurses -lslang -lm  -static
/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/../../../libslang.a(sldisply.o)(.text+0x20ba): In function `SLtt_tgetstr':
: undefined reference to `tgetstr'
/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/../../../libslang.a(sldisply.o)(.text+0x22bb): In function `SLtt_initialize':
: undefined reference to `tgetent'
/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/../../../libslang.a(sldisply.o)(.text+0x2106): In function `SLtt_tgetnum':
: undefined reference to `tgetnum'
/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/../../../libslang.a(sldisply.o)(.text+0x211d): In function `SLtt_tgetflag':
: undefined reference to `tgetflag'
collect2: ld returned 1 exit status
make: *** [test] Error 1
rm textbox.o checkbox.o checkboxtree.o windows.o grid.o scrollbar.o entry.o form.o scale.o label.o button.o listbox.o buttonbar.o

!!! ERROR: dev-libs/newt-0.50.35-r3 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! make failure
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 REdOG 2004-12-08 16:54:49 UTC
adding this: 

sed -i -e 's:LIBS = -lslang -lm:LIBS = -lslang -lncurses:g' ${S}/Makefile

to the ebuild just after the econf line fixes it.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-14 23:30:24 UTC
I put a better fix into CVS after looking at the build system for newt.