ROY wrote:
> anyone got a patch for 1.0.2 Makefile to be able to compile
> radsqlrelay?
You could use the following patch to build radsqlrelay in the 1.0.x
source tree. However, you need to fix some minor compilation errors in
radsqlrelay.c because some variables are different between the release
and the CVS version.
I didn't keep a copy of radsqlrelay.c with the minimal changes. However
I can give you a link to the version I'm currently using:
http://nbk.perso.cegetel.net/radsqlrelay.c
This version can be built in the 1.0.x source tree. It has been modified
to fix the detail file locking issue under heavy load. Since you are
running tests on radsqlrelay, I'd be grateful if I could receive some
feedback from you on this version.
--- freeradius-1.0.2.orig/src/main/Makefile.in 2004-06-02 18:17:06.000000000
+0200
+++ freeradius-1.0.2/src/main/Makefile.in 2005-02-21 15:10:45.000000000
+0100
@@ -19,7 +19,7 @@
MODULE_OBJS =
VFLAGS = -DRADIUSD_MAJOR_VERSION=$(RADIUSD_MAJOR_VERSION)
VFLAGS += -DRADIUSD_MINOR_VERSION=$(RADIUSD_MINOR_VERSION)
-BINARIES = radiusd radwho radzap radclient radrelay
+BINARIES = radiusd radwho radzap radclient radrelay radsqlrelay
#
# Not using shared libraries, add in ALL known static modules
@@ -134,6 +134,12 @@
radrelay.o: radrelay.c $(INCLUDES)
$(CC) $(CFLAGS) -c radrelay.c
+radsqlrelay: radsqlrelay.o mainconfig.o util.o nas.o client.o log.o conffile.o
files.o xlat.o valuepair.o timestr.o ../lib/libradius.la
+ $(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self $(CFLAGS)
$(LDFLAGS) -o radsqlrelay radsqlrelay.o mainconfig.o util.o nas.o client.o
log.o conffile.o files.o xlat.o valuepair.o timestr.o $(LIBLTDL) $(LCRYPT)
$(LIBS)
+
+radsqlrelay.o: radsqlrelay.c $(INCLUDES)
+ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c radsqlrelay.c
+
radwho.o: radwho.c $(INCLUDES)
$(CC) $(CFLAGS) -c radwho.c
@@ -158,3 +164,4 @@
$(INSTALL) -m 755 radrelay$(EXEEXT) $(R)$(bindir)
$(INSTALL) -m 755 radtest $(R)$(bindir)
$(INSTALL) -m 755 checkrad.pl $(R)$(sbindir)/checkrad
+ $(LIBTOOL) --mode=install $(INSTALL) -m 755 radsqlrelay$(EXEEXT)
$(R)$(bindir)
--
Nicolas Baradakis
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html