Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559406 - sys-libs/readline-6.3_p8-r2 after ncurses-6.0(-r1) up and downgrade - symbol lookup error: /lib64/libreadline.so.6: undefined symbol: UP
Summary: sys-libs/readline-6.3_p8-r2 after ncurses-6.0(-r1) up and downgrade - symbol ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-02 11:23 UTC by jospezial
Modified: 2015-09-26 07:34 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2015-09-02 11:23:38 UTC
ncurses-6.0-r1 was installed.
Then a world update downgraded to ncurses-6.0.

"emerge @preserved-rebuild" rebuilt readline.

After that I can't emerge anything because I get the error:

symbol lookup error: /lib64/libreadline.so.6: undefined symbol: UP

One workaround I found on
https://forums.gentoo.org/viewtopic-p-7807512.html

is to copy files from stage3.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-09-02 18:26:13 UTC
Strange error; did you perhaps have ncurses-5 with USE=tinfo installed before updating to ncurses-6?

Please attach output of "emerge --info readline ncurses".

@base-system, as an aside, the >=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] dep string in the readline ebuild is missing :0= operator.
Comment 2 jospezial 2015-09-02 19:43:34 UTC
I did not set tinfo USE flag.


emerge --info readline ncurses
Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-5.2.0, glibc-2.22, 4.2.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.0-x86_64-AMD_Athlon-tm-_II_X2_240_Processor-with-gentoo-2.2
KiB Mem:     4047500 total,   3022364 free
KiB Swap:   11010040 total,  11010040 free
Timestamp of repository gentoo: Wed, 02 Sep 2015 14:15:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.3 [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.2.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

overlay_jl
    location: /usr/local/portage
    masters: gentoo
    priority: 0

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

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

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

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

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

Installed sets: @kde-applications-live, @kde-frameworks-live, @kde-plasma-live
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write=y --keep-going --quiet-build=y --verbose-conflicts"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 64bit X Xaw3d a52 aac aacplus aacs aalib accessibility ace acl acpi activefilter aften alsa amd64 ap apm apng archive arping audacious audiofile automount bazaar bdplus berkdb binary-drivers bluetooth bluray boost bzip2 bzr cairo canusb ccache cdda cddb cdio cdparanoia cdr cdrdao cdrom cgi charconv chm chroot cjk clang cli client colordiff colors compress consolekit corefonts cpio cracklib crypt css cue cups curl curlwrappers cvs cxx d3d9 daemon dbus declarative device-mapper dga dhcp doom doomsday dos download-subs dri dri3 dts dump dv dvb dvd dvdnav eap eap-sim eap-tls ebook egl emerald emoticon enca encode enscript equalizer evdev exif extensions extras faac faad fam farstream fat fax fbcon fdformat ffmpeg fftw firefox flac fluidsynth fontconfig foomaticdb fortran freedoom ftp fuse g3dvl gadu gallium gbm gd gdbm geoip gif gimp git glamor glut gme gnutls gpg gphoto2 gpm graphite gsm gstreamer gtk gtk2 gtk3 gui gzip hddtemp hdf hdf5 heretic hexen hid highlight hpcups hpijs http hwdb iconv icq icu id3tag idn imagemagick introspection ios ipc ipod ipv6 jack java javascript jit jpeg jpeg2k kate kdenlive keymap ladspa lame lcms legacy-systray lensfun libass libcanberra libinput libkms libnotify librtmp libsamplerate libssh2 libtiger libv4l libwww live llvm-shared-libs lm_sensors logrotate lua lz4 lzma lzo mad madwifi magic man matroska md5sum meanwhile melt mercurial metalink midi mikmod mime minizip mixer mjpeg mmap mms mmx mmxext mng mobi mod modplug modules mono mouse mozilla mp3 mp4 mpeg mpeg2 mplayer mtp multilib multimedia multislot musepack musicbrainz nano-syntax ncat ncurses ndiff network nfs nfsidmap nfsv4 nfsv41 nls nmap-update nokia normalize nowlistening nping nptl nsplugin ntfs ntfsprogs ntp nvidia nvram obex ocr ogg ogm openal opencl opengl openmax openmp openssl oscar osdmenu otr p2p pam pango panorama parport parse-clocks pcap pci pcre pcre16 pdf pipes plugins pm-utils png policykit postproc postscript ppds printsupport privacy projectm pulseaudio pvr python python3 qalculate qml qt5 quicktime r600-llvm-compiler radio rar raw rdesktop readline recording redeyes reiser4 reiserfs remote-access replaygain rpm rtc rtmp rtsp rubberband s3tc sbsms scanner schroedinger scripttools sdl seccomp secure-delete sensord session sftp sha512 shorten shout skins slang smi sndfile snowberry sockets sound soundtouch sox speex spell sql sqlite sqlite3 squashfs sse sse2 ssh ssl startup-notification statistics stk stream subtitles subversion svg swat symlink sync-plugin-portage syslog system-jsoncpp szip taglib tcpd texteffect tftp tftpd theora threads thumbnail tiff timidity tracepath traceroute translator truetype twolame udev udisks unicode upower urlpicpreview usb v4l v4l2 vaapi vamp vcd vcdx vdpau video videos virtualbox vlm vnc vorbis vpx vroot vst wad wav wavpack webgl webkit webm webp webpresence widgets wifi winbind winpopup wmf wps wxwidgets x264 x265 xa xattr xcb xcomposite xfs xine xinerama xinetd xkb xml xmp xorg xosd xpm xrandr xscreensaver xv xvid xvmc yahoo zenmap zip zlib zvbi" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_4 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev vesa svga vga radeon modesetting r100 r200 r300 r600" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

sys-libs/readline-6.3_p8-r2::gentoo was built with the following:
USE="-static-libs -utils" ABI_X86="32 64 -x32"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L."


sys-libs/ncurses-6.0::gentoo was built with the following:
USE="cxx gpm unicode -ada -static-libs -tinfo" ABI_X86="32 64 -x32"
Comment 3 jospezial 2015-09-02 20:26:35 UTC
Very interesting version hopping that emerge did.

grep -e ncurses -e readline /var/log/emerge.log |grep completed
1437863299:  ::: completed emerge (5 of 123) sys-libs/ncurses-5.9-r4 to /
1437863941:  ::: completed emerge (18 of 123) sys-libs/readline-6.3_p8-r2 to /
1439004789:  ::: completed emerge (411 of 580) sys-libs/ncurses-5.9-r4 to /
1439004836:  ::: completed emerge (412 of 580) sys-libs/readline-6.3_p8-r2 to /
1439187388:  ::: completed emerge (2 of 789) sys-libs/ncurses-5.9-r4 to /
1439187435:  ::: completed emerge (3 of 789) sys-libs/readline-6.3_p8-r2 to /
1439402099:  ::: completed emerge (2 of 7) sys-libs/ncurses-6.0 to /
1439415257:  ::: completed emerge (1 of 42) sys-libs/readline-6.3_p8-r2 to /
1440663547:  ::: completed emerge (2 of 20) sys-libs/ncurses-5.9-r101 to /
1440703982:  ::: completed emerge (3 of 6) sys-libs/ncurses-6.0-r1 to /
1440704080:  ::: completed emerge (5 of 6) sys-libs/ncurses-6.0 to /
1441017133:  ::: completed emerge (19 of 27) sys-libs/ncurses-6.0-r1 to /
1441017142:  ::: completed emerge (20 of 27) sys-libs/ncurses-6.0 to /
1441180760:  ::: completed emerge (1 of 44) sys-libs/ncurses-6.0 to /
1441180812:  ::: completed emerge (2 of 44) sys-libs/readline-6.3_p8-r2 to /

sys-libs/ncurses-6.0-r1 was autocleaned after a world update.
"emerge @world" now wants to update to that version but can't because of the errors.
Comment 4 jospezial 2015-09-02 20:58:06 UTC
I think gawk is the problem:

gawk
gawk: symbol lookup error: /lib64/libreadline.so.6: undefined symbol: UP

The error message is shown too when a patch is applied.

Example:
>>> Preparing source in /var/tmp/portage/sys-fs/reiser4progs-1.1.0/work/reiser4progs-1.1.0 ...
 * Applying reiser4progs-1.0.7-readline-6.3.patch ...
awk: symbol lookup error: /lib64/libreadline.so.6: undefined symbol: UP
 [ ok ]
>>> Source prepared.
Comment 5 SpanKY gentoo-dev 2015-09-02 21:16:52 UTC
readline is supposed to be linked against ncurses:
$ scanelf -qn /lib64/libreadline.so.6
libncurses.so.6,libc.so.6  /lib64/libreadline.so.6

and ncurses provides the UP symbol:
$ readelf -sW /lib64/libncurses.so.6 | grep UP
   262: 000000000025c690     8 OBJECT  GLOBAL DEFAULT   23 UP

figure out where it's broken on your system
Comment 6 jospezial 2015-09-03 01:06:38 UTC
I fixed it for me with /usr/bin/gawk from stage3.