On 20.03.2013 03:54, Alan DeKok wrote:
$ touch src/modules/rlm_python/configure.in
$ make AUTOCONF src/modules/rlm_python/configure CONFIGURE src/modules/rlm_python/ checking for gcc... gcc ... config.status: creating all.mk CC src/modules/rlm_python/rlm_python.c LINK build/lib/rlm_python.la
Very nice.
Indeed. Works very well when you do it manually :) Now for an unknown reason, when trying to build the debian packages, I get weird errors once the ./configure is over : /usr/bin/make make[1]: Entering directory `/opt/src/FR3/repositories/freeradius-server' AUTOCONF src/modules/rlm_counter/ /opt/src/FR3/repositories/freeradius-server/missing: 46: /opt/src/FR3/repositories/freeradius-server/missing: autoconf: not found WARNING: `autoconf' is missing on your system. You should only need it if you modified `configure.in'. You might want to install the `Autoconf' and `GNU m4' packages. Grab them from any GNU archive site. CONFIGURE src/modules/rlm_counter/ configure: WARNING: unrecognized options: --with-raddbdir, --with-logdir, --with-experimental-modules, --disable-developer, --with-large-files, --with-udpfromto, --with-edir, --without-rlm_eap_tnc, --with-rlm_sql_postgresql_lib_dir, --with-rlm_sql_postgresql_include_dir, --without-rlm_eap_ikev2, --without-rlm_sql_oracle, --without-rlm_sql_unixodbc checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/opt/src/FR3/repositories/freeradius-server/src/modules/rlm_counter': configure: error: C compiler cannot create executables See `config.log' for more details make[1]: *** [src/modules/rlm_counter/all.mk] Error 77 make[1]: Leaving directory `/opt/src/FR3/repositories/freeradius-server' make: *** [build-arch-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 If I run `make` manually, it works. When looking at the config.log in rlm_counter [1], I get the following error : cc1: fatal error: /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/autoconf.h: No such file or directory We discussed with Arran and we plan to "re-build" the debian build system from scratch to fit with the change in 3.0. But in the mean-time it would be nice that the old system still works. If we find why it won't build, i'll push a patch to correct most issue with the current debian build system. Thanks for your help Olivier [1] 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 configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --build x86_64-linux-gnu --prefix=/usr --exec-prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --libdir=/usr/lib/freeradius --datadir=/usr/share --localstatedir=/var --with-raddbdir=/etc/freeradius --with-logdir=/var/log/freeradius --with-experimental-modules=no --disable-developer --with-large-files --with-udpfromto --with-edir --without-rlm_eap_tnc --with-rlm_sql_postgresql_lib_dir=/usr/lib --with-rlm_sql_postgresql_include_dir=/usr/include/postgresql --without-rlm_eap_ikev2 --without-rlm_sql_oracle --without-rlm_sql_unixodbc ## --------- ## ## Platform. ## ## --------- ## hostname = hesraddev01 uname -m = x86_64 uname -r = 3.2.0-38-generic uname -s = Linux uname -v = #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013 /usr/bin/uname -p = unknown /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: /usr/games PATH: /usr/sbin PATH: /usr/sbin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1938: checking for gcc configure:1954: found /usr/bin/gcc configure:1965: result: gcc configure:2194: checking for C compiler version configure:2203: gcc --version >&5 gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 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:2214: $? = 0 configure:2203: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) configure:2214: $? = 0 configure:2203: gcc -V >&5 gcc: error: unrecognized option '-V' gcc: fatal error: no input files compilation terminated. configure:2214: $? = 4 configure:2203: gcc -qversion >&5 gcc: error: unrecognized option '-qversion' gcc: fatal error: no input files compilation terminated. configure:2214: $? = 4 configure:2234: checking whether the C compiler works configure:2256: gcc -imacros /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/autoconf.h -imacros /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/features.h -I/opt/src/FR3/repositories/freeradius-server -I/opt/src/FR3/repositories/freeradius-server/src -fno-strict-aliasing -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DOPENSSL_NO_KRB5 -fPIC -DIS_MODULE=1 -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro conftest.c >&5 cc1: fatal error: /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/autoconf.h: No such file or directory compilation terminated. configure:2260: $? = 1 configure:2298: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2303: error: in `/opt/src/FR3/repositories/freeradius-server/src/modules/rlm_counter': configure:2305: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-imacros /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/autoconf.h -imacros /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/features.h -I/opt/src/FR3/repositories/freeradius-server -I/opt/src/FR3/repositories/freeradius-server/src -fno-strict-aliasing -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DOPENSSL_NO_KRB5 -fPIC -DIS_MODULE=1' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2 ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-Wl,-Bsymbolic-functions -Wl,-z,relro' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-linux-gnu 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_prog_ac_ct_CC=gcc ## ----------------- ## ## Output variables. ## ## ----------------- ## CC='gcc' CFLAGS='-imacros /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/autoconf.h -imacros /opt/src/FR3/repositories/freeradius-server/src/freeradius-devel/features.h -I/opt/src/FR3/repositories/freeradius-server -I/opt/src/FR3/repositories/freeradius-server/src -fno-strict-aliasing -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DOPENSSL_NO_KRB5 -fPIC -DIS_MODULE=1' CPP='' CPPFLAGS='-D_FORTIFY_SOURCE=2' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' GREP='' LDFLAGS='-Wl,-Bsymbolic-functions -Wl,-z,relro' LIBOBJS='' LIBS='' LTLIBOBJS='' OBJEXT='' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' SHELL='/bin/bash' ac_ct_CC='gcc' bindir='${exec_prefix}/bin' build_alias='x86_64-linux-gnu' datadir='/usr/share' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='/usr' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='/usr/lib/freeradius' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='/var' mandir='/usr/share/man' mod_cflags='' mod_ldflags='' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='' targetname='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" configure: exit 77 -- Olivier Beytrison Network & Security Engineer, HES-SO Fribourg Mail: olivier@heliosnet.org