Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324519 - app-text/recode-3.6_p17-r1: symbol lookup error: /usr/lib/librecode.so.0: undefined symbol: program_name
Summary: app-text/recode-3.6_p17-r1: symbol lookup error: /usr/lib/librecode.so.0: und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 21:31 UTC by Martin von Gagern
Modified: 2010-10-21 10:38 UTC (History)
2 users (show)

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 Martin von Gagern 2010-06-17 21:31:37 UTC
I newly got this error today:

$ fortune
fortune: symbol lookup error: /usr/lib/librecode.so.0: undefined symbol: program_name
$ ldd -r /usr/bin/fortune 
undefined symbol: program_name	(/usr/lib/librecode.so.0)
	linux-vdso.so.1 =>  (0x00007fffa37c6000)
	librecode.so.0 => /usr/lib/librecode.so.0 (0x00007ff07d9d8000)
	libc.so.6 => /lib/libc.so.6 (0x0000003f17800000)
	/lib64/ld-linux-x86-64.so.2 (0x0000003f16200000)

If you can't reproduce this, let me know what lib supplies that symbol for you, so we can work out where the cause for this lies.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-06-17 22:24:44 UTC
emerge --info please 
Comment 2 Martin von Gagern 2010-06-19 06:48:34 UTC
(In reply to comment #1)
> emerge --info please 

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
 System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.0.1
Timestamp of tree: Sat, 19 Jun 2010 05:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash: 4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python: 2.4.6, 2.5.4-r4, 2.6.5-r2, 3.1.2-r3
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.1-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.4_p6-r1, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 3.3.6-r1, 3.4.6-r2, 4.1.2, 4.2.4-r1, 4.4.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
virtual/os-headers: 2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula googleearth AdobeFlash-10"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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=amdfam10 -O2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
LANG="de_DE.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en de en_US en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/generated /usr/portage/local/mvg /usr/portage/local/mvg-java /usr/portage/local/sunrise-enabled /usr/portage/local/bugfix /usr/portage/local/bump /usr/portage/local/kde-sunset"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 audiofile avahi bash-completion bcmath berkdb branding bzip2 c++ cairo cdda cdparanoia cdr chroot cli cracklib crypt css cups curl cxx dba dbus dhcp dri dts dv dvd dvdr emacs emboss encode escreen exif fam fastcgi ffmpeg fftw flac flatfile fortran ftp gcc-libffi gd gdbm gif gimp gnutls gphoto2 gpm graphviz gs gtk hal hbci iconv idn imagemagick ipv6 iso14755 ithreads jabber jack java jpeg jpeg2k kde kerberos kpathsea kvm ladspa latex lcms ldap leim libnotify lirc lm_sensors logrotate lzo mad maildir mhash mikmod mime mjpeg mmx mng modules mozxmlterm mp3 mp4 mpeg mpeg2 mplayer mudflap multilib mysql ncurses network nls nptl nptlonly nsplugin objc odbc ofx ogg openexr opengl openmp pam pango pcre pdf perl php plotutils png povray ppds pppd procmail python qt3support qt4 quicktime rdesktop readline recode reflection sasl scanner sdl session smime sndfile snmp sockets socks5 sox speex spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd threads thunderbird tiff tokenizer transcode translator truetype type1 udev unicode usb userlocales v4l v4l2 vhosts vorbis wmf x264 xanim xcb xcomposite xine xinerama xinetd xml xorg xprint xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="bt87x emu10k1x hda-intel usb-audio via82xx via82xx-modem" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="evdev joystick keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de en_US en_GB" LIRC_DEVICES="hauppauge" MISDN_CARDS="avmfritz" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau nv intel fbdev v4l vesa vga" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

app-text/recode-3.6_p17-r1 was built with the following:
USE="(multilib) nls" 
Comment 3 Martin von Gagern 2010-06-19 07:01:15 UTC
I can reproduce this issue with a new app-text/recode-3.6_p17-r1 build, while app-text/recode-3.6_p17 used to work fine. To see this for yourself, you can "ldd -r /usr/lib/librecode.so" without having to have fortune installed.

On a wild guess, I'd assume that this line here might be to blame:
cp lib/error.c lib/xstrdup.c lib/getopt.c lib/getopt1.c src/ || die ...
Comment 4 Martin von Gagern 2010-06-22 07:29:12 UTC
It's recode-3.6-ppc-macos-new.diff that's causing trouble. Changing that back to recode-3.6-ppc-macos.diff makes things work again for me, although I believe it might break things for ppc-macos, FreeBSD and Interix, according to ebuild comment.

Nevertheless, I'm not sure what problem the patch is supposed to fix, but I assume it might break more things than it actually fixes, at least as long as most Gentoo systems are Linux-based.

So if there is no immediate solution, either consider applying the patch conditionally, or dropping the patch together with the arches in question.
Comment 5 Fabian Groffen gentoo-dev 2010-10-21 10:38:48 UTC
It looks as if this entire patch isn't necessary any more for Darwin and Solaris at least.  I've dropped the entire mess, which should fix this bug.