How to properly disable a module via configure
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.
JDL wrote:
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.
It should work.
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.
What does the make file say? i.e. what are the contents of: src/modules/rlm_ruby/all.mk
Shouldn't the build be skipped if the module is disabled by configure?
Yes. Alan DeKok.
On Oct 23, 2013, at 3:59 PM, Alan DeKok <aland@deployingradius.com> wrote:
However, when it gets to the build section, it errors out with the following.
What does the make file say? i.e. what are the contents of:
src/modules/rlm_ruby/all.mk
TARGETNAME := rlm_ruby ifneq "$(TARGETNAME)" "" TARGET := $(TARGETNAME).a endif SOURCES := $(TARGETNAME).c SRC_CFLAGS := TGT_LDLIBS := install: $(R)$(modconfdir)/ruby/example.rb $(R)$(modconfdir)/ruby: | $(R)$(modconfdir) @echo INSTALL $(patsubst $(R)$(raddbdir)%,raddb%,$@) @$(INSTALL) -d -m 750 $@ $(R)$(modconfdir)/ruby/example.rb: src/modules/rlm_ruby/example.rb | $(R)$(modconfdir)/ruby @$(ECHO) INSTALL $(notdir $<) @$(INSTALL) -m 755 $< $(R)$(modconfdir)/ruby
Alan, Thanks. Its is fixed. Jim On Oct 23, 2013, at 5:11 PM, Alan DeKok <aland@deployingradius.com> wrote:
JDL wrote:
TARGETNAME := rlm_ruby
Hmm... that shouldn't be there.
It looks like one line was left out of the configure script for rlm_ruby. Please do a "git pull". I've pushed a fix.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
JDL