Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libgnutls.so.26: cannot open shared object file: [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Skippy204
Guru
Guru


Joined: 09 May 2008
Posts: 339
Location: Colorado, USA

PostPosted: Fri Oct 07, 2011 12:13 am    Post subject: libgnutls.so.26: cannot open shared object file: [solved] Reply with quote

Code:

>>> Emerging (1 of 43) app-pda/libplist-1.4
 * libplist-1.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking libplist-1.4.tar.bz2 to /home/portage-tmp/portage/app-pda/libplist-1.4/work
>>> Source unpacked in /home/portage-tmp/portage/app-pda/libplist-1.4/work
>>> Preparing source in /home/portage-tmp/portage/app-pda/libplist-1.4/work/libplist-1.4 ...
 * Applying libplist-1.4-gcc46.patch ...                                                                                                 [ ok ]
>>> Source prepared.
>>> Configuring source in /home/portage-tmp/portage/app-pda/libplist-1.4/work/libplist-1.4 ...
>>> Working in BUILD_DIR: "/home/portage-tmp/portage/app-pda/libplist-1.4/work/libplist-1.4_build"
cmake --no-warn-unused-cli -C /home/portage-tmp/portage/app-pda/libplist-1.4/temp/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON -DENABLE_python=OFF -DENABLE_PYTHON=OFF -DENABLE_Python=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/home/portage-tmp/portage/app-pda/libplist-1.4/temp/gentoo_rules.cmake  /home/portage-tmp/portage/app-pda/libplist-1.4/work/libplist-1.4
cmake: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
 * ERROR: app-pda/libplist-1.4 failed (configure phase):
 *   cmake failed



I'm getting this with a number of packages. What has not fixed it so far is

Code:
revdep-rebuild


Code:
lafilefixer --justfixit


Code:
emerge -e world
eventually fails due to this very error and can't keep going.

Code:
emerge -1 gnutls


Suggestions please?

Edit: specifically, gnutls-3.0.3
That might help...


Last edited by Skippy204 on Thu Oct 27, 2011 8:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Oct 07, 2011 12:33 am    Post subject: Reply with quote

Looks like the cmake binary itself is what requires libgnutls.so.26, which on my system is linked to that lib via libcurl.so.4, check this with `ldd /usr/bin/cmake /usr/lib/libcurl.so.4`, and if they both report "libgnutls.so.26 => not found", then `emerge -1 curl` should fix it.

I may be totally off base though, and it doesn't explan why revdep-rebuild didn't catch it, so first I'd suggest `rm /var/cache/revdep-rebuild/*` and then seeing what (if anything) `revdep-rebuild -p` reports.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Skippy204
Guru
Guru


Joined: 09 May 2008
Posts: 339
Location: Colorado, USA

PostPosted: Fri Oct 07, 2011 1:20 am    Post subject: Reply with quote

Yes, I tried that ... that being emerge -1 curl

Code:
ipe  -c -o nonblock.o `test -f '../lib/nonblock.c' || echo './'`../lib/nonblock.c
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -Os -march=x86-64 -pipe   -Wl,-O1 -Wl,--as-needed -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o os-specific.o xattr.o strtoofft.o strdup.o rawstr.o nonblock.o  ../lib/libcurl.la -lrt -lz
libtool: link: x86_64-pc-linux-gnu-gcc -Os -march=x86-64 -pipe -Wl,-O1 -Wl,--as-needed -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o os-specific.o xattr.o strtoofft.o strdup.o rawstr.o nonblock.o  ../lib/.libs/libcurl.so /usr/lib64/libgcrypt.so -lgpg-error -lgnutls -lrt -lz
../lib/.libs/libcurl.so: undefined reference to `gnutls_transport_set_lowat'
collect2: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/home/portage-tmp/portage/net-misc/curl-7.22.0/work/curl-7.22.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/portage-tmp/portage/net-misc/curl-7.22.0/work/curl-7.22.0/src'
make: *** [all-recursive] Error 1
 * ERROR: net-misc/curl-7.22.0 failed (compile phase):
 *   emake failed


And my revdep-rebuild cache was cleared. I always run revdep-rebuild with -iv ... still, that was good to check.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Oct 07, 2011 2:21 am    Post subject: Reply with quote

I wonder, could gnutls 3 have change the API, being a major update?
That could explain this, but a quick look on bgo didn't reveal anything similar which I'd expect if it did...

Anyways, I suggest disabling the gnutls USE for net-misc/curl, as it only really needs one of openssl gnuls or ssl anyways, that should at least get you past this.

The fact that revdep-rebuild didn't reveal this breakage is bothersome though, do both cmake and curl fail to execute on the command line because of this missing lib?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Skippy204
Guru
Guru


Joined: 09 May 2008
Posts: 339
Location: Colorado, USA

PostPosted: Fri Oct 07, 2011 2:27 am    Post subject: Reply with quote

Argh, USE flags.... Never thought of that. I will try your suggestion.

Yes, both curl and cmake are failing.

Code:


Thu Oct 06 20:23
  ~
 root # cmake
cmake: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
Thu Oct 06 20:23
  ~
 root # curl
curl: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
Thu Oct 06 20:23



As far as I could figure out it seemed to be a circular problem.... and I didn't see a way out. I'm trying '-gnutls' now. Will report back.
Back to top
View user's profile Send private message
Skippy204
Guru
Guru


Joined: 09 May 2008
Posts: 339
Location: Colorado, USA

PostPosted: Fri Oct 07, 2011 3:26 pm    Post subject: Reply with quote

Changing the use flag has gotten me past that point.

Still a few crashes when upgrading the world, but I don't think they are related.

Once I know for sure what's up I'll follow up more.

Thanks for pointing out what I should have thought about.
Back to top
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Fri Nov 09, 2012 5:30 am    Post subject: Reply with quote

I'm having the same problem, I think...and now I can't rebuild or upgrade anything...

I've emerged curl and libgnutls, but still get this problem...please help...I'm stuck right now...

Code:
>>> Emerging (1 of 276) sys-apps/hwids-20121109
 * Fetching files in the background. To view fetch progress, run
 * `tail -f /var/log/emerge-fetch.log` in another terminal.
>>> Downloading 'http://distfiles.gentoo.org/distfiles/hwids-20121109.tar.gz'
wget: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
>>> Downloading 'https://github.com/gentoo/hwids/tarball/hwids-20121109'
wget: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
!!! Couldn't download 'hwids-20121109.tar.gz'. Aborting.
 * Fetch failed for 'sys-apps/hwids-20121109', Log file:
 *  '/var/tmp/portage/sys-apps/hwids-20121109/temp/build.log'

>>> Failed to emerge sys-apps/hwids-20121109, Log file:

>>>  '/var/tmp/portage/sys-apps/hwids-20121109/temp/build.log'

 * Messages for package sys-apps/hwids-20121109:

 * Fetch failed for 'sys-apps/hwids-20121109', Log file:
 *  '/var/tmp/portage/sys-apps/hwids-20121109/temp/build.log'
papapenguin ~ #


my emerge --info
Code:
papapenguin ~ # emerge --info
FEATURES variable contains unknown value(s): parse-eapi-ebuild-head
Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.16.0, 3.4.9-gentoo x86_64)
=================================================================
System uname: Linux-3.4.9-gentoo-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-50-with-gentoo-2.2
Timestamp of tree: Fri, 09 Nov 2012 05:00:01 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.3
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo proaudio
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-4.0.0.7-copyright skype-eula dlj-1.1 AdobeFlash-10.3 www-plugins/google-talkplugin Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse3 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/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="-march=native -msse3 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aim alsa amd64 apache2 apng berkdb bzip2 cairo caps cdb cddb cdinstall cdparanoia cdr cgi cgid cli consolekit cracklib crypt css cups curl cxx dbus declarative device-mapper dri dv dvb dvd dvdr eigen enca encode exif extras ffmpeg flac fontconfig fortran freetype ftp gd gdbm gif glib gmp gnutls gpm gsf gstreamer gtk gudev handbook hpcups hwdb iconv icu imap ipod ipv6 jabber jack jadetex java javascript jingle jpeg kdcraw kde kdepim kontact kpathsea ladspa laptop lcms mad matroska melt minizip mmx mng modules mp3 mpeg mplayer msn mso mssql mudflap multilib mysql mysqli ncurses nls nptl nsplugin nvidia objc ogg okular openexr opengl openmp openxr oscar pam pcmcia pcre pda pdf pdo perl php plasma png policykit ppds pppd python qt-static qt3support qt4 quicktime raw readline reports rss ruby scanner sdl secure-delete semantic-desktop session snmp source sox speex spell splitdebug sql sqlite3 sse sse2 ssl svg syslog tcpd theora threads tidy tiff timidity tools truetype udev unicode usb v4l v4l2 vcd video vorbis webkit wifi wv2 xine xinerama xml xmlwriter xslt xv yahoo zip 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="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

papapenguin ~ #

_________________
--------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------
Back to top
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Fri Nov 09, 2012 7:34 pm    Post subject: Reply with quote

I'm not sure if I should open up a new post due to this one's status as solved...please advise...
_________________
--------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------
Back to top
View user's profile Send private message
philmiv
n00b
n00b


Joined: 18 Jan 2011
Posts: 8

PostPosted: Fri Nov 16, 2012 7:48 pm    Post subject: Reply with quote

I have the same issue, but with gnutls-3.1.4

I broke my whole system and managed to get portage working by manually symlinking the new gnutls library as the missing libgnutls.so.26.

Please advise.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21489

PostPosted: Fri Nov 16, 2012 10:05 pm    Post subject: Reply with quote

philmiv wrote:
I have the same issue, but with gnutls-3.1.4

I broke my whole system and managed to get portage working by manually symlinking the new gnutls library as the missing libgnutls.so.26.

Please advise.
This is the wrong solution. It may work, but I suggest you fix the system properly and remove that symlink as soon as possible.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum