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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 700496 (view as bug list)
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2016-12-07 14:42 UTC by jorgicio
Modified: 2022-11-07 21:02 UTC (History)
13 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
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-22 11:00:51 UTC
*** Bug 700496 has been marked as a duplicate of this bug. ***
Comment 13 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-01-10 00:27:14 UTC
I cannot reproduce the issue. I am tempted to close this bug.
Comment 14 Viorel Munteanu gentoo-dev 2021-02-13 07:57:10 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.

I just reproduced if with media-libs/libcaca-0.99_beta19-r1

This solution worked
Comment 15 Larry the Git Cow gentoo-dev 2021-03-01 17:33:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fa25c71ca75f3f5353813553b61bd5c934dcad8

commit 3fa25c71ca75f3f5353813553b61bd5c934dcad8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-01 17:33:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-01 17:33:38 +0000

    media-libs/libcaca: modernise ebuild, fix ncurses linkage
    
    Closes: https://bugs.gentoo.org/601902
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libcaca-0.99_beta18-fix-tests.patch      |  12 +-
 .../files/libcaca-0.99_beta18-latex_hacks.patch    |   4 +-
 media-libs/libcaca/libcaca-0.99_beta19-r2.ebuild   | 167 +++++++++++++++++++++
 3 files changed, 175 insertions(+), 8 deletions(-)
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-01 18:03:13 UTC
I have no idea how only some people can reproduce this, but hey. The fix I've committed should work now.