Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601902 - media-libs/libcaca with sys-libs/ncurses[tinfo] - ../caca/.libs/libcaca.so: error: undefined reference to 'stdscr'
Summary: media-libs/libcaca with sys-libs/ncurses[tinfo] - ../caca/.libs/libcaca.so: e...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: media-video herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2016-12-07 14:42 UTC by jorgicio
Modified: 2020-02-09 07:39 UTC (History)
11 users (show)

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


Attachments
build.log (libcaca.log,86.20 KB, text/plain)
2016-12-07 14:42 UTC, jorgicio
Details
The emerge --info (emerge-info.txt,9.03 KB, text/plain)
2016-12-07 14:42 UTC, jorgicio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jorgicio 2016-12-07 14:42:10 UTC
Hi! I noticed that ruby 2.0 was masked and upgraded ncurses, but when I tried to rebuild libcaca (because asked), it fails with some undefined references.
I'll attach the log and the emerge --info for more information.
Thanks.

PS: also tried with stable version of libcaca and the error is the same.

Reproducible: Always
Comment 1 jorgicio 2016-12-07 14:42:28 UTC
Created attachment 455406 [details]
build.log
Comment 2 jorgicio 2016-12-07 14:42:48 UTC
Created attachment 455408 [details]
The emerge --info
Comment 3 jorgicio 2016-12-07 14:44:16 UTC
As I have installed libcaca:

[I] media-libs/libcaca
     Available versions:  0.99_beta18-r2 (~)0.99_beta19 {X cxx doc imlib java mono ncurses opengl python ruby slang static-libs test truetype ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="FreeBSD" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20"}
     Installed versions:  0.99_beta19(15:24:46 13/08/15)(X cxx ncurses opengl python truetype -doc -imlib -java -mono -ruby -slang -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" ELIBC="-FreeBSD" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20")
     Homepage:            http://libcaca.zoy.org/
     Description:         A library that creates colored ASCII-art graphics
Comment 4 Gerard van Vuuren 2016-12-07 16:12:40 UTC
Even though I set ruby to ruby21 as per news today
I have problems when doing emerge -uDN world.
Lots of ruby pckgs are not emerged because they need ruby20.
Gerard.
Comment 5 Jan Vansteenkiste 2016-12-08 07:11:21 UTC
libcaca seems to compile fine gainst newer ruby versions too. Not sure why this was pinned to ruby 2.0
Comment 6 jorgicio 2016-12-08 18:17:28 UTC
Building with USE="-ncurses" went fine. So I noticed the problem is recent versions of ncurses.
Comment 7 Alessandro Barbieri 2019-08-07 11:40:58 UTC
The solution is to add -ltinfow together with -lncursesw in the makefile
Comment 8 Red 2019-11-04 22:20:43 UTC
(In reply to Alessandro Barbieri from comment #7)
> The solution is to add -ltinfow together with -lncursesw in the makefile

Also having this problem, and Alessandro Barbieri's solution works.

I created the file /etc/portage/env/libcaca-fix.conf containing this line:

LDFLAGS="${LDFLAGS} -ltinfow"

Then I added this to my /etc/portage/package.env:

media-libs/libcaca libcaca-fix.conf

Now media-libs/libcaca compiles properly.
Comment 9 jorgicio 2019-11-04 22:43:04 UTC
(In reply to Red from comment #8)
> (In reply to Alessandro Barbieri from comment #7)
> > The solution is to add -ltinfow together with -lncursesw in the makefile
> 
> Also having this problem, and Alessandro Barbieri's solution works.
> 
> I created the file /etc/portage/env/libcaca-fix.conf containing this line:
> 
> LDFLAGS="${LDFLAGS} -ltinfow"
> 
> Then I added this to my /etc/portage/package.env:
> 
> media-libs/libcaca libcaca-fix.conf
> 
> Now media-libs/libcaca compiles properly.

Did it and now it builds fine. Thanks!

I tried to add a patch, but ebuild uses EAPI=5 and doesn't let to add user patches.
Comment 10 Red 2020-02-05 03:16:19 UTC
See bug 708306 for the same problem occurring with net-dns/dnstop
Comment 11 Denis Pronin 2020-02-09 07:39:15 UTC
Is it going to be fixed up in the repository on main branch?
Thank you