Discover fails to compile on amd64 with the following error. x86_64-pc-linux-gnu-gcc -o .libs/discover discover.o 64 64 64 64 -L/usr/lib64 ..//lib/.libs/libdiscover.so /usr/lib64/libexpat.so /usr/lib64/libcurl.so /usr/lib64/libgnutls.so /usr/lib64/libgcrypt.so -lnsl /usr/lib64/libgpg-error.so -ldl -lz ..//portability/.libs/libportability.al -Wl,--rpath -Wl,/usr/lib64 x86_64-pc-linux-gnu-gcc: 64: No such file or directory x86_64-pc-linux-gnu-gcc: 64: No such file or directory x86_64-pc-linux-gnu-gcc: 64: No such file or directory x86_64-pc-linux-gnu-gcc: 64: No such file or directory make[1]: *** [discover] Error 1 The "64 64 64 64" shouldnt be there, during the configure phase it outputs checking for XML_ParserCreate in -lexpat... yes checking for curl libs... 64 -lcurl 64 -lgnutls 64 -lgcrypt 64 -lgpg-error -lz -ldl -lz checking for curl cflags... checking for check - version >= 0.8.2... no *** Could not run check test program, checking why... *** The test program failed to compile or link. See the file config.log for *** the exact error that occurred. You will not be able to run the test suite, no worries. Obviously the problem is worse than just being unable to run the test suite, it tried but fails to build the library. config.log output for this section is as follows. configure:8450: checking for XML_ParserCreate in -lexpat configure:8480: x86_64-pc-linux-gnu-gcc -o conftest -march=athlon64 -O2 -pipe -I${top_srcdir}/portability conftest.c -lexpat >&5 configure:8486: $? = 0 configure:8489: test -z || test ! -s conftest.err configure:8492: $? = 0 configure:8495: test -s conftest configure:8498: $? = 0 configure:8511: result: yes configure:8539: checking for curl libs configure:8552: result: 64 -lcurl 64 -lgnutls 64 -lgcrypt 64 -lgpg-error -lz -ldl -lz configure:8557: checking for curl cflags configure:8568: result: configure:8595: checking for check - version >= 0.8.2 configure:8668: x86_64-pc-linux-gnu-gcc -o conftest -march=athlon64 -O2 -pipe -I${top_srcdir}/portability conftest.c -lcheck -lexpat 64 -lcurl 64 -lgnutls 64 -lgcrypt 64 -lgpg-error -lz -ldl -lz >&5 x86_64-pc-linux-gnu-gcc: 64: No such file or directory x86_64-pc-linux-gnu-gcc: 64: No such file or directory x86_64-pc-linux-gnu-gcc: 64: No such file or directory x86_64-pc-linux-gnu-gcc: 64: No such file or directory conftest.c:30:19: check.h: No such file or directory conftest.c: In function `main': conftest.c:46: error: `CHECK_MAJOR_VERSION' undeclared (first use in this function) conftest.c:46: error: (Each undeclared identifier is reported only once conftest.c:46: error: for each function it appears in.) conftest.c:46: error: `check_major_version' undeclared (first use in this function) conftest.c:47: error: `CHECK_MINOR_VERSION' undeclared (first use in this function) conftest.c:47: error: `check_minor_version' undeclared (first use in this function) conftest.c:48: error: `CHECK_MICRO_VERSION' undeclared (first use in this function) conftest.c:48: error: `check_micro_version' undeclared (first use in this function) configure:8671: $? = 1 configure: program exited with status 1 Looking in configure.ac, i notice it has the following section. # More curl workarounds. Adding the system include path with -I and/or # system library path with -L causes problems on some systems. curl_libs=`echo ${curl_libs} | sed -e 's|-L/usr/lib||g'` # curl-config --libs -L/usr/lib64 -lcurl -L/usr/lib64 -lgnutls -L/usr/lib64 -lgcrypt -L/usr/lib64 -lgpg-error -lz -ldl -lz # curl-config --libs | sed -e 's|-L/usr/lib||g' 64 -lcurl 64 -lgnutls 64 -lgcrypt 64 -lgpg-error -lz -ldl -lz Obviously this is just garbage, i assume the author was not familiar with 64 bit systems and didnt expect to see /usr/lib64/, i think the following is better. # curl-config --libs | sed -e 's|-L/usr/lib\(64\)||g' -lcurl -lgnutls -lgcrypt -lgpg-error -lz -ldl -lz So in configure.ac they should do - curl_libs=`echo ${curl_libs} | sed -e 's|-L/usr/lib||g'` + curl_libs=`echo ${curl_libs} | sed -e 's|-L/usr/lib\(64\)||g'` Reproducible: Always Steps to Reproduce: 1. 2. 3.
You neglected to post emerge --info output. Also, please post some meaningful summary next time.
# emerge --info Portage 2.0.53_rc4 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-rc3bugsville x86_64) ================================================================= System uname: 2.6.14-rc3bugsville x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 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-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg digest distlocks sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 3dnowex X Xaw3d a52 aac aalib acpi acpi4linux aim alsa ansi arts artworkextra audiofile authdaemond avi bash-completion berkdb bitmap-fonts bootsplash browserplugin bzip2 bzlib cairo cap cdda cddb cdio cdparanoia cdr cdrom chroot cpudetection crypt cscope css cups curl curlwrappers dbus devmap dga dhcp dio directfb dlloader dnd doc dpms dts dv dvb dvd dvdr dvdread dynagraph ecc edl eds encode erandom escreen esd evo evo2 examples extraengine faad fam fame ffmpeg flac font-server fortran freetts freetype ftp gatos gd gdbm geometry gif glep glut gnome gnutls gpm gstreamer gtk gtk2 gtkhtml guile hal howl icq imagemagick imap imlib imlib2 insecure-drivers jabber java javascript jp2 jpeg jpeg2k kde ldap lesstif lm_sensors logitech-mouse logrotate lzo lzw lzw-tiff maildir md5sum mhash mime mimencode mng motif mozilla mp3 mpeg mpeg4 mpi mplayer msn mysql native ncurses neXt nls nodrm nptl odbc ogg oggvorbis opengl oss pam pam_chroot pam_timestamp pango pcntl pdf pdfkit pdflib perl pic png pnp posix procmail python qt quicktime readline real rtc samba sasl sdl sensord shared sharedmem slang spell sqlite sqlite3 ssl syslog szip tcltk tcpd tetex tga theora threads tiff transcode truetype truetype-fonts type1-fonts uptimed usb userlocales utf8 v4l v4l2 vcd vcdimager vorbis xface xim xine xml2 xmms xpm xprint xrandr xscreensaver xsl xslt xv xvid xvmc yahoo yv12 zlib zvbi userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Reopen.
removed offending line from configure, thanks