./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu ( ... configure runs normally ...) make[1]: Entering directory `/var/tmp/portage/x11-misc/peksystray-0.4.0/work/peksystray-0.4.0' Making all in src make[2]: Entering directory `/var/tmp/portage/x11-misc/peksystray-0.4.0/work/peksystray-0.4.0/src' if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -march=athlon64 -pipe -msse3 -MT peksystray.o -MD -MP -MF ".deps/peksystray.Tpo" -c -o peksystray.o peksystray.c; \ then mv -f ".deps/peksystray.Tpo" ".deps/peksystray.Po"; else rm -f ".deps/peksystray.Tpo"; exit 1; fi x86_64-pc-linux-gnu-gcc -O2 -march=athlon64 -pipe -msse3 -L/usr/lib64 -lSM -lICE -lX11 -o peksystray peksystray.o /usr/lib64 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64: No such file: File format not recognized collect2: ld returned 1 exit status make[2]: *** [peksystray] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-misc/peksystray-0.4.0/work/peksystray-0.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-misc/peksystray-0.4.0/work/peksystray-0.4.0' make: *** [all] Error 2 src/Makefile contains: peksystray_LDADD = /usr/lib64 If I nuke that assignment, the program compiles fine. So I guess something in the (auto)configure step is wrong. # emerge --info Portage 2.1.3_rc9 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.6-r0, 2.6.22.1 x86_64) ================================================================= System uname: 2.6.22.1 x86_64 AMD Athlon(tm) 64 Processor 3700+ Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 24 Jul 2007 17:50:02 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 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.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe -msse3" 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/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon64 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildsyspkg collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch http://pandemonium.tiscali.de/pub/gentoo/" LC_ALL="en_US.utf8" MAKEOPTS="-j1" 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://rsync5.de.gentoo.org/gentoo-portage" USE="X a52 alsa amd64 apache2 audacious audiofile bash-completion berkdb bitmap-fonts bzip2 calendar cdparanoia cdr cli cracklib crypt cups dio dri dts dvd dvdr dvdread emboss encode ethereal exif ffmpeg fftw firefox foomaticdb fortran ftp gif glitz gpm gstreamer gtk gtk2 iconv imlib imlib2 isdnlog jpeg kdeenablefinal ladcca lcms lua lzw lzw-tiff mad matroska midi mmap mng moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer mudflap mysqli ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline recode reflection sdl session sharedmem sockets sox spell spl ssl svg szip tcpd tetex theora tiff truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vim vim-pager vlm vorbis wmf xcb xorg xosd xpm xv xvid zlib" ALSA_CARDS="emu10k1 ice1724" 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" CAMERAS="ptp2" DVB_CARDS="ttpci sp8870" ELIBC="glibc" INPUT_DEVICES="keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Hrm, I'll look into it. What's interesting is that it worked fine for me when I tested the package before committing, and I'm also an amd64 user.
Created attachment 126989 [details, diff] Strips LDADD from Makefiles Here's a patch that allows peksystray to compile and run on AMD64. I hope it's a suitable patch.
Kenneth's patch works nicely for me.
Fixed. :) Thanks Kenneth for the patch, and Tobias for verifying that it works fine.