Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701688 - games-emulation/dosbox[debug]: debug/libdebug.a(debug_gui.o): undefined reference to symbol 'keypad'
Summary: games-emulation/dosbox[debug]: debug/libdebug.a(debug_gui.o): undefined refer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://sourceforge.net/p/dosbox/patc...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-01 17:00 UTC by WGH
Modified: 2020-01-05 20:58 UTC (History)
2 users (show)

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


Attachments
/var/tmp/portage/games-emulation/dosbox-0.74_p20160629/temp/build.log (build.log,234.78 KB, text/x-log)
2019-12-02 16:32 UTC, WGH
Details
patch (tinfo.patch,1.68 KB, patch)
2019-12-02 17:54 UTC, WGH
Details | Diff
patch (tinfo.patch,1.68 KB, patch)
2019-12-02 18:03 UTC, WGH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description WGH 2019-12-01 17:00:09 UTC
Seems to be yet another case of bug #457530.

x86_64-pc-linux-gnu-g++  -march=core-avx2 -O2 -pipe -msahf -mmovbe --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=3072 -mtune=core-avx2 -fstack-protector -mno-ms-bitfields  -Wl,-O1 -Wl,--as-needed -o dosbox dosbox.o  cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a  hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/serialport/libserial.a libs/gui_tk/libgui_tk.a -lSDL_sound  -lSDL -lpthread -lcurses -lpng -lz -lSDL_net -lX11
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: debug/libdebug.a(debug_gui.o): undefined reference to symbol 'keypad'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
distcc[538] ERROR: compile (null) on localhost failed
make[3]: *** [Makefile:405: dosbox] Error 1
make[3]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74_p20160629/work/dosbox-code-0-3989-dosbox-trunk/src'
make[2]: *** [Makefile:442: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74_p20160629/work/dosbox-code-0-3989-dosbox-trunk/src'
make[1]: *** [Makefile:376: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/games-emulation/dosbox-0.74_p20160629/work/dosbox-code-0-3989-dosbox-trunk'
make: *** [Makefile:317: all] Error 2

Reproducible: Always
Comment 1 Jonas Stein gentoo-dev 2019-12-01 17:52:32 UTC
Thank you for the report. Please recompile and 
*attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 2 WGH 2019-12-02 16:32:58 UTC
Created attachment 598208 [details]
/var/tmp/portage/games-emulation/dosbox-0.74_p20160629/temp/build.log
Comment 3 WGH 2019-12-02 16:35:09 UTC
Ignore the LocalOverlay thing, the ebuild is umodified. I was preparing for trying to fix it myself.

Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.0, gcc-9.2.0, glibc-2.29-r2, 4.19.85-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.85-gentoo-x86_64-Intel-R-_Core-TM-_i3-4010U_CPU_@_1.70GHz-with-gentoo-2.6
KiB Mem:     8056808 total,    722220 free
KiB Swap:   16777212 total,  16571788 free
Timestamp of repository gentoo: Sun, 01 Dec 2019 15:45:01 +0000
Head commit of repository gentoo: 5d24a851de697b963b924b410149dde08cdf34d0
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
ccache version 3.7.4 [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.16-r100::sage-on-gentoo, 3.6.9::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://mirror.yandex.ru/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

LocalOverlay
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo

brother-overlay
    location: /var/lib/layman/brother-overlay
    sync-type: laymansync
    sync-uri: git://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

johu
    location: /var/lib/layman/johu
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/dev/johu.git
    masters: gentoo
    priority: 50

mrueg
    location: /var/lib/layman/mrueg
    sync-type: laymansync
    sync-uri: https://github.com/mrueg/mrueg-overlay.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/qt.git
    masters: gentoo
    priority: 50

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    sync-type: laymansync
    sync-uri: git://github.com/cschwan/sage-on-gentoo.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    sync-type: laymansync
    sync-uri: https://github.com/istitov/stuff.git
    masters: gentoo
    priority: 50

wjn-overlay
    location: /var/lib/layman/wjn-overlay
    sync-type: laymansync
    sync-uri: https://bitbucket.org/wjn/wjn-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe -msahf -mmovbe --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=3072 -mtune=core-avx2 -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx2 -O2 -pipe -msahf -mmovbe --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=3072 -mtune=core-avx2 -fstack-protector"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j21 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bindist bzip2 cli crypt cxx dri fortran gdbm glamor iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre pulseaudio readline seccomp split-usr ssl systemd tcpd unicode vaapi xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard synaptics evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

games-emulation/dosbox-0.74_p20160629::LocalOverlay was built with the following:
USE="-alsa -debug -hardened -opengl" ABI_X86="(64)"
Comment 4 WGH 2019-12-02 17:54:24 UTC
Created attachment 598286 [details, diff]
patch

I'm not Autoconf expert, but this fixes the build for me.
Comment 5 WGH 2019-12-02 17:55:42 UTC
Oops, the patch is wrong, please ignore it
Comment 6 WGH 2019-12-02 18:03:34 UTC
Created attachment 598288 [details, diff]
patch

Proper patch.
Comment 7 James Le Cuirot gentoo-dev 2020-01-01 22:50:49 UTC
I have reproduced this but I'd like to see a patch upstreamed. I think they'll want a non-pkg-config fallback. I'll see what I can do.
Comment 8 Larry the Git Cow gentoo-dev 2020-01-01 22:56:46 UTC
The bug has been referenced in the following commit(s):

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

commit 5ba12ab7041fd46cd53efb979ccf9344f9004e19
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2020-01-01 22:51:41 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2020-01-01 22:56:13 +0000

    profiles: Mask games-emulation/dosbox[debug] because of ncurses[tinfo]
    
    Bug: https://bugs.gentoo.org/701688
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 profiles/base/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2020-01-04 14:31:28 UTC
The bug has been referenced in the following commit(s):

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

commit c5cbc1869428f0a8fe0c07ff7a43bb7a03f1c74f
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2020-01-04 14:29:01 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2020-01-04 14:31:01 +0000

    profiles: Unmask dosbox[debug] as the issue has been patched
    
    It still affects the stable version but that will be removed soon.
    
    Bug: https://bugs.gentoo.org/701688
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 profiles/base/package.use.mask | 4 ----
 1 file changed, 4 deletions(-)

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

commit 0146cd428adeb9fc3404a1869af788cbba1576ef
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2020-01-04 12:55:29 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2020-01-04 14:30:09 +0000

    games-emulation/dosbox: Patch to fix USE=debug with ncurses[tinfo]
    
    Bug: https://bugs.gentoo.org/701688
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-emulation/dosbox/dosbox-0.74.3.ebuild        |  4 ++
 games-emulation/dosbox/dosbox-0.75_pre4302.ebuild  |  4 ++
 games-emulation/dosbox/dosbox-9999.ebuild          |  4 ++
 .../dosbox/files/dosbox-0.74-ncurses.patch         | 72 ++++++++++++++++++++++
 4 files changed, 84 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2020-01-05 20:58:17 UTC
The bug has been closed via the following commit(s):

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

commit 5b2a38c07085789e66ef3301403ede20b02e0719
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2020-01-05 20:57:43 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2020-01-05 20:57:43 +0000

    games-emulation/dosbox: Drop old and vulnerable 0.74_p20160629
    
    Bug: https://bugs.gentoo.org/704414
    Closes: https://bugs.gentoo.org/701688
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-emulation/dosbox/Manifest                    |  1 -
 .../dosbox/dosbox-0.74_p20160629.ebuild            | 52 ----------------------
 .../dosbox/files/dosbox-0.74-gcc46.patch           | 10 -----
 3 files changed, 63 deletions(-)