* [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) @ 2006-07-13 7:43 Arnau Bria 2006-07-13 9:22 ` Arnau Bria 2006-07-13 18:12 ` Richard Fish 0 siblings, 2 replies; 8+ messages in thread From: Arnau Bria @ 2006-07-13 7:43 UTC (permalink / raw To: gentoo-user Hi, this morning my akregator didn't want to weak up. So, I launched it from konsole and as I saw no output, I decide to rebuild it (I've been playing around with some use flags, adding, removing...) #eix akregator * kde-base/akregator Available versions: 3.4.3 3.5.2 ~3.5.3 Installed: 3.4.3 3.5.2 (Why do I have 2 akregators?) Then, after akregator compilation, I was looking for some warning and I found a message that toke me to http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml. I do not understand much from that site, but I did a: $ scanelf -lpqt |wc -l 114 and, as the howto says: "Ideally, scanelf should not display anything, but on an x86 system, this is rarely the case." I thought that 114 are quite enough to ask some one with more knowledge if my system is completly broken or not. Anyone could explain me why do I have 114 "broken files"? Cheers! -- Arnau Bria http://blog.emergetux.net La vida es una aplastante derrota tras otra hasta que acabas deseando que se muera Flanders. ~Homer J. Simpson~ -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) 2006-07-13 7:43 [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) Arnau Bria @ 2006-07-13 9:22 ` Arnau Bria 2006-07-13 18:12 ` Richard Fish 1 sibling, 0 replies; 8+ messages in thread From: Arnau Bria @ 2006-07-13 9:22 UTC (permalink / raw To: gentoo-user On Thu, 13 Jul 2006 09:43:03 +0200 Arnau Bria wrote: > #eix akregator > * kde-base/akregator > Available versions: 3.4.3 3.5.2 ~3.5.3 > Installed: 3.4.3 3.5.2 > > (Why do I have 2 akregators?) Ok, I did not notice that it refers to kde-base... -- Arnau Bria http://blog.emergetux.net La vida es una aplastante derrota tras otra hasta que acabas deseando que se muera Flanders. ~Homer J. Simpson~ -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) 2006-07-13 7:43 [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) Arnau Bria 2006-07-13 9:22 ` Arnau Bria @ 2006-07-13 18:12 ` Richard Fish 2006-07-14 7:57 ` Arnau Bria 1 sibling, 1 reply; 8+ messages in thread From: Richard Fish @ 2006-07-13 18:12 UTC (permalink / raw To: gentoo-user On 7/13/06, Arnau Bria <arnau@emergetux.net> wrote: > Then, after akregator compilation, I was looking for some warning and I > found a message that toke me to I suggest to post the actual warning message[s], and your emerge --info output. -Richard -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) 2006-07-13 18:12 ` Richard Fish @ 2006-07-14 7:57 ` Arnau Bria 2006-07-14 8:30 ` Richard Fish 0 siblings, 1 reply; 8+ messages in thread From: Arnau Bria @ 2006-07-14 7:57 UTC (permalink / raw To: gentoo-user On Thu, 13 Jul 2006 11:12:43 -0700 Richard Fish wrote: > On 7/13/06, Arnau Bria <arnau@emergetux.net> wrote: > > Then, after akregator compilation, I was looking for some warning > > and I found a message that toke me to > > I suggest to post the actual warning message[s], and your emerge > --info output. Here we go! (sorry for not wrapping the text, but I tough I could be more readable in this format) # emerge --info Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686) ================================================================= System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.6.15 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mtune=i686" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/" 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.europe.gentoo.org/gentoo-portage" USE="x86 X alsa amarok apache2 apm avi berkdb bitmap-fonts ccache cdr cgi clamav clamd crypt cups dlloader dri encode firefox gdbm gpm gstreamer gtk2 imap imlib jpeg kde kerberosi libwww mad mikmod motif mp3 mpeg mpeg2 mplayer ncurses nls nptl ogg opengl pcre pdflib perl png python qt qt3 qt4 readline sasl sdl session spamassassin spell spl ssl tcpd truetype truetype-fonts type1-fonts udev userlocales vorbis win32codecs wmv xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_i810 video_cards_i915 video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS And here's akregator en lines from compilation... as it doesn't work, I looked for any note in the output and found this: >>> Completed installing akregator-3.5.2 into /var/tmp/portage/akregator-3.5.2/image/ man: strip: i686-pc-linux-gnu-strip --strip-unneeded usr/kde/3.5/lib/libakregatorprivate.so usr/kde/3.5/lib/kde3/libakregatorpart.so usr/kde/3.5/lib/kde3/libakregator_mk4storage_plugin.so usr/kde/3.5/lib/kde3/libkontact_akregator.so usr/kde/3.5/bin/akregator QA Notice: the following files contain runtime text relocations Text relocations force the dynamic linker to perform extra work at startup, waste system resources, and may pose a security risk. On some architectures, the code may not even function properly, if at all. For more information, see http://hardened.gentoo.org/pic-fix-guide.xml Please include this file in your report: /var/tmp/portage/akregator-3.5.2/temp/scanelf-textrel.log "TEXTREL usr/kde/3.5/lib/libakregatorprivate.so" "TEXTREL usr/kde/3.5/lib/kde3/libakregatorpart.so" "TEXTREL usr/kde/3.5/lib/kde3/libakregator_mk4storage_plugin.so" "TEXTREL usr/kde/3.5/lib/kde3/libkontact_akregator.so" >>> Merging kde-base/akregator-3.5.2 to / --- /usr/ --- /usr/kde/ --- /usr/kde/3.5/ --- /usr/kde/3.5/share/ [...] >>> Original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... >>> kde-base/akregator-3.5.2 merged. >>> No packages selected for removal by clean. >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. > -Richard Thanks! -- Arnau Bria http://blog.emergetux.net La vida es una aplastante derrota tras otra hasta que acabas deseando que se muera Flanders. ~Homer J. Simpson~ -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) 2006-07-14 7:57 ` Arnau Bria @ 2006-07-14 8:30 ` Richard Fish 2006-07-14 9:18 ` Arnau Bria 2006-07-14 11:03 ` Graham Murray 0 siblings, 2 replies; 8+ messages in thread From: Richard Fish @ 2006-07-14 8:30 UTC (permalink / raw To: gentoo-user On 7/14/06, Arnau Bria <arnau@emergetux.net> wrote: > CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mtune=i686" > CXXFLAGS="-O2 -mcpu=i686 -pipe" Hrm, these are really not sane. -march is telling gcc to build C code that will only run on a p4, and then you have -mtune specifying to run on everything back to a pentium-II. I *think* -march takes precedence here.... But for C++ code, you are specifying that should run on any P-II. So C and C++ code is being compiled in very different ways on your system. This is bad. I have no idea whether these are causing your problems with akregator or not however... BTW, the TEXTREL messages are directly attributable to your CXXFLAGS. I built akregator with the same flags, and get the same messages. So what I recommend you set in /etc/make.conf is: CFLAGS="-march=pentium4 -O2 -pipe" CXXFLAGS="${CFLAGS}" Then re-merge akregator. If you still have trouble, try renaming ~/.kde3.5 to ~/.kde3.5.old and start it. If that works then some akregator configuration in .kde3.5.old is responsible. Finally, may want to recompile your entire system with the fixed compiler flags. This can usually be done with an "emerge -e world", but this will take a long time! You can also grep the CFLAGS/CXXFLAGS files in the /var/db/pkg/ database to see what packages you merged with particular flags. For example: "grep -r --include=CXXFLAGS -- -mcpu=i686 /var/db/pkg/". -Richard -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) 2006-07-14 8:30 ` Richard Fish @ 2006-07-14 9:18 ` Arnau Bria 2006-07-14 11:03 ` Graham Murray 1 sibling, 0 replies; 8+ messages in thread From: Arnau Bria @ 2006-07-14 9:18 UTC (permalink / raw To: gentoo-user On Fri, 14 Jul 2006 01:30:49 -0700 Richard Fish wrote: > On 7/14/06, Arnau Bria <arnau@emergetux.net> wrote: > > CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mtune=i686" > > CXXFLAGS="-O2 -mcpu=i686 -pipe" > > Hrm, these are really not sane. -march is telling gcc to build C code > that will only run on a p4, and then you have -mtune specifying to run > on everything back to a pentium-II. I *think* -march takes precedence > here.... > > But for C++ code, you are specifying that should run on any P-II. So > C and C++ code is being compiled in very different ways on your > system. This is bad. I have no idea whether these are causing your > problems with akregator or not however... > > BTW, the TEXTREL messages are directly attributable to your CXXFLAGS. > I built akregator with the same flags, and get the same messages. > > So what I recommend you set in /etc/make.conf is: > > CFLAGS="-march=pentium4 -O2 -pipe" > CXXFLAGS="${CFLAGS}" Mmm... I don't know from where I got this FLAGS, but I'm quite sure I used some program/script from portage... Anyway, I did the mod, and remerged akregator... It still doesn't work. > Then re-merge akregator. If you still have trouble, try renaming > ~/.kde3.5 to ~/.kde3.5.old and start it. If that works then some > akregator configuration in .kde3.5.old is responsible. Well, I moved /home/arnau/.kde/share/apps/akregator to .old. I thinks this is enough, isn't it? It did not work, neither. > Finally, may want to recompile your entire system with the fixed > compiler flags. This can usually be done with an "emerge -e world", > but this will take a long time! This is an option I considered as I saw 114 packages "broken"... now, with CFLAGS mod, I also think this is a good option. And, well, I could let my system recompiling all the weekend... > You can also grep the CFLAGS/CXXFLAGS > files in the /var/db/pkg/ database to see what packages you merged > with particular flags. For example: "grep -r --include=CXXFLAGS -- > -mcpu=i686 /var/db/pkg/". # grep -r --include=CXXFLAGS -- -mcpu=i686 /var/db/pkg/|wc -l 432 some x11-libs, lot of perl, kde-base... etc... Defintely, I'll recompile my system. > -Richard Thanks for your time, Cheers! -- Arnau Bria http://blog.emergetux.net La vida es una aplastante derrota tras otra hasta que acabas deseando que se muera Flanders. ~Homer J. Simpson~ -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) 2006-07-14 8:30 ` Richard Fish 2006-07-14 9:18 ` Arnau Bria @ 2006-07-14 11:03 ` Graham Murray 2006-07-14 16:43 ` Richard Fish 1 sibling, 1 reply; 8+ messages in thread From: Graham Murray @ 2006-07-14 11:03 UTC (permalink / raw To: gentoo-user "Richard Fish" <bigfish@asmallpond.org> writes: > Hrm, these are really not sane. -march is telling gcc to build C code > that will only run on a p4, and then you have -mtune specifying to run > on everything back to a pentium-II. I *think* -march takes precedence > here.... Does it? I would have thought that having both -march and -mtune would be valid, but normally would be other way round by having, for example, '-march=i686 -mtune=pentium4' to build code which will run on a pentium-II or later but optimised for running on a P4. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) 2006-07-14 11:03 ` Graham Murray @ 2006-07-14 16:43 ` Richard Fish 0 siblings, 0 replies; 8+ messages in thread From: Richard Fish @ 2006-07-14 16:43 UTC (permalink / raw To: gentoo-user On 7/14/06, Graham Murray <graham@gmurray.org.uk> wrote: > "Richard Fish" <bigfish@asmallpond.org> writes: > > > Hrm, these are really not sane. -march is telling gcc to build C code > > that will only run on a p4, and then you have -mtune specifying to run > > on everything back to a pentium-II. I *think* -march takes precedence > > here.... > > Does it? I would have thought that having both -march and -mtune would > be valid, but normally would be other way round by having, for > example, '-march=i686 -mtune=pentium4' to build code which will run on > a pentium-II or later but optimised for running on a P4. Right, this is the normal case. But in some sense, you could also consider -march to have precedence here. If it ever needs to make a choice between generating optimized code for a p4, or code that will run on a P-II, gcc will choose the P-II compatible code. But the fact is that I am not sure what -march=pentium4 -mtune=i686 would generate... -Richard -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-07-14 17:10 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-07-13 7:43 [gentoo-user] Locate and Fix .text Relocations (TEXTRELs) Arnau Bria 2006-07-13 9:22 ` Arnau Bria 2006-07-13 18:12 ` Richard Fish 2006-07-14 7:57 ` Arnau Bria 2006-07-14 8:30 ` Richard Fish 2006-07-14 9:18 ` Arnau Bria 2006-07-14 11:03 ` Graham Murray 2006-07-14 16:43 ` Richard Fish
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox