[tac_plus] tacacs+ compile problem
Steven Saner
ssaner at hubris.net
Wed May 7 21:56:38 UTC 2014
I was trying to compile tacacs+-F4.0.4.27a.tar.gz on a Linux
distribution that has gcc 4.8.2 (Slackware 14.1). The compile failed
because it could not "find" libwrap. The reason for that is that
configure was not able to compile the test program that binds to
libwrap. From config.log
configure:13744: gcc -o conftest -O2 -march=i486 -mtune=i686 -pthread
-O2 -march=i486 -mtune=i686 -I/usr/loca
l/include -L/usr/local/lib -L/lib conftest.c -L/usr/lib -lwrap
-R/usr/lib -lnsl -lcrypt >&5
gcc: error: unrecognized command line option '-R'
In earlier gcc versions, such as 4.5.2, you get a warning:
gcc: unrecognized option '-R/usr/lib'
but it compiles anyway and configure does its thing. I'm afraid I'm not
well enough versed in gcc to know if the -R option ever existed or not,
but its existence seems to cause a fatal error in the newer version.
I just modified the configure script as per the following diff:
--- tacacs+-F4.0.4.27a.orig/configure 2012-06-28 17:37:06.000000000 -0500
+++ tacacs+-F4.0.4.27a/configure 2014-05-07 16:49:57.010560954 -0500
@@ -13722,7 +13722,7 @@
if test -d "$withval"; then
WRAPINCS="-I$withval/include"
- WRAPLIBS="-L$withval/lib -lwrap -R$withval/lib"
+ WRAPLIBS="-L$withval/lib -lwrap"
else
WRAPLIBS="$withval"
fi
I was going to try to change the autoconf stuff so that configure would
get created without this option in there, but I'm using a different
version of autoconf than was used to put the package together. I figured
you might want to track that down yourself anyway.
Steve
--
--------------------------------------------------------------------------
Steven Saner <ssaner at hubris.net> Voice: 316-858-3000
Director of Network Operations Fax: 316-858-3001
Hubris Communications http://www.hubris.net
More information about the tac_plus
mailing list