Library Problem .... seems to be everywhere in 1.0.1 :-) Stefan Neis suggested as response to my question: --------------------------------------------------------------------------- > >The problem seems to be, again, that even one adds > >> >--with-ltdl-lib=/opt/csw/share/libtool/libltdl > >> >--with-ltdl-include=/opt/csw/share/libtool/libltdl > >"make" does not seem to care about it. > > I've found this to be the case with several (if not all) of the > --with-BLAH-lib and with --with-BLAH-include options.
A relatively easy way around that problem would be to use CFLAGS="relevant -I options" LDFLAGS="relevant -L and -l options" ./configure ... That way, you can even reorder the libs as necessary, as I found necessary e.g. with 1.0.0 to get OpenSSL stuff compiled in (the default configure script would try to compile stuff with -lcrypto -lssl which fails at least for static libs, while "-lssl -lcrypto" in LDFLAGS telled configure to do the right thing). --------------------------------------------------------------------------- Matthias Rumitz TC Unix / Netzwerke ADIVA Computertechnologie GmbH Norsk-Data-Str. 1 D-61352 Bad Homburg v.d.H. Fon: +49(0) 61 72 / 48 61 - 0 Fax: +49(0) 61 72 / 48 61 - 700 Web: http://www.adiva.de eMail: [EMAIL PROTECTED] Diese E-Mail Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. This e-mail message may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. ----- Originalnachricht ----- Von: Ken Doyle <[EMAIL PROTECTED]> Datum: Freitag, Februar 11, 2005 2:35 am Betreff: Re: Dynamic IP Allocation for multiple Radius Servers > Hi guys > > I've been playing with Ruslan's patched rlm_sqlippool module > (http://www.onlinebilling.ru/freeradius/rlm_sqlippool.tar.gz), but > I've been unable to > get it to compile at all. I'm using Debian Sarge (testing), and the > freeradius 1.0.1 source. It's been at least seven years since I've > debugged any C at all and everything I've tried so far has led to a > dead end. I'm pretty sure I'm missing something, but I can't > figure out > what's actually wrong. > > If anyone has compiled this on Debian or has any ideas, I'd be > extremely grateful for any help. If I can't get this module, or the > older version of this module working properly > (I haven't yet been able to get multiple ip pools working for the > default user with the unpatched rlm_sqlippool module), I'm going to > have to abandon Freeradius. > > Ken. > (Thanks to Alan and Ruslan for their time and help). > > This is what happens: > > Making static dynamic in rlm_sqlippool... > make[6]: Entering directory `/root/freeradius- > 1.0.1/src/modules/rlm_sqlippool'gcc -g -O2 -D_REENTRANT - > D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 > -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual > -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -Wnested-externs -W -Wredundant-decls - Wundef > -I../../include -c rlm_sqlippool.c -o rlm_sqlippool.o > In file included from rlm_sqlippool.c:24: > rlm_sql.h:46: error: parse error before "SQL_CONFIG" > rlm_sql.h:46: warning: function declaration isn't a prototype > rlm_sql.h:47: error: parse error before "SQL_CONFIG" > rlm_sql.h:47: warning: function declaration isn't a prototype > rlm_sql.h:48: error: parse error before "SQL_CONFIG" > rlm_sql.h:48: warning: function declaration isn't a prototype > rlm_sql.h:49: error: parse error before "SQL_CONFIG" > rlm_sql.h:49: warning: function declaration isn't a prototype > rlm_sql.h:50: error: parse error before "SQL_CONFIG" > rlm_sql.h:50: warning: function declaration isn't a prototype > rlm_sql.h:51: error: parse error before "SQL_CONFIG" > rlm_sql.h:51: warning: function declaration isn't a prototype > rlm_sql.h:52: error: parse error before "SQL_CONFIG" > rlm_sql.h:52: warning: function declaration isn't a prototype > rlm_sql.h:53: error: parse error before "SQL_CONFIG" > rlm_sql.h:53: warning: function declaration isn't a prototype > rlm_sql.h:54: error: parse error before "SQL_CONFIG" > rlm_sql.h:54: warning: function declaration isn't a prototype > rlm_sql.h:55: error: parse error before "SQL_CONFIG" > rlm_sql.h:55: warning: function declaration isn't a prototype > rlm_sql.h:56: error: parse error before "SQL_CONFIG" > rlm_sql.h:56: warning: function declaration isn't a prototype > rlm_sql.h:57: error: parse error before "SQL_CONFIG" > rlm_sql.h:57: warning: function declaration isn't a prototype > rlm_sql.h:58: error: parse error before "SQL_CONFIG" > rlm_sql.h:58: warning: function declaration isn't a prototype > rlm_sql.h:59: error: parse error before "SQL_CONFIG" > rlm_sql.h:59: warning: function declaration isn't a prototype > rlm_sql.h:66: error: parse error before "SQL_CONFIG" > rlm_sql.h:66: warning: no semicolon at end of struct or union > rlm_sql.h:70: error: parse error before '}' token > > ... etc, and then ends: > > rlm_sqlippool.c:1038: error: `data' undeclared (first use in this > function)rlm_sqlippool.c:1038: error: parse error before ')' token > rlm_sqlippool.c: In function `sqlippool_detach': > rlm_sqlippool.c:1115: error: `data' undeclared (first use in this > function)rlm_sqlippool.c:1115: error: parse error before ')' token > rlm_sqlippool.c:1113: warning: unused parameter `instance' > make[6]: *** [rlm_sqlippool.o] Error 1 > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html