Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406025 - net-misc/remmina-1.0.0-r1: undefined symbol gnutls_global_init in
Summary: net-misc/remmina-1.0.0-r1: undefined symbol gnutls_global_init in remmina-plu...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
Depends on:
Reported: 2012-02-27 11:58 UTC by Julien Sanchez
Modified: 2012-03-18 23:11 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Julien Sanchez archtester 2012-02-27 11:58:32 UTC
remmina fails on my system when connection to a VNC server:

$ remmina
Remmina plugin XDMCP (type=Protocol) registered.
Remmina plugin VNC (type=Protocol) registered.
Remmina plugin VNCI (type=Protocol) registered.
Remmina plugin GKEYRING (type=Secret) registered.
remmina: symbol lookup error: /usr/lib64/remmina/plugins/ undefined symbol: gnutls_global_init

Failure related to --as-needed and stripping?

$ emerge --info remmina
Portage 2.2.0_alpha89 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo-r2 x86_64)
                        System Settings
System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Mon, 27 Feb 2012 04:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.5, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo sunrise vmware lim gentooboontoo enlightenment betagarden
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1 googleearth google-talkplugin Oracle-BCLA-JavaSE PUEL skype-eula"
CFLAGS="-O2 -pipe -march=native -ggdb"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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="-O2 -pipe -march=native -ggdb"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles installsources news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/vmware /var/lib/layman/lim /var/lib/layman/gentooboontoo /var/lib/layman/enlightenment /var/lib/layman/betagarden"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gdbm gdu gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv ipv6 jpeg lcms libnotify mad mmx mng modules mono mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support qt4 readline samba sdl session smp socialweb spell sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype udev unicode usb v4l2 vorbis vpx wav x264 xcb xinerama xml xorg xulrunner xv xvid zlib" 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" 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 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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm" 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 ubx" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"

                        Package Settings

net-misc/remmina-1.0.0-r1 was built with the following:
USE="crypt gnome-keyring gtk3 (multilib) nls -avahi (-ayatana) -debug -freerdp -ssh -telepathy -vte"
Comment 1 Mike Gilbert gentoo-dev 2012-02-27 16:05:01 UTC
Huh... I wonder where that symbol reference is coming from. I'll try to reproduce it myself this evening.
Comment 2 Julien Sanchez archtester 2012-03-01 12:55:27 UTC
It seems to come from bundled libvncserver (remmina-plugins/vnc/libvncserver/libvncclient/tls.c) because LIBVNCSERVER_WITH_CLIENT_TLS is defined.
LIBVNCSERVER_WITH_CLIENT_TLS is defined by libvncserver cmake file because I have gnutls installed.

I don't know why is not linked to it (perhaps some --as-needed issue?).I would need some hints to keep on tracking down the issue.
Comment 3 Mike Gilbert gentoo-dev 2012-03-01 16:34:59 UTC
Heh... I was testing with the live ebuild (remmina-9999). Upstream dropped the bundled copy of libvncserver after 1.0.0 was released.

It looks like the build system never specifies ${GNUTLS_LIBRARIES} via target_link_libraries(). Have a look at remmina-plugins/vnc/libvncserver/CMakeLists.txt.

Nothing to do with --as-needed, just a faulty build system.

The bigger issue is the automagic dependency here; I really would rather use the system libvncserver so that we don't have to worry about that.
Comment 4 Julien Sanchez archtester 2012-03-02 20:50:18 UTC
Thanks a lot for the explanation Mike.
Comment 5 Mike Gilbert gentoo-dev 2012-03-18 23:11:59 UTC
Ok, I added a snapshot from upstream.

This should be fixed in remmina-1.0.0_p20120309.