Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 647154

Summary: sys-apps/gptfdisk-1.0.3 : gptcurses.cc:(.text+<snip>): undefined reference to isendwin
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Marek Szuba <marecki>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=660768
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-apps:gptfdisk-1.0.3:20180208-225637.log
temp.tbz2

Description Toralf Förster gentoo-dev 2018-02-09 20:15:40 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: gptcurses.o: warning: relocation against `COLS' in readonly section `.text'
gptcurses.o: In function `GPTDataCurses::~GPTDataCurses()':
gptcurses.cc:(.text+0x49): undefined reference to `isendwin'
gptcurses.cc:(.text+0x52): undefined reference to `endwin'
gptcurses.o: In function `GPTDataCurses::GPTDataCurses()':
gptcurses.cc:(.text+0x1fd): undefined reference to `refresh'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_abi32+64-test_20180203-182621

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv sys-apps/gptfdisk
[ebuild  N    ] sys-apps/gptfdisk-1.0.1  USE="ncurses -static"
Comment 1 Toralf Förster gentoo-dev 2018-02-09 20:15:43 UTC
Created attachment 518764 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-09 20:15:46 UTC
Created attachment 518766 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-02-09 20:15:49 UTC
Created attachment 518768 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-02-09 20:15:53 UTC
Created attachment 518770 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-02-09 20:15:56 UTC
Created attachment 518772 [details]
sys-apps:gptfdisk-1.0.3:20180208-225637.log
Comment 6 Toralf Förster gentoo-dev 2018-02-09 20:15:59 UTC
Created attachment 518774 [details]
temp.tbz2
Comment 7 Rolf Eike Beer archtester 2020-02-19 19:44:11 UTC
I see this on hppa, which looks like a similar problem, like if it is missing a [static] for some of the depdendncies:

 * USE:        elibc_glibc hppa kernel_linux ncurses static userland_GNU

hppa2.0-unknown-linux-gnu-g++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o cgdisk.o gptcurses.o -Wl,-O1 -Wl,--as-needed -static  -luuid -lncursesw -o cgdisk
hppa2.0-unknown-linux-gnu-g++ support.o diskio.o diskio-unix.o basicmbr.o mbrpart.o fixparts.o -Wl,-O1 -Wl,--as-needed -static  -o fixparts
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../libncursesw.a(lib_mouse.o): in function `load_gpm_library':
(.text+0x670): undefined reference to `dlopen'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: (.text+0x690): undefined reference to `dlsym'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: (.text+0x6b0): undefined reference to `dlsym'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: (.text+0x6d0): undefined reference to `dlsym'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: (.text+0x6f0): undefined reference to `dlsym'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: (.text+0x734): undefined reference to `dlclose'
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../../hppa2.0-unknown-linux-gnu/bin/ld: /usr/lib/gcc/hppa2.0-unknown-linux-gnu/7.3.0/../../../libncursesw.a(lib_mouse.o): in function `enable_gpm_mouse':
(.text+0x7c0): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
Comment 8 Marek Szuba archtester gentoo-dev 2022-06-30 08:57:19 UTC
It's been 4 years now... Is this still a problem with 1.0.9?
Comment 9 Toralf Förster gentoo-dev 2022-06-30 09:29:26 UTC
(In reply to Marek Szuba from comment #8)
> It's been 4 years now... Is this still a problem with 1.0.9?

no