> From: Paul Hampson
> Sent: Wednesday, 16 July 2003 5:41 PM

> > From: Eivind Ravndal
> > Sent: Wednesday, 16 July 2003 5:10 PM
> 
> > > From: "Alan DeKok" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> 
> > > > Anybody successfully compiled freeradius with rlm_sql_sybase ?
> > > > I think there's something wrong with my Makefile
> > > > /freeradius-0.8.1/src/modules/rlm_sql/drivers/rlm_sql_sybase/Makefile
> 
> > >   Did you try reading it?  It says you've got to edit it by hand to
> > > get it to work.
> 
> > I've read it, but I don't know what to change. So I was hoping someone
> > who've compiled it successfully would paste me their MakeFile so I could get
> > some ideas. I am pretty sure this line is the one which is wrong:
> > ---
> > RLM_SQL_LIBS
> >   =  -L/opt/sybase/OCS-12_0/lib -ltcl -lcomn -lintl -lnsl -ldl -lm -lcs -lct
> > ---
> > When I comment out this line, it compiles and installs just fine, but it
> > will not run since there's missing some libs.

> I was going to have a play with that post-0.9, to see if I could integrate
> it into the rest of the build system... But I don't use sybase so it would
> be a mainly academic exercise.

I just tried it then, and the libct in Debian (0.61) built with the
following Makefile segment (although I've made slight changes to the build
system, but these should be OK)

TARGET         = rlm_sql_sybase
SRCS           = sql_sybase.c
RLM_SQL_CFLAGS = $(INCLTDL)
RLM_SQL_LIBS   = -lnsl -lct

and the following patch to sql_sybase.c (Broken whitespace, but it should be obvious 
what
to change.) which I suspect is only needed for gcc 3.2+. Still a ton of warnings 
though,
mainly prototype issues from which many of the sql drivers suffer.

--- 
/home/tbble/frcvs/branch_0_9/src/modules/rlm_sql/drivers/rlm_sql_sybase/sql_sybase.c   
     2002-07-30 00:59:13.000000000 +1000
+++ sql_sybase.c        2003-07-16 17:48:52.000000000 +1000
@@ -344,7 +344,7 @@
        if ((results_ret = ct_results(sybase_sock->command, &result_type)) == 
CS_SUCCEED) {
                if (result_type != CS_CMD_SUCCEED) {
                        if  (result_type == CS_ROW_RESULT) {
-                               radlog(L_ERR,"rlm_sql_sybase(sql_query): sql_query 
processed a query returning rows.
+                               radlog(L_ERR,"rlm_sql_sybase(sql_query): sql_query 
processed a query returning rows.\
                                                 Use sql_select_query instead!");
                        }
                        radlog(L_ERR,"rlm_sql_sybase(sql_query): Result failure or 
unexpected result type from query\n%s",

This was against 0.9.0-pre2, BTW. I doubt it's different in CVS HEAD, or pre3.

--
=========================================================
Paul "TBBle" Hampson
Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]

This is a one line proof...if we start
sufficiently far to the left.
        -- Cambridge University Math Department
---------------------------------------------------------
Random signature generator 3.0 by Paul "TBBle" Hampson
=========================================================


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to