View previous topic :: View next topic |
Author |
Message |
mr_elch Apprentice
Joined: 18 Jun 2004 Posts: 170
|
Posted: Wed Oct 04, 2006 8:33 pm Post subject: Unable to determine library providing dlopen [solved] |
|
|
Hallo zusammen,
ich habe auf einem Gentoo Rechner den gcc von 3.4.5 auf 4.1.1 geupdatet und bin jetzt dabei das system neu zu bauen. Dabei schlagen diverse Pakete fehl, wegen Problemen mit "dlopen".
Zum Beispiel baselayout oder gettext (gleicher Fehler):
Code: | i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -fomit-frame-pointer -DLIBDIR=\"lib\" -c -o rs-misc.o core/misc.c
i686-pc-linux-gnu-gcc -o runscript runscript.o rs-misc.o -ldl
runscript.o: In function `setup_selinux':
runscript.c:(.text+0xb6d): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/i686-pc-linux-gnu/gcc-bin/4.1.1/../../../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libdl.a(dlopen.o): In function `dlopen':
: undefined reference to `__dlopen'
/usr/i686-pc-linux-gnu/gcc-bin/4.1.1/../../../lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libdl.a(dlsym.o): In function `dlsym':
: undefined reference to `__dlsym'
collect2: ld gab 1 als Ende-Status zurück
make: *** [runscript] Fehler 1
make: Leaving directory `/var/tmp/portage/baselayout-1.12.5-r2/work/baselayout-1.12.5/src'
!!! ERROR: sys-apps/baselayout-1.12.5-r2 failed. |
Was bedeutet Code: | Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking |
im Klartext für mich?
Bei einem anderen Paket bekomme ich einen ähnlichen Fehler:
Code: | configure: error: Unable to determine library providing dlopen |
Hat jemand nen Tipp für mich, ich weiß momentan echt nicht weiter
Code: | #emerge --info
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.14
Last Sync: Thu, 28 Sep 2006 13:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python: 2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 berkdb bitmap-fonts cli crypt dlloader dri elibc_glibc fortran gdbm gpm imap input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ maildir mysql ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection sasl session spl ssl tcpd tiff truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xml xorg zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS[quote][/quote] |
Last edited by mr_elch on Thu Oct 05, 2006 11:10 am; edited 1 time in total |
|
Back to top |
|
|
kurt Guru
Joined: 25 Aug 2003 Posts: 403 Location: Arni (AG); CH
|
Posted: Wed Oct 04, 2006 8:41 pm Post subject: |
|
|
hallo,
warscheinlich hilft ein
gruss
kurt |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Wed Oct 04, 2006 8:45 pm Post subject: Re: Unable to determine library providing dlopen |
|
|
mr_elch wrote: |
[...]
Was bedeutet Code: | Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking |
im Klartext für mich?
[...]
|
Heißt das du das Programm nur auf Systemen ausführen kannst, auf der die gleiche glibc installiert ist wie auf dem aktuellen System.
Cheers,
Sino _________________ Help to answer the unanswered |
|
Back to top |
|
|
mr_elch Apprentice
Joined: 18 Jun 2004 Posts: 170
|
Posted: Wed Oct 04, 2006 9:34 pm Post subject: |
|
|
Vielen Dank schonmal für die Antworten!
hat leider nicht geholfen, gleicher Fehler. Immerhin läßt sich das Paket problemlos emergen
Quote: | Heißt das du das Programm nur auf Systemen ausführen kannst, auf der die gleiche glibc installiert ist wie auf dem aktuellen System.
|
Ich hab lediglich die glibc geupdatet. Hört sich an, als würden die Pakete noch die alte glibc verlangen |
|
Back to top |
|
|
kurt Guru
Joined: 25 Aug 2003 Posts: 403 Location: Arni (AG); CH
|
Posted: Wed Oct 04, 2006 10:24 pm Post subject: |
|
|
hallo,
hast du die glibc nach dem gcc geupdatet? wenn ja dan einfach nochmal ein emerge gcc binutils -1 und ein emerge system -e
gruss
kurt |
|
Back to top |
|
|
mr_elch Apprentice
Joined: 18 Jun 2004 Posts: 170
|
Posted: Thu Oct 05, 2006 8:57 am Post subject: |
|
|
OK, ich hab jetzt die glibc, danach den gcc und binutils nochmal neu geemerged. Beim anschließenden emerge system bricht er nun beim Paket ncurses ab:
Code: | configure: error: Cannot find dlsym function |
gettext und baselayout brechen nach wie vor mit dem gleichen Fehler ab (s.o.). Für weitere Vorschläge wäre ich sehr dankbar! |
|
Back to top |
|
|
kurt Guru
Joined: 25 Aug 2003 Posts: 403 Location: Arni (AG); CH
|
|
Back to top |
|
|
mr_elch Apprentice
Joined: 18 Jun 2004 Posts: 170
|
Posted: Thu Oct 05, 2006 11:07 am Post subject: |
|
|
Kurt, die Links in Deinem letzten Posting waren mehr als hilfreich! Ich hab vorübergehend wegen Platzproblemen /usr auf eine andere Partition verschoben und durch einen Symlink ersetzt. Bei anderen Distris gab das bisher auch nie Probleme. Gentoo legt allerdings unter /usr/lib teilweise nur Symlinks an, die dann nicht mehr funktionieren
Bug 112413 - Moving/Symlinking "/usr/lib" breaks Gentoo Linux: https://bugs.gentoo.org/show_bug.cgi?id=112413
Hab /usr jetzt wieder zurück kopiert und schon gehts wieder
Super! Vielen Dank! |
|
Back to top |
|
|
|