How to properly disable a module via configure

JDL JDL at ImagineNet.net
Wed Oct 23 20:47:39 CEST 2013


Hello List,

I am working on a RPM spec file for FreeRADIUS using the spec file from git repository.  I am trying to incorporate optional builds for some of the experimental modules.  I am running into problems trying to disable modules.  Specifically, I am seeing the issue with rlm_ruby.  My configure options are as follows.

./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --libdir=/usr/lib64/freeradius --with-system-libtool --disable-ltdl-install --with-gnu-ld --with-threads --with-thread-pool --with-docdir=/usr/share/doc/freeradius-3.0.1 --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql --with-rlm-sql-postgresql-lib-dir=/usr/lib64 --with-rlm-sql_mysql-include-dir=/usr/include/mysql --with-mysql-lib-dir=/usr/lib64/mysql --with-unixodbc-lib-dir=/usr/lib64 --with-rlm-dbm-lib-dir=/usr/lib64 --with-rlm-krb5-include-dir=/usr/kerberos/include --without-rlm_eap_ikev2 --without-rlm_sql_iodbc --without-rlm_sql_firebird --without-rlm_sql_db2 --without-rlm_sql_oracle --with-experimental-modules --with-rlm_sql_freetds --without-rlm_redis --without-rlm_rest --without-rlm_ruby

When configure hits the rlm_ruby modules, it seems to see that it is supposed to be disabled.

*** module rlm_ruby is disabled.

However, when it gets to the build section, it errors out with the following.

CC src/modules/rlm_ruby/rlm_ruby.c
src/modules/rlm_ruby/rlm_ruby.c:44:18: error: ruby.h: No such file or directory
src/modules/rlm_ruby/rlm_ruby.c:73: error: expected specifier-qualifier-list before 'VALUE'
[many more errors]
make: *** [build/objs/src/modules/rlm_ruby/rlm_ruby.lo] Error 1

Shouldn't the build be skipped if the module is disabled by configure?

Thanks,

Jim Lohiser
Imagine Net, Inc.



More information about the Freeradius-Users mailing list