Hi everybody, I'm new to this list, so if I inadvertently break some rules, feel free to tell me so.
I've been happily running gentoo for a bit more than a year, and have just encountered my first real problem (gentoo is excellent :-)) ). I've changed my /etc/make.conf , adding ACCEPT_KEYWORDS="x86 ~x86" . When I ran emerge --update --deep --newuse world openssh refused to build, with this error: ... checking for groupadd... /usr/sbin/groupadd checking for useradd... /usr/sbin/useradd checking for pkgmk... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking for login... /bin/login checking for passwd... /bin/passwd checking for inline... inline checking compiler and flags for sanity... no configure: error: *** compiler cannot create working executables, check config.log *** I've googled a lot, but can't find anything seemingly related. I've also checked bugzilla. I wanted to ask if anybody had a solution, or a hint, before filing a bug report. You'll find attached the config.log. If this is not the right place to post, or if I've missed some documentation somewhere, feel free to redirect me. Thanks for reading :-) Good evening/morning/night/whatever ;-) Maxime
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by OpenSSH configure Portable, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --prefix=/usr --host=i386-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i386-pc-linux-gnu --with-ldflags= -lldap --disable-strip --sysconfdir=/etc/ssh --libexecdir=/usr/lib/misc --datadir=/usr/share/openssh --disable-suid-ssh --with-privsep-path=/var/empty --with-privsep-user=sshd --with-md5-passwords --without-libedit --without-kerberos5 --with-tcp-wrappers --without-skey --without-opensc --with-pam ## --------- ## ## Platform. ## ## --------- ## hostname = NelGen uname -m = i686 uname -r = 2.6.10 uname -s = Linux uname -v = #1 SMP Fri Jan 7 20:17:56 UTC 2005 /usr/bin/uname -p = AMD Athlon(tm) XP 1600+ /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /sbin PATH: /usr/sbin PATH: /usr/lib/portage/bin PATH: /bin PATH: /usr/bin PATH: /usr/local/bin PATH: /opt/bin PATH: /usr/i386-pc-linux-gnu/gcc-bin/3.3.5-20050130 PATH: /opt/sun-jdk-1.4.2.08/bin PATH: /opt/sun-jdk-1.4.2.08/jre/bin PATH: /opt/sun-jdk-1.4.2.08/jre/javaws PATH: /usr/qt/3/bin PATH: /usr/kde/3.4/sbin PATH: /usr/kde/3.4/bin PATH: /usr/kde/3.3/sbin PATH: /usr/kde/3.3/bin PATH: /usr/kde/3.2/sbin PATH: /usr/kde/3.2/bin PATH: /usr/kde/3.1/sbin PATH: /usr/kde/3.1/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1368: checking for i386-pc-linux-gnu-gcc configure:1384: found /usr/bin/i386-pc-linux-gnu-gcc configure:1394: result: i386-pc-linux-gnu-gcc configure:1676: checking for C compiler version configure:1679: i386-pc-linux-gnu-gcc --version </dev/null >&5 i386-pc-linux-gnu-gcc (GCC) 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1682: $? = 0 configure:1684: i386-pc-linux-gnu-gcc -v </dev/null >&5 Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/specs Configured with: /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.3.5-20050130 --includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/include --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3.5-20050130/info --with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/include/g++-v3 --host=i386-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1) configure:1687: $? = 0 configure:1689: i386-pc-linux-gnu-gcc -V </dev/null >&5 i386-pc-linux-gnu-gcc: `-V' option must have argument configure:1692: $? = 1 configure:1715: checking for C compiler default output file name configure:1718: i386-pc-linux-gnu-gcc -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:1721: $? = 0 configure:1767: result: a.out configure:1772: checking whether the C compiler works configure:1778: ./a.out configure:1781: $? = 0 configure:1798: result: yes configure:1805: checking whether we are cross compiling configure:1807: result: no configure:1810: checking for suffix of executables configure:1812: i386-pc-linux-gnu-gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:1815: $? = 0 configure:1840: result: configure:1846: checking for suffix of object files configure:1867: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:1870: $? = 0 configure:1892: result: o configure:1896: checking whether we are using the GNU C compiler configure:1920: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:1926: $? = 0 configure:1930: test -z || test ! -s conftest.err configure:1933: $? = 0 configure:1936: test -s conftest.o configure:1939: $? = 0 configure:1952: result: yes configure:1958: checking whether i386-pc-linux-gnu-gcc accepts -g configure:1979: i386-pc-linux-gnu-gcc -c -g conftest.c >&5 configure:1985: $? = 0 configure:1989: test -z || test ! -s conftest.err configure:1992: $? = 0 configure:1995: test -s conftest.o configure:1998: $? = 0 configure:2009: result: yes configure:2026: checking for i386-pc-linux-gnu-gcc option to accept ANSI C configure:2096: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:2102: $? = 0 configure:2106: test -z || test ! -s conftest.err configure:2109: $? = 0 configure:2112: test -s conftest.o configure:2115: $? = 0 configure:2133: result: none needed configure:2151: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 conftest.c:2: error: syntax error before "me" configure:2157: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2321: checking build system type configure:2339: result: i386-pc-linux-gnu configure:2347: checking host system type configure:2361: result: i386-pc-linux-gnu configure:2370: checking whether byte ordering is bigendian configure:2397: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:2403: $? = 0 configure:2407: test -z || test ! -s conftest.err configure:2410: $? = 0 configure:2413: test -s conftest.o configure:2416: $? = 0 configure:2440: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 conftest.c: In function `main': conftest.c:16: error: `not' undeclared (first use in this function) conftest.c:16: error: (Each undeclared identifier is reported only once conftest.c:16: error: for each function it appears in.) conftest.c:16: error: syntax error before "big" configure:2446: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "OpenSSH" | #define PACKAGE_TARNAME "openssh" | #define PACKAGE_VERSION "Portable" | #define PACKAGE_STRING "OpenSSH Portable" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include <sys/types.h> | #include <sys/param.h> | | int | main () | { | #if BYTE_ORDER != BIG_ENDIAN | not big endian | #endif | | ; | return 0; | } configure:2581: result: no configure:2606: checking for gawk configure:2622: found /bin/gawk configure:2632: result: gawk configure:2647: checking how to run the C preprocessor configure:2682: i386-pc-linux-gnu-gcc -E conftest.c configure:2688: $? = 0 configure:2720: i386-pc-linux-gnu-gcc -E conftest.c conftest.c:9:28: ac_nonexistent.h: No such file or directory configure:2726: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "OpenSSH" | #define PACKAGE_TARNAME "openssh" | #define PACKAGE_VERSION "Portable" | #define PACKAGE_STRING "OpenSSH Portable" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:2765: result: i386-pc-linux-gnu-gcc -E configure:2789: i386-pc-linux-gnu-gcc -E conftest.c configure:2795: $? = 0 configure:2827: i386-pc-linux-gnu-gcc -E conftest.c conftest.c:9:28: ac_nonexistent.h: No such file or directory configure:2833: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "OpenSSH" | #define PACKAGE_TARNAME "openssh" | #define PACKAGE_VERSION "Portable" | #define PACKAGE_STRING "OpenSSH Portable" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:2879: checking for i386-pc-linux-gnu-ranlib configure:2895: found /usr/bin/i386-pc-linux-gnu-ranlib configure:2905: result: i386-pc-linux-gnu-ranlib configure:2969: checking for a BSD-compatible install configure:3024: result: /bin/install -c configure:3037: checking for ar configure:3055: found /usr/bin/ar configure:3067: result: /usr/bin/ar configure:3076: checking for cat configure:3094: found /bin/cat configure:3106: result: /bin/cat configure:3115: checking for kill configure:3133: found /bin/kill configure:3145: result: /bin/kill configure:3156: checking for perl5 configure:3189: result: no configure:3156: checking for perl configure:3174: found /usr/bin/perl configure:3186: result: /usr/bin/perl configure:3198: checking for sed configure:3216: found /bin/sed configure:3228: result: /bin/sed configure:3238: checking for ent configure:3271: result: no configure:3278: checking for bash configure:3296: found /bin/bash configure:3308: result: /bin/bash configure:3317: checking for ksh configure:3347: result: /bin/bash configure:3356: checking for sh configure:3386: result: /bin/bash configure:3395: checking for sh configure:3413: found /bin/sh configure:3425: result: /bin/sh configure:3437: checking for groupadd configure:3455: found /usr/sbin/groupadd configure:3468: result: /usr/sbin/groupadd configure:3477: checking for useradd configure:3495: found /usr/sbin/useradd configure:3508: result: /usr/sbin/useradd configure:3517: checking for pkgmk configure:3544: result: no configure:3560: checking for special C compiler options needed for large files configure:3659: result: no configure:3665: checking for _FILE_OFFSET_BITS value needed for large files configure:3696: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 conftest.c:15: warning: left shift count >= width of type conftest.c:15: warning: left shift count >= width of type conftest.c:17: error: size of array `off_t_is_large' is negative configure:3702: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "OpenSSH" | #define PACKAGE_TARNAME "openssh" | #define PACKAGE_VERSION "Portable" | #define PACKAGE_STRING "OpenSSH Portable" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include <sys/types.h> | /* Check that off_t can represent 2**63 - 1 correctly. | We can't simply define LARGE_OFF_T to be 9223372036854775807, | since some C++ compilers masquerading as C compilers | incorrectly reject 9223372036854775807. */ | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | && LARGE_OFF_T % 2147483647 == 1) | ? 1 : -1]; | int | main () | { | | ; | return 0; | } configure:3749: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:3755: $? = 0 configure:3759: test -z || test ! -s conftest.err configure:3762: $? = 0 configure:3765: test -s conftest.o configure:3768: $? = 0 configure:3780: result: 64 configure:3790: checking for _LARGE_FILES value needed for large files configure:3821: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:3827: $? = 0 configure:3831: test -z || test ! -s conftest.err configure:3834: $? = 0 configure:3837: test -s conftest.o configure:3840: $? = 0 configure:3905: result: no configure:3934: checking for login configure:3952: found /bin/login configure:3964: result: /bin/login configure:3981: checking for passwd configure:3999: found /bin/passwd configure:4011: result: /bin/passwd configure:4030: checking for inline configure:4051: i386-pc-linux-gnu-gcc -c -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY conftest.c >&5 configure:4057: $? = 0 configure:4061: test -z || test ! -s conftest.err configure:4064: $? = 0 configure:4067: test -s conftest.o configure:4070: $? = 0 configure:4082: result: inline configure:6491: checking compiler and flags for sanity configure:6510: i386-pc-linux-gnu-gcc -o conftest -O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY -Wall -Wpointer-arith -Wno-uninitialized -lldap conftest.c >&5 conftest.c: In function `main': conftest.c:21: warning: implicit declaration of function `exit' /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../libldap.so: undefined reference to `ber_memalloc_x' /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../libldap.so: undefined reference to `ber_memvfree_x' /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../libldap.so: undefined reference to `ber_memrealloc_x' /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../libldap.so: undefined reference to `ber_memcalloc_x' /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../libldap.so: undefined reference to `ber_strndup_x' /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../libldap.so: undefined reference to `ber_memfree_x' /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/../../../libldap.so: undefined reference to `ber_strdup_x' collect2: ld returned 1 exit status configure:6513: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "OpenSSH" | #define PACKAGE_TARNAME "openssh" | #define PACKAGE_VERSION "Portable" | #define PACKAGE_STRING "OpenSSH Portable" | #define PACKAGE_BUGREPORT "" | #define _FILE_OFFSET_BITS 64 | #define LOGIN_PROGRAM_FALLBACK "/bin/login" | #define _PATH_PASSWD_PROG "/bin/passwd" | #define DONT_TRY_OTHER_AF 1 | #define PAM_TTY_KLUDGE 1 | #define LOCKED_PASSWD_PREFIX "!" | #define SPT_TYPE SPT_REUSEARGV | #define LINK_OPNOTSUPP_ERRNO EPERM | #define _PATH_BTMP "/var/log/btmp" | #define USE_BTMP 1 | /* end confdefs.h. */ | | #include <stdio.h> | int main(){exit(0);} | configure:6529: result: no configure:6531: error: *** compiler cannot create working executables, check config.log *** ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i386-pc-linux-gnu ac_cv_build_alias=i386-pc-linux-gnu ac_cv_c_bigendian=no ac_cv_c_compiler_gnu=yes ac_cv_c_inline=inline ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=i386-pc-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i386-pc-linux-gnu ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_host=i386-pc-linux-gnu ac_cv_host_alias=i386-pc-linux-gnu ac_cv_objext=o ac_cv_path_AR=/usr/bin/ar ac_cv_path_CAT=/bin/cat ac_cv_path_KILL=/bin/kill ac_cv_path_LOGIN_PROGRAM_FALLBACK=/bin/login ac_cv_path_PATH_GROUPADD_PROG=/usr/sbin/groupadd ac_cv_path_PATH_PASSWD_PROG=/bin/passwd ac_cv_path_PATH_USERADD_PROG=/usr/sbin/useradd ac_cv_path_PERL=/usr/bin/perl ac_cv_path_SED=/bin/sed ac_cv_path_SH=/bin/sh ac_cv_path_TEST_MINUS_S_SH=/bin/bash ac_cv_path_install='/bin/install -c' ac_cv_prog_AWK=gawk ac_cv_prog_CC=i386-pc-linux-gnu-gcc ac_cv_prog_CPP='i386-pc-linux-gnu-gcc -E' ac_cv_prog_MAKE_PACKAGE_SUPPORTED=no ac_cv_prog_RANLIB=i386-pc-linux-gnu-ranlib ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_sys_file_offset_bits=64 ac_cv_sys_large_files=no ac_cv_sys_largefile_CC=no ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='/usr/bin/ar' AWK='gawk' CAT='/bin/cat' CC='i386-pc-linux-gnu-gcc' CFLAGS='-O2 -mcpu=i686 -fomit-frame-pointer -DWITH_LDAP_PUBKEY -Wall -Wpointer-arith -Wno-uninitialized' CPP='i386-pc-linux-gnu-gcc -E' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' ENT='' EXEEXT='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_SSH_PRNG_CMDS='' INSTALL_SSH_RAND_HELPER='' KILL='/bin/kill' LD='i386-pc-linux-gnu-gcc' LDFLAGS=' -lldap' LIBEDIT='' LIBOBJS='' LIBPAM='' LIBS='' LIBWRAP='' LOGIN_PROGRAM_FALLBACK='/bin/login' LTLIBOBJS='' MAKE_PACKAGE_SUPPORTED='no' MANTYPE='' NROFF='' OBJEXT='o' OPENSC_CONFIG='' PACKAGE_BUGREPORT='' PACKAGE_NAME='OpenSSH' PACKAGE_STRING='OpenSSH Portable' PACKAGE_TARNAME='openssh' PACKAGE_VERSION='Portable' PATH_GROUPADD_PROG='/usr/sbin/groupadd' PATH_PASSWD_PROG='/bin/passwd' PATH_SEPARATOR=':' PATH_USERADD_PROG='/usr/sbin/useradd' PERL='/usr/bin/perl' PRIVSEP_PATH='' PROG_ARP='' PROG_DF='' PROG_IFCONFIG='' PROG_IPCS='' PROG_JSTAT='' PROG_LAST='' PROG_LASTLOG='' PROG_LS='' PROG_NETSTAT='' PROG_PS='' PROG_SAR='' PROG_TAIL='' PROG_UPTIME='' PROG_VMSTAT='' PROG_W='' PROG_WHO='' RANLIB='i386-pc-linux-gnu-ranlib' SED='/bin/sed' SH='/bin/sh' SHELL='/bin/sh' SSH_PRIVSEP_USER='' STRIP_OPT='' TEST_MINUS_S_SH='/bin/bash' TEST_SHELL='sh' XAUTH_PATH='' ac_ct_CC='' ac_ct_RANLIB='' bindir='${exec_prefix}/bin' build='i386-pc-linux-gnu' build_alias='i386-pc-linux-gnu' build_cpu='i386' build_os='linux-gnu' build_vendor='pc' datadir='/usr/share/openssh' exec_prefix='NONE' host='i386-pc-linux-gnu' host_alias='i386-pc-linux-gnu' host_cpu='i386' host_os='linux-gnu' host_vendor='pc' includedir='${prefix}/include' infodir='/usr/share/info' libdir='${exec_prefix}/lib' libexecdir='/usr/lib/misc' localstatedir='/var/lib' mandir='/usr/share/man' mansubdir='' oldincludedir='/usr/include' piddir='' prefix='/usr' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc/ssh' target_alias='' user_path='' xauth_path='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define DONT_TRY_OTHER_AF 1 #define LINK_OPNOTSUPP_ERRNO EPERM #define LOCKED_PASSWD_PREFIX "!" #define LOGIN_PROGRAM_FALLBACK "/bin/login" #define PACKAGE_BUGREPORT "" #define PACKAGE_NAME "OpenSSH" #define PACKAGE_STRING "OpenSSH Portable" #define PACKAGE_TARNAME "openssh" #define PACKAGE_VERSION "Portable" #define PAM_TTY_KLUDGE 1 #define SPT_TYPE SPT_REUSEARGV #define USE_BTMP 1 #define _FILE_OFFSET_BITS 64 #define _PATH_BTMP "/var/log/btmp" #define _PATH_PASSWD_PROG "/bin/passwd" configure: exit 1