I'm trying to emerge apache and php. Comilation fails: * The following 6 packages have failed to build or install: * * ('ebuild', '/', 'dev-libs/libmcrypt-2.5.8-r1', 'merge'), Log file: * '/var/log/portage/dev-libs:libmcrypt-2.5.8-r1:20100415-080344.log' * ('ebuild', '/', 'dev-lang/php-5.2.13', 'merge') * ('ebuild', '/', 'media-libs/t1lib-5.1.2', 'merge'), Log file: * '/var/log/portage/media-libs:t1lib-5.1.2:20100415-080640.log' * ('ebuild', '/', 'media-libs/libpng-1.2.40', 'merge'), Log file: * '/var/log/portage/media-libs:libpng-1.2.40:20100415-081030.log' * ('ebuild', '/', 'media-libs/freetype-2.3.11', 'merge'), Log file: * '/var/log/portage/media-libs:freetype-2.3.11:20100415-081215.log' * ('ebuild', '/', 'net-analyzer/net-snmp-5.4.2.1-r1', 'merge'), Log file: * '/var/log/portage/net-analyzer:net-snmp-5.4.2.1-r1:20100415-083516.log' With FEATURES='-distcc' compilation success. P.S. I had problems on other (not all) packages too. I'm sure, that distcc works, bekause gentoo-sources and some other packages compilation success. (sorry for my english)
Created attachment 227871 [details] Distcc server emerge --info
Created attachment 227873 [details] Distcc client emerge --info
Created attachment 227875 [details] dev-libs:libmcrypt build log
Created attachment 227877 [details] media-libs:freetype build log
Created attachment 227879 [details] media-libs:libpng build log
Created attachment 227881 [details] media-libs:t1lib build log
All packages fail due to the following type of error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/media-libs/freetype-2.3.11/work/freetype-2.3.11/objs/.libs/ftsystem.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /var/tmp/portage/media-libs/freetype-2.3.11/work/freetype-2.3.11/objs/.libs/ftsystem.o: could not read symbols: Bad value collect2: ld returned 1 exit status Logs also mention: This profile has not been tested thoroughly and is not considered to be a supported server profile at this time. For a supported server profile, please check the Hardened project (http://hardened.gentoo.org). This profile is merely a convenience for people who require a more minimal profile, yet are unable to use hardened due to restrictions in the software being used on the server. This profile should also be used if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this applies to you, then it doesn't and you should probably be using Hardened, instead.
Thanks, I will switch to hardened profile or choose a different one.
Changing profile didn't help. I have changed CFLAGS by adding "-fPIC" and have success compilation of these packages.
Sorry, i forgot to specify info about profile. I didn't try to use hardened profile (it seems not suitable for me). I'm using amd64/10.0 profile now