Compiling hashit-0.9.4 on x86_64 complains that -fPIC should be enabled. Adding -fPIC to the Makefile solves this and emerge continues without problems. Also since this is a shared library it should have -DREENTRANT set as we had for 0.9.3, quite unsure how to set these flags in the 0.9.4 build system however since the ./0 script does not accept the flags used in previous versions.
Please, reopen with actual errors and emerge --info output.
Sorry, here is the error: >>> Compiling source in /var/tmp/portage/dev-libs/hashit-0.9.4/work/hashit-0.9.4 ... DEPENDENCIES_OUTPUT="src/hashit.d src/hashit.o" gcc -I. -DNDEBUG -O2 -DOBJNAME=\"hashit\" -c -o src/hashit.o src/hashit.c DEPENDENCIES_OUTPUT="src/hfunctions.d src/hfunctions.o" gcc -I. -DNDEBUG -O2 -DOBJNAME=\"hfunctions\" -c -o src/hfunctions.o src/hfunctions.c gcc -shared -Xlinker -soname -Xlinker libhashit.so.1 -o src/libhashit.so.1.0 src/hashit.o src/hfunctions.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: src/hashit.o: relocation R_X86_64_32S against `ch_ops' can not be used when making a shared object; recompile with -fPIC src/hashit.o: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [src/libhashit.so.1.0] Error 1 !!! ERROR: dev-libs/hashit-0.9.4 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 1286: Called src_compile hashit-0.9.4.ebuild, line 21: Called die !!! emake failed and emerge --info: Portage 2.1.2-r9 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r6 x86_64) ================================================================= System uname: 2.6.18-gentoo-r6 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 19 Feb 2007 02:00:01 +0000 dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo" LC_ALL="sv_SE.utf8" LINGUAS="sv" 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" SYNC="rsync://217.16.192.245/gentoo-portage" USE="X aac alsa amd64 berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr eds emboss encode esd expat fam filepicker firefox flac fortran gdbm gif glitz gstreamer gtk gtk2 hal iconv isdnlog java jpeg kde kdeenablefinal ldap libg++ logrotate mad mailwrapper midi mikmod mng mozbranding mozsvg mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdf perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl svg tcpd theora truetype truetype-fonts type1-fonts udev unicode vorbis xml xorg xv xvid 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" LINGUAS="sv" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 111528 [details, diff] hashit-0.9.4.ebuild patch
pyrania, can you apply this patch? It will fix also a problem with multilib-strict and other minor issues
+ [[ "${ARCH}" = amd64 ]] && append-flags -fPIC Make that "use amd64 && append-flags -fPIC" please. Also, does it install any executables? If yes, then the build system should be fixed instead of worked around like this.
fixed in cvs.