Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843416 - dev-scheme/guile-ncurses-3.0 - curs_spec.c:(.text+<snip>): undefined reference to LINES
Summary: dev-scheme/guile-ncurses-3.0 - curs_spec.c:(.text+<snip>): undefined referenc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: tinfo slibtool
  Show dependency tree
 
Reported: 2022-05-09 11:43 UTC by Toralf Förster
Modified: 2022-05-10 15:12 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.06 KB, text/plain)
2022-05-09 11:43 UTC, Toralf Förster
Details
dev-scheme:guile-ncurses-3.0:20220509-112744.log (dev-scheme:guile-ncurses-3.0:20220509-112744.log,77.50 KB, text/plain)
2022-05-09 11:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,153.18 KB, text/plain)
2022-05-09 11:43 UTC, Toralf Förster
Details
environment (environment,23.15 KB, text/plain)
2022-05-09 11:43 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.51 KB, application/x-bzip)
2022-05-09 11:43 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,12.79 KB, application/x-bzip)
2022-05-09 11:43 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,13.99 KB, application/x-bzip)
2022-05-09 11:43 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-05-09 11:43:03 UTC
too long lines were shrinked:

rdlibtool: link: ln -s /dev/null .libs/libguile-ncurses.a.disabled
rdlibtool: link: ln -s /usr/lib64/guile/3.0/extensions .libs/libguile-ncurses.so.slibtool.rpath
rdlibtool: link: x86_64-pc-linux-gnu-gcc .libs/libguile_ncurses_la-curs_const.o .libs/libguile_ncurses_la-curs_func.o .libs/libguile_ncurses_la-curs_port.o .libs/libguile_ncurses_la-curs_spec.o .libs/libguile_ncurses_la-curs_main.o .libs/libguile_ncurses_la-eti_const.o .libs/libguile_ncurses_la-eti_
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libguile_ncurses_la-curs_spec.o: in function `gucu_LINES':
curs_spec.c:(.text+0x253): undefined reference to `LINES'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libguile_ncurses_la-curs_spec.o: in function `gucu_COLS':
curs_spec.c:(.text+0x263): undefined reference to `COLS'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220508-113753

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-12.1.0 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.3
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.60.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
*)	Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 8527e37f7008bf8eb1db520839b2d64793e8950e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon May 9 10:03:10 2022 +0000

    2022-05-09 10:03:10 UTC

emerge -qpvO dev-scheme/guile-ncurses
[ebuild  N    ] dev-scheme/guile-ncurses-3.0
Comment 1 Toralf Förster gentoo-dev 2022-05-09 11:43:05 UTC
Created attachment 777734 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-09 11:43:06 UTC
Created attachment 777737 [details]
dev-scheme:guile-ncurses-3.0:20220509-112744.log
Comment 3 Toralf Förster gentoo-dev 2022-05-09 11:43:08 UTC
Created attachment 777740 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-05-09 11:43:09 UTC
Created attachment 777743 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-05-09 11:43:10 UTC
Created attachment 777746 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-09 11:43:11 UTC
Created attachment 777749 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-05-09 11:43:12 UTC
Created attachment 777752 [details]
temp.tar.bz2
Comment 8 orbea 2022-05-09 16:27:18 UTC
On Gentoo both -lncursesw and -ltinfow are needed where the latter is missing here. Additionally GNU libtool silently ignores -no-undefined while slibtool does not.
Comment 9 orbea 2022-05-09 16:34:48 UTC
I sent the patch to the Upstream ML.

https://lists.gnu.org/archive/html/bug-guile-ncurses/2022-05/msg00000.html
Comment 10 Maciej Barć gentoo-dev 2022-05-09 16:43:41 UTC
Thanks a lot Orbea! This compiles & passes tests for me with patch in the PR.
LGTM
Comment 11 Larry the Git Cow gentoo-dev 2022-05-09 16:47:53 UTC
The bug has been referenced in the following commit(s):

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

commit e9b4a8bfad4ca23a97239ff8d1bad011da038fab
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-05-09 16:23:51 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2022-05-09 16:38:22 +0000

    dev-scheme/guile-ncurses: Fix build with slibtool
    
    On Gentoo both -lncurses and -ltinfow are needed where the build
    misses the latter. Additionally GNU libtool silently ignores
    -no-undefined while slibtool does not.
    
    Bug: https://bugs.gentoo.org/843416
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/25404
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../files/guile-ncurses-3.0-slibtool.patch         | 38 ++++++++++++++++++++++
 dev-scheme/guile-ncurses/guile-ncurses-3.0.ebuild  |  4 +++
 2 files changed, 42 insertions(+)