Summary: | upgrade of sys-apps/acl leaves orphaned /lib/libacl.a symlink | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] KDE | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | betelgeuse, chris.c.hogan, dev-portage, fcoiffie, grafgrimm77, graham, phajdan.jr, qa, zeekec |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | bleh |
Description
Juergen Rose
2010-01-10 09:31:58 UTC
Full build.log, thanks. The original file has almost 5 MB, the gzipped or bzip2ed file have between 50 and 90 KB, but there are considered as empty by http://bugs.gentoo.org and not accepted, at least if I select binary file (application/octet-stream) as mime type. Now I put build.log.bz2 on webserver, it should be accessible as http://141.89.194.22/~rose/build.log.bz2 . Regards Juergen Also could you post emerge --info Is 'emerge --info =kde-base/kdelibs-4.3.4' in the original posting not enough? It seems me that 'emerge kdelibs' with doc USE flag works at all my x86_64 systems but fails at i686 systems. At my last attempt to emerge kdelibs with doc USE flag at a i686 system I got a slightly different error: /usr/bin/i686-pc-linux-gnu-g++ -fPIC -O2 -march=pentium4 -fomit-frame-pointer -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-O1 -shared -Wl,-soname,libkio.so.5 -o ../lib/libkio.so.5.3.0 CMakeFiles/kio.dir/kio_automoc.o ... /usr/lib/qt4/libQtCore.so -lpthread -Wl,-rpath,/usr/lib/qt4:/var/tmp/portage/kde-base/kdelibs-4.3.4/work/kdelibs-4.3.4_build/lib: /usr/lib/gcc/i686-pc-linux-gnu/4.4.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. collect2: ld returned 1 exit status make[2]: *** [lib/libkio.so.5.3.0] Error 1 I get the ld warning on the same library and the compilation fails but I don't use the doc USE flag : [ebuild R ] kde-base/kdelibs-4.3.4 USE="acl alsa bzip2 fam handbook jpeg2k mmx nls openexr opengl semantic-desktop spell sse sse2 ssl -3dnow (-altivec) (-aqua) -bindist -debug -doc (-kdeenablefinal) (-kdeprefix) -kerberos -lzma -test -zeroconf" 0 kB I've solved my similar problem but it was a strange problem. As I got the following error : warning: creating a DT_TEXTREL in object. collect2: ld returned 1 exit status make[2]: *** [lib/libkio.so.5.3.0] Error I tried to find a library which wasn't PIC compiled with scanelf. But all my systems libraries are PIC. By looking the exact link command, I saw : * "-Wl,--fatal-warnings" option which explains the error because of a warning * "-Wl,-Bstatic -lacl -Wl,-Bdynamic" which seems to mean that libacl is statically linked, wheras all others are shared linked. Moreover, acl was updated from 2.2.47-r1 to 2.2.49 recently. After emerging the old sys-apps/acl-2.2.47-r1, the kdelibs compilation succeeded. I also tried to emerge again the acl-2.2.49 and this time, it still works. I tried to follow the recipe of comment 7: emerging acl-2.2.47-r1 and then kdelibs. But it did not help. I got the same error. Even "USE=-doc emerge -v1 kdelibs" fails with this error. It still fails at two i686 computers. root@vilm:/root(149)# emerge --info =kde-base/kdelibs-4.3.5 Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.30-gentoo-r5 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.30-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1 Timestamp of tree: Sun, 31 Jan 2010 04:00:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4-r1, 3.1.1-r1 dev-python/pycrypto: 2.1.0 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.0-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.4_p6-r1, 1.5, 1.6.3, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /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="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu" LDFLAGS="-Wl,-O1" LINGUAS="de fr" MAKEOPTS="-j1" 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="/var/lib/layman/java-overlay /var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/zugaina /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d a52 aac acl acpi administrator afs alsa ao aotuv apache2 asf aspell atlas audacious audiofile automount bash-completion beagle berkdb blas bluetooth boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphtft graphviz gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kdrive kerberos kexi kpathsea ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mailwrapper math matroska matrox mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl semantic-desktop server session slang slp smbclient smp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora thinkpad threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit win32codecs wmf wxwidgets x264 x86 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="mga vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS root@vilm:/root(150)# emerge -pqv =kde-base/kdelibs-4.3.5 [ebuild U ] kde-base/kdelibs-4.3.5 [4.3.4] USE="acl alsa bzip2 doc* fam handbook jpeg2k kerberos mmx nls openexr opengl semantic-desktop spell sse sse2 ssl -3dnow (-altivec) (-aqua) -bindist -debug (-kdeenablefinal) (-kdeprefix) -lzma -test -zeroconf" Nobody has a hint? http://bugs.gentoo.org/show_bug.cgi?id=302474#c13 I think the build should detect the presence of the symlink in pkg_pretend and tell the user to remove it if it's owned by any package. Thanks Petteri, I found this link in between. Removing it solved also my problem. (In reply to comment #12) > Thanks Petteri, I found this link in between. Removing it solved also my > problem. > It's merely a work around. The build should tell you what to do. *** Bug 302474 has been marked as a duplicate of this bug. *** Fix for this should go into sys-apps/acl's ebuild with revision bump, but we already agreed with Mike to leave it alone (by mail). Do as you wish... not a KDE bug. *** Bug 305611 has been marked as a duplicate of this bug. *** packages should not be responsible for deleting symlinks it no longer installs portage guys: is this a known bug that is (hopefully) now fixed ? (In reply to comment #17) > portage guys: is this a known bug that is (hopefully) now fixed ? According to bug 302474, comment #14 the file was an orphan created by gen_usr_ldscript. There's nothing portage can do about random orphans so it's best not to create them in the first place. the comment you refer to does not indicate anything was done outside of src_*. gen_usr_ldscript operates entirely within src_* which means any symlinks created by it were within the realm of portage tracking them. the only definition of "orphan" where it is acl's fault for the dangling symlink is if it created the symlink in a pkg_* function. afaik, this has never happened. Well, I've got no clue where the symlink came from. It's not a known portage issue, and not likely to be an unknown portage issue either. (In reply to comment #20) > Well, I've got no clue where the symlink came from. It's not a known portage > issue, and not likely to be an unknown portage issue either. > no way to reproduce, noone is able to explain where it came from, only some 5 users have hit this (and resolved it local) afaict, not a problem in new installs either we do the dummy libacl bump with checking kludge, or we don't i'd say we leave it alone like we already agreed at one point... What is the command to find orphaned symlinks on '/'? 'find / -type ...' ? I remember the script cruft. Perhaps it is time for a new find-bad-files-script... You can use portageq owners, like this: find / -type l -print | while read ; do portageq owners / "$REPLY" || echo "$REPLY" >> /tmp/orphans done My symlink was created years ago so it's hard to know what created it. I don't see a problem with detecting it in a revision bump of acl and asking users to nuke it. if logic is going to be added to the ebuild, it's going to autoremove a dead symlink portage-utils' qfile provides an --orphans option *** Bug 313559 has been marked as a duplicate of this bug. *** just adding a me to. Hit this upgrading gcc (emerge -e world). The symlink on my system seems a bit newer than others. ls -l /lib/libacl.a lrwxrwxrwx 1 root root 17 Jun 7 2009 /lib/libacl.a -> /usr/lib/libacl.a predicate_lexer.l: At top level: predicate_lexer.c:1217: warning: 'yyunput' defined but not used predicate_lexer.c:1261: warning: 'input' defined but not used [ 10%] Building C object solid/solid/CMakeFiles/solid.dir/predicate_parser.o [ 10%] Building C object kdecore/CMakeFiles/kdecore.dir/fakes.o Linking CXX shared library ../lib/libkdecore.so [ 10%] Building CXX object solid/solid/CMakeFiles/solid.dir/powermanagement.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. collect2: ld returned 1 exit status make[2]: *** [lib/libkdecore.so.5.4.0] Error 1 I'm hitting a similar syptom but there is no dangling symlinks here. I've had -pic in USE since may 2008 and this just became a problem when I tried (was forced) to update to kde4 Is it related or should I open another bug report ? (In reply to comment #27) Also hit this when upgrading gcc. Mine is as dead as a dried codfish: ls -l /lib/libacl.a lrwxrwxrwx 1 root root 17 Jun 7 2005 /lib/libacl.a -> /usr/lib/libacl.a QA: Please voice your opinion. I think we should do something to stop people from hitting this. For example a sys-apps/acl revision bump detecting it and telling people to remove it. Created attachment 239299 [details, diff]
bleh
patch
well, it's been 4 years and no one really cares, and no one has reported this any time recently, so let's just punt |