The current flow-tools in portage builds fine by itself, but causes the compilation of dev-perl/Cflow-1.051-r1 to fail on AMD64 with the message: Running Mkbootstrap for Cflow () chmod 644 Cflow.bs rm -f blib/arch/auto/Cflow/Cflow.so x86_64-pc-linux-gnu-gcc -shared -L/usr/local/lib64 Cflow.o -o blib/arch/auto/Cflow/Cflow.so \ -L/var/tmp/portage/dev-perl/Cflow-1.051-r1/work/flow-tools-0.68/contrib/Cflow-1.051/../../lib -lnsl -lft -lz \ /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../lib64/libft.a(ftio.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../lib64/libft.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [blib/arch/auto/Cflow/Cflow.so] Error 1 If however I rebuild flow-tools with -fPIC option to GCC, then Cflow then also builds correctly. Reproducible: Always Steps to Reproduce: 1. emerge Cflow on AMD64 2. 3. tornado tmp # emerge --info Portage 2.1.3.12 (default-linux/amd64/2007.0/no-multilib, gcc-4.2.0, glibc-2.6.1-r0, 2.6.23-rc8-mm2 x86_64) ================================================================= System uname: 2.6.23-rc8-mm2 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz Timestamp of tree: Sat, 06 Oct 2007 08:30:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.6.3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18 sys-devel/gcc-config: 1.4.0-r2 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -mtune=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=native -mtune=native" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl acpi amd64 apache2 arj auth bash-completion bcmath berkdb bitmap-fonts bzip2 cdparanoia cgi clamav clamd cli compress cracklib crypt cups curl dbm dhcp dnotify fortran gd gdbm geoip gif gmp gpm gtk2 gzip hardened hash http httpd iconv imagemagick imap imlib innodb jpeg lha libnotify libwww lm_sensors logrotate logwatch lzo mail maildir mcal md5sum memcache mgetty mhash mime mimencode mmap mmx mmxext modperl mpm-worker mudflap mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netpbm nls nosendmail nptl nptlonly ntp openmp openssl pam pam_timestamp patch pcap pcre pear-db perl perlsuid php png posix postfix pppd python rar readline reflection reiserfs rrdcgi rrdtool rtc samba sasl savedconfig screen sendfile sensord serial session sieve snmp spamassassin spell spl sqlite3 sse sse2 ssl startup-notification subject-rewrite suidcheck sysfs syslog sysvipc tcpd tcpwrapper tftp threads tiff timestats transparent-proxy truetype-fonts type1-fonts unzip ups utempter vhosts virus-scan wireshark xinetd 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS tornado tmp #
Errr... dev-perl/Cflow is completely stupid when trying to link libft statically into a shared object, this is NOT a flow-tools bug.
For a solution have a look at Bug-ID 211762
*** Bug 211762 has been marked as a duplicate of this bug. ***
Created attachment 149079 [details] Cflow-1.051-r1.build.log Cflow-1.051-r1.build.log
Created attachment 149081 [details] portage.info_2008.04.06.01:05:12 portage.info_2008.04.06.01:05:12
This problem could be easily eliminated by providing a fPIC USE flag for this package (and any others having the same problem). Shingoshi
Reassigning back to herd since Benjamin has retired as a Gentoo developer (#89719).
I tried doing what I could to fix this but nothing worked. The only thing that depends on Cflow is net-analyzer/FlowScan and that doesn't have any amd64 keywords. As such, I removed the ~amd64 keyword from Cflow. Please add us back to CC when there is an appropriate fix available and we will add the ~amd64 keyword back to the ebuild. Thanks.
Fails equally badly on x86. ~amd64 should not have been removed. This package should simply DEPEND on flow-tools and a very simple ebuild that doesn't cry "QA failure" can fix it easily. There's -1.053 out there since 2005 that I will commit shortly.
Might take a while longer. :)
dev-perl/Cflow was removed from the tree