Building 2.1.12 on Debian Squeeze: Clean Error
Trying to build FR 2.1.12 on Debian Squeeze 64-bit. I'm building instead of using Debian FR packages as I want to include the rlm_raw module (which I slightly modified and is supposed to work in FR 2.x...got from another post here). I enter "fakeroot dpkg-buildpackage -b -uc" and get the following clean error: *************************** Making clean in rlm_sql_mysql. make[11]: Entering directory `/home/egeier/Desktop/freeradius-server-2.1.12/src/modules/rlm_sql/drivers/r lm_sql_mysql' make[11]: *** No rule to make target `clean'. Stop. make[11]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src/modules/rlm_sql/drivers/r lm_sql_mysql' make[10]: *** [rlm_sql_mysql] Error 2 make[10]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src/modules/rlm_sql/drivers' make[9]: *** [clean] Error 2 make[9]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src/modules/rlm_sql/drivers' make[8]: *** [drivers] Error 2 make[8]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src/modules/rlm_sql' make[7]: *** [clean] Error 2 make[7]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src/modules/rlm_sql' make[6]: *** [rlm_sql] Error 2 make[6]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src/modules' make[5]: *** [clean] Error 2 make[5]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src/modules' make[4]: *** [modules] Error 2 make[4]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src' make[3]: *** [clean] Error 2 make[3]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12/src' make[2]: *** [src] Error 2 make[2]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12' make[1]: *** [clean] Error 2 make[1]: Leaving directory `/home/egeier/Desktop/freeradius-server-2.1.12' make: *** [clean] Error 2 dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2 *************************** I've looked through the output and dependencies but no help. Then I thought to try ./configure, make, and make install, but when I run ./configure it errors too with a different error: *************************** top_builddir=/home/egeier/Desktop/freeradius-server-2.1.12 configure: creating ./config.status ./config.status: line 601: ]([ABCDGIRSTW][ABCDGIRSTW]*)[: command not found ./config.status: line 602: syntax error near unexpected token `(' ./config.status: line 602: `lt_cv_sys_global_symbol_to_cdecl='sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p''' *************************** Didn't find any help Googleing or in the output. Thanks for your help! Eric
Eric Geier wrote:
Trying to build FR 2.1.12 on Debian Squeeze 64-bit. I'm building instead of using Debian FR packages as I want to include the rlm_raw module (which I slightly modified and is supposed to work in FR 2.x...got from another post here).
I enter "fakeroot dpkg-buildpackage -b -uc" and get the following clean error:
You edited the source and broke it. It works fine using the standard source.
I've looked through the output and dependencies but no help.
Then I thought to try ./configure, make, and make install, but when I run ./configure it errors too with a different error: *************************** top_builddir=/home/egeier/Desktop/freeradius-server-2.1.12 configure: creating ./config.status ./config.status: line 601: ]([ABCDGIRSTW][ABCDGIRSTW]*)[: command not found ./config.status: line 602: syntax error near unexpected token `(' ./config.status: line 602: `lt_cv_sys_global_symbol_to_cdecl='sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p''' *************************** Didn't find any help Googleing or in the output.
Don't break the server. Alan DeKok.
On Sun, Apr 22, 2012 at 10:39:42AM +0200, Alan DeKok wrote:
Eric Geier wrote:
I enter "fakeroot dpkg-buildpackage -b -uc" and get the following clean error:
You edited the source and broke it.
Most likely, in this case. I can't reproduce that from the clean git release_2_1_12.
It works fine using the standard source.
Unfortunately not, on squeeze, although this may depend on your current umask. The fix is in 282c2dfb3d64, or just use v2.1.x. Unfortunately that does introduce another bug - you need to install the freeradius-mysql package or pull dhcp_sqlippool out of the config, due to it pulling in a mysql file at line 18, added in aeee8bb6b840f12c. I haven't worked out a clean solution for that one - I guess dhcp_sqlippool should be in the freeradius-mysql package instead, as it currently depends on mysql, but that doesn't seem right. diff --git a/debian/rules b/debian/rules index 398bbd1..36a103a 100755 --- a/debian/rules +++ b/debian/rules @@ -153,7 +153,7 @@ install-arch: build-arch-stamp dh_testroot dh_installdirs -s test -d $(freeradius_dir)/usr/lib/freeradius || mkdir -p $(freeradius_dir)/usr/lib/freeradius - ln -s rlm_sql.so $(freeradius_dir)/usr/lib/freeradius/librlm_sql.so + ln -fs rlm_sql.so $(freeradius_dir)/usr/lib/freeradius/librlm_sql.so $(MAKE) install R=$(freeradius_dir) # rename radius binary to play nicely with others @@ -183,7 +183,7 @@ binary-common: dh_installchangelogs doc/ChangeLog dh_installdocs dh_installexamples - chmod -x debian/freeradius/usr/share/doc/freeradius/examples/example.pl + chmod a-x debian/freeradius/usr/share/doc/freeradius/examples/example.pl dh_installlogrotate dh_installpam --name=radiusd dh_installinit --noscripts Cheers, Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Architect (UNIX and Networks), Network Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
Matthew Newton wrote:
The fix is in 282c2dfb3d64, or just use v2.1.x. Unfortunately that does introduce another bug - you need to install the freeradius-mysql package or pull dhcp_sqlippool out of the config, due to it pulling in a mysql file at line 18, added in aeee8bb6b840f12c.
I'll just remove the references to SQL. Alan DeKok.
participants (3)
-
Alan DeKok -
Eric Geier -
Matthew Newton