It looks like gcc 3.4.6 is throwing a warning when anonymous inner functions (AKA "trampoline functions") are used, which is causing the configuration script to stop. I need to add a flag to the configuration test that will suppress this warning.
Unfortunately, I can't find a place to download Gentoo 3.4.6-r2, so I can't install it and test this myself. In fact, I can't find any information about that release at all. Can anyone help me out with a link? -- Sam Clippinger Thorsten Puzich wrote: > Hi Eric, > > this is my config.log > > spamdyke # cat config.log > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > It was created by spamdyke configure 3.1.7, which was > generated by GNU Autoconf 2.61. Invocation command line was > > $ ./configure > > ## --------- ## > ## Platform. ## > ## --------- ## > > hostname = zion > uname -m = i686 > uname -r = 2.6.16-gentoo-r6 > uname -s = Linux > uname -v = #2 Mon Aug 21 14:00:28 CEST 2006 > > /usr/bin/uname -p = Intel(R) Pentium(R) 4 CPU 2.40GHz > /bin/uname -X = unknown > > /bin/arch = unknown > /usr/bin/arch -k = unknown > /usr/convex/getsysinfo = unknown > /usr/bin/hostinfo = unknown > /bin/machine = unknown > /usr/bin/oslevel = unknown > /bin/universe = unknown > > PATH: /usr/local/sbin > PATH: /usr/local/bin > PATH: /usr/sbin > PATH: /usr/bin > PATH: /sbin > PATH: /bin > PATH: /opt/bin > PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.4.6 > PATH: /usr/qt/3/bin > PATH: /var/qmail/bin > PATH: /var/vpopmail/bin > > > ## ----------- ## > ## Core tests. ## > ## ----------- ## > > configure:1719: checking for gcc > configure:1735: found /usr/bin/gcc > configure:1746: result: gcc > configure:1782: checking for C compiler version > configure:1789: gcc --version >&5 > gcc (GCC) 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10) > Copyright (C) 2006 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:1792: $? = 0 > configure:1799: gcc -v >&5 > Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/specs > Configured with: > /var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/configure > --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.6 > --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include > --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6 > --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/man > --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/info > --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3 > --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec > --enable-nls --without-included-gettext --with-system-zlib > --disable-checking --disable-werror --enable-secureplt > --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.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10) > configure:1802: $? = 0 > configure:1809: gcc -V >&5 > gcc: `-V' option must have argument > configure:1812: $? = 1 > configure:1835: checking for C compiler default output file name > configure:1862: gcc -Wall conftest.c >&5 > configure:1865: $? = 0 > configure:1903: result: a.out > configure:1920: checking whether the C compiler works > configure:1930: ./a.out > configure:1933: $? = 0 > configure:1950: result: yes > configure:1957: checking whether we are cross compiling > configure:1959: result: no > configure:1962: checking for suffix of executables > configure:1969: gcc -o conftest -Wall conftest.c >&5 > configure:1972: $? = 0 > configure:1996: result: > configure:2002: checking for suffix of object files > configure:2028: gcc -c -Wall conftest.c >&5 > configure:2031: $? = 0 > configure:2054: result: o > configure:2058: checking whether we are using the GNU C compiler > configure:2087: gcc -c -Wall conftest.c >&5 > configure:2093: $? = 0 > configure:2110: result: yes > configure:2115: checking whether gcc accepts -g > configure:2145: gcc -c -g conftest.c >&5 > configure:2151: $? = 0 > configure:2250: result: yes > configure:2267: checking for gcc option to accept ISO C89 > configure:2341: gcc -c -Wall conftest.c >&5 > configure:2347: $? = 0 > configure:2370: result: none needed > configure:2439: checking for strip > configure:2455: found /usr/bin/strip > configure:2466: result: strip spamdyke > configure:2490: checking for RSA_sign in -lcrypto > configure:2525: gcc -o conftest -Wall -O2 conftest.c -lcrypto >&5 > configure:2531: $? = 0 > configure:2549: result: yes > configure:2560: checking for SSL_library_init in -lssl > configure:2595: gcc -o conftest -Wall -O2 conftest.c -lssl -lcrypto > >&5 > configure:2601: $? = 0 > configure:2619: result: yes > configure:2627: checking for OpenSSL libraries (for TLS support) > configure:2629: result: yes > configure:2660: checking for res_search in -lresolv > configure:2695: gcc -o conftest -Wall -O2 conftest.c -lresolv > -lcrypto -lssl >&5 > configure:2701: $? = 0 > configure:2719: result: yes > configure:2803: checking for bind in -lsocket > configure:2838: gcc -o conftest -Wall -O2 conftest.c -lsocket > -lresolv -lcrypto -lssl >&5 > /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: > cannot find -lsocket > collect2: ld returned 1 exit status > configure:2844: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "spamdyke" > | #define PACKAGE_TARNAME "-spamdyke-" > | #define PACKAGE_VERSION "3.1.7" > | #define PACKAGE_STRING "spamdyke 3.1.7" > | #define PACKAGE_BUGREPORT "samc (at) silence (dot) org" > | #define HAVE_LIBCRYPTO 1 > | #define HAVE_LIBSSL 1 > | #define HAVE_LIBRESOLV 1 > | /* end confdefs.h. */ > | > | /* Override any GCC internal prototype to avoid an error. > | Use char because int might match the return type of a GCC > | builtin and then its argument prototype would still apply. */ > | #ifdef __cplusplus > | extern "C" > | #endif > | char bind (); > | int > | main () > | { > | return bind (); > | ; > | return 0; > | } > configure:2862: result: no > configure:2873: checking for __bind in -lsocket > configure:2908: gcc -o conftest -Wall -O2 conftest.c -lsocket > -lresolv -lcrypto -lssl >&5 > /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: > cannot find -lsocket > collect2: ld returned 1 exit status > configure:2914: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "spamdyke" > | #define PACKAGE_TARNAME "-spamdyke-" > | #define PACKAGE_VERSION "3.1.7" > | #define PACKAGE_STRING "spamdyke 3.1.7" > | #define PACKAGE_BUGREPORT "samc (at) silence (dot) org" > | #define HAVE_LIBCRYPTO 1 > | #define HAVE_LIBSSL 1 > | #define HAVE_LIBRESOLV 1 > | /* end confdefs.h. */ > | > | /* Override any GCC internal prototype to avoid an error. > | Use char because int might match the return type of a GCC > | builtin and then its argument prototype would still apply. */ > | #ifdef __cplusplus > | extern "C" > | #endif > | char __bind (); > | int > | main () > | { > | return __bind (); > | ; > | return 0; > | } > configure:2932: result: no > configure:2946: checking for inet_ntoa in -lnsl > configure:2981: gcc -o conftest -Wall -O2 conftest.c -lnsl -lresolv > -lcrypto -lssl >&5 > configure:2987: $? = 0 > configure:3005: result: yes > configure:3090: checking whether anonymous inner functions are > supported by default > configure:3113: gcc -c -Wall -O2 conftest.c >&5 > conftest.c: In function `main': > conftest.c:19: warning: generating trampoline in object (requires > executable stack) > configure:3119: $? = 0 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "spamdyke" > | #define PACKAGE_TARNAME "-spamdyke-" > | #define PACKAGE_VERSION "3.1.7" > | #define PACKAGE_STRING "spamdyke 3.1.7" > | #define PACKAGE_BUGREPORT "samc (at) silence (dot) org" > | #define HAVE_LIBCRYPTO 1 > | #define HAVE_LIBSSL 1 > | #define HAVE_LIBRESOLV 1 > | #define HAVE_LIBNSL 1 > | /* end confdefs.h. */ > | > | int > | main () > | { > | int (*bar)(int) = ({ int tmp_action(int foo) { foo++; return(0); } > &tmp_action; }); (*bar)(0); > | ; > | return 0; > | } > configure:3130: result: no > configure:3134: checking whether anonymous inner functions are > supported with -fnested-functions > configure:3157: gcc -c -Wall -O2 -fnested-functions conftest.c >&5 > cc1: error: unrecognized command line option "-fnested-functions" > configure:3163: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "spamdyke" > | #define PACKAGE_TARNAME "-spamdyke-" > | #define PACKAGE_VERSION "3.1.7" > | #define PACKAGE_STRING "spamdyke 3.1.7" > | #define PACKAGE_BUGREPORT "samc (at) silence (dot) org" > | #define HAVE_LIBCRYPTO 1 > | #define HAVE_LIBSSL 1 > | #define HAVE_LIBRESOLV 1 > | #define HAVE_LIBNSL 1 > | /* end confdefs.h. */ > | > | int > | main () > | { > | int (*bar)(int) = ({ int tmp_action(int foo) { foo++; return(0); } > &tmp_action; }); (*bar)(0); > | ; > | return 0; > | } > configure:3174: result: no > configure:3177: checking whether anonymous inner functions are > supported with -ftrampolines > configure:3200: gcc -c -Wall -O2 -ftrampolines conftest.c >&5 > cc1: error: unrecognized command line option "-ftrampolines" > configure:3206: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "spamdyke" > | #define PACKAGE_TARNAME "-spamdyke-" > | #define PACKAGE_VERSION "3.1.7" > | #define PACKAGE_STRING "spamdyke 3.1.7" > | #define PACKAGE_BUGREPORT "samc (at) silence (dot) org" > | #define HAVE_LIBCRYPTO 1 > | #define HAVE_LIBSSL 1 > | #define HAVE_LIBRESOLV 1 > | #define HAVE_LIBNSL 1 > | /* end confdefs.h. */ > | > | int > | main () > | { > | int (*bar)(int) = ({ int tmp_action(int foo) { foo++; return(0); } > &tmp_action; }); (*bar)(0); > | ; > | return 0; > | } > configure:3217: result: no > configure:3220: error: Unable to compile without anonymous inner > function support. > See `config.log' for more details. > > ## ---------------- ## > ## Cache variables. ## > ## ---------------- ## > > ac_cv_c_compiler_gnu=yes > ac_cv_env_CC_set= > ac_cv_env_CC_value= > ac_cv_env_CFLAGS_set= > ac_cv_env_CFLAGS_value= > ac_cv_env_CPPFLAGS_set= > ac_cv_env_CPPFLAGS_value= > ac_cv_env_LDFLAGS_set= > ac_cv_env_LDFLAGS_value= > ac_cv_env_LIBS_set= > ac_cv_env_LIBS_value= > ac_cv_env_build_alias_set= > ac_cv_env_build_alias_value= > ac_cv_env_host_alias_set= > ac_cv_env_host_alias_value= > ac_cv_env_target_alias_set= > ac_cv_env_target_alias_value= > ac_cv_lib_crypto_RSA_sign=yes > ac_cv_lib_nsl_inet_ntoa=yes > ac_cv_lib_resolv_res_search=yes > ac_cv_lib_socket___bind=no > ac_cv_lib_socket_bind=no > ac_cv_lib_ssl_SSL_library_init=yes > ac_cv_objext=o > ac_cv_prog_STRIP_CMD='strip spamdyke' > ac_cv_prog_ac_ct_CC=gcc > ac_cv_prog_cc_c89= > ac_cv_prog_cc_g=yes > > ## ----------------- ## > ## Output variables. ## > ## ----------------- ## > > CC='gcc' > CFLAGS='-Wall -O2 -ftrampolines' > CPPFLAGS='' > DEFS='' > ECHO_C='' > ECHO_N='-n' > ECHO_T='' > EXEEXT='' > LDFLAGS='' > LIBOBJS='' > LIBS='-lnsl -lresolv -lcrypto -lssl' > LTLIBOBJS='' > OBJEXT='o' > PACKAGE_BUGREPORT='samc (at) silence (dot) org' > PACKAGE_NAME='spamdyke' > PACKAGE_STRING='spamdyke 3.1.7' > PACKAGE_TARNAME='-spamdyke-' > PACKAGE_VERSION='3.1.7' > PATH_SEPARATOR=':' > SHELL='/bin/sh' > STRIP_CMD='strip spamdyke' > ac_ct_CC='gcc' > bindir='${exec_prefix}/bin' > build_alias='' > datadir='${datarootdir}' > datarootdir='${prefix}/share' > docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' > dvidir='${docdir}' > exec_prefix='NONE' > host_alias='' > htmldir='${docdir}' > includedir='${prefix}/include' > infodir='${datarootdir}/info' > libdir='${exec_prefix}/lib' > libexecdir='${exec_prefix}/libexec' > localedir='${datarootdir}/locale' > localstatedir='${prefix}/var' > mandir='${datarootdir}/man' > oldincludedir='/usr/include' > pdfdir='${docdir}' > prefix='NONE' > program_transform_name='s,x,x,' > psdir='${docdir}' > sbindir='${exec_prefix}/sbin' > sharedstatedir='${prefix}/com' > sysconfdir='${prefix}/etc' > target_alias='' > > ## ----------- ## > ## confdefs.h. ## > ## ----------- ## > > #define PACKAGE_NAME "spamdyke" > #define PACKAGE_TARNAME "-spamdyke-" > #define PACKAGE_VERSION "3.1.7" > #define PACKAGE_STRING "spamdyke 3.1.7" > #define PACKAGE_BUGREPORT "samc (at) silence (dot) org" > #define HAVE_LIBCRYPTO 1 > #define HAVE_LIBSSL 1 > #define HAVE_LIBRESOLV 1 > #define HAVE_LIBNSL 1 > > configure: exit 1 > > Am 21.04.2008 um 03:38 schrieb Eric Shubert: >> What does your config.log have to say? >> >> Thorsten Puzich wrote: >>> Hi Eric, >>> >>> I am using gentoo linux with this gcc version >>> gcc version 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10) >>> >>> >>> The old spamdyke 3.0 version compiles without any errors. >>> >>> Thanks >>> Thorsten >>> >>> >>> Am 17.04.2008 um 21:57 schrieb Eric Shubert: >>>> Thorsten Puzich wrote: >>>>> Hello, >>>>> >>>>> I get this message, when I run ./configure. >>>>> >>>>> checking for __bind in -lsocket... no >>>>> checking for inet_ntoa in -lnsl... yes >>>>> checking whether anonymous inner functions are supported by >>>>> default... >>>>> no >>>>> checking whether anonymous inner functions are supported with >>>>> -fnested- >>>>> functions... no >>>>> checking whether anonymous inner functions are supported with - >>>>> ftrampolines... no >>>>> configure: error: Unable to compile without anonymous inner function >>>>> support. >>>>> >>>>> What I have to do against this error? >>>>> >>>>> Thanks >>>>> Thorsten >>>> >>>> Looks like you're missing anonymouns inner function support. >>>> I've no idea what that means. ;) >>>> >>>> What platform/compiler versions are you using? >>>> >>>> -- >>>> -Eric 'shubes' >> >> >> -- >> -Eric 'shubes' >> _______________________________________________ >> spamdyke-users mailing list >> spamdyke-users@spamdyke.org <mailto:spamdyke-users@spamdyke.org> >> http://www.spamdyke.org/mailman/listinfo/spamdyke-users > > ------------------------------------------------------------------------ > > _______________________________________________ > spamdyke-users mailing list > spamdyke-users@spamdyke.org > http://www.spamdyke.org/mailman/listinfo/spamdyke-users > _______________________________________________ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users