Re: Oracle module

classic Classic list List threaded Threaded
1 message Options
| Threaded
Open this post in threaded view
|

Re: Oracle module

Thomas Huber

I do have /usr/lib/oracle/10.1.0.3/client set for ORACLE_HOME

ok, here's the config.log of rlm_sql_oracle for configure --with-rlm-
sql_oracle-include-dir=/usr/include/oracle/10.1.0.3/client

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:534: checking for gcc
configure:647: checking whether the C compiler (gcc -g -O2 -
D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -
D_GNU_SOURCE -DNDEBUG ) works
configure:663: gcc -o conftest -g -O2 -D_REENTRANT -
D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -
DNDEBUG   conftest.c -lnsl -lresolv  -lpthread -lcrypto -lssl 1>&5
configure:660: warning: return type defaults to `int'
configure:689: checking whether the C compiler (gcc -g -O2 -
D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -
D_GNU_SOURCE -DNDEBUG ) is a cross-compiler
configure:694: checking whether we are using GNU C
configure:722: checking whether gcc accepts -g
configure:754: checking how to run the C preprocessor
configure:840: checking for oci.h
configure:851: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -
DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG  conftest.c 1>&5
configure:845:17: oci.h: No such file or directory
configure: In function `main':
configure:847: warning: unused variable `a'
configure: failed program was:
#line 844 "configure"
#include "confdefs.h"
#include <oci.h>
int main() {
  int a = 1;
; return 0; }
configure:931: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -
DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG -I/usr/lib/oracle/
10.1.0.3/client/rdbms/demo -I/usr/lib/oracle/10.1.0.3/client/rdbms/
public -I/usr/lib/oracle/10.1.0.3/client/plsql/public -I/usr/lib/
oracle/10.1.0.3/client/network/public -I/usr/lib/oracle/10.1.0.3/
client/oci/include  conftest.c 1>&5
configure:925:17: oci.h: No such file or directory
configure: In function `main':
configure:927: warning: unused variable `a'
configure: failed program was:
#line 924 "configure"
#include "confdefs.h"
#include <oci.h>
int main() {
  int a = 1;
; return 0; }
configure:994: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -
DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG -I/usr/include/oracle/
10.1.0.3/client  conftest.c 1>&5
configure: In function `main':
configure:990: warning: unused variable `a'

giving me an oci.h error even though the main configure outputs:

configuring in ./drivers/rlm_sql_oracle
running /bin/sh ./configure  --with-rlm-sql_oracle-include-dir=/usr/
include/oracle/10.1.0.3/client --enable-ltdl-install --cache-
file=../../../../.././config.cache --srcdir=.
loading cache ../../../../.././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 -D_REENTRANT -
D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -
DNDEBUG ) works... yes
checking whether the C compiler (gcc -g -O2 -D_REENTRANT -
D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -
DNDEBUG ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for oci.h... yes
yes
creating ./config.status
creating Makefile
configuring in ./drivers/rlm_sql_unixodbc
running /bin/sh ./configure  --with-rlm-sql_oracle-include-dir=/usr/
include/oracle/10.1.0.3/client --enable-ltdl-install --cache-
file=../../../../.././config.cache --srcdir=.
loading cache ../../../../.././config.cache
checking for gcc... (cached) gcc

One would think there is no point of continuing after after looking  
at the errors in the first paragraph above, but here's the make output:

m -fr .libs/rlm_sql_postgresql.la .libs/rlm_sql_postgresql.* .libs/
rlm_sql_postgresql-1.0.2.*
gcc -shared  sql_postgresql.lo  -lpq  -Wl,-soname -
Wl,rlm_sql_postgresql-1.0.2.so -o .libs/rlm_sql_postgresql-1.0.2.so
(cd .libs && rm -f rlm_sql_postgresql.so && ln -s  
rlm_sql_postgresql-1.0.2.so rlm_sql_postgresql.so)
ar cru .libs/rlm_sql_postgresql.a  sql_postgresql.o
ranlib .libs/rlm_sql_postgresql.a
creating rlm_sql_postgresql.la
(cd .libs && rm -f rlm_sql_postgresql.la && ln -s ../
rlm_sql_postgresql.la rlm_sql_postgresql.la)
gmake[10]: Leaving directory `/root/freeradius-1.0.2/src/modules/
rlm_sql/drivers/rlm_sql_postgresql'
Making dynamic in rlm_sql_oracle...
gmake[10]: Entering directory `/root/freeradius-1.0.2/src/modules/
rlm_sql/drivers/rlm_sql_oracle'
/root/freeradius-1.0.2/libtool --mode=compile gcc  -g -O2 -
D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -
D_GNU_SOURCE -DNDEBUG
  -I../.. -I../../../../include -I/usr/include/oracle/10.1.0.3/
client  -c sql_oracle.c
rm -f .libs/sql_oracle.lo
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -
Wall -D_GNU_SOURCE -DNDEBUG -I../.. -I../../../../include -I/usr/
include/orac
le/10.1.0.3/client -c sql_oracle.c                                  -
fPIC -DPIC -o .libs/sql_oracle.lo
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -
Wall -D_GNU_SOURCE -DNDEBUG -I../.. -I../../../../include -I/usr/
include/orac
le/10.1.0.3/client -c sql_oracle.c -o sql_oracle.o >/dev/null 2>&1
mv -f .libs/sql_oracle.lo sql_oracle.lo
/root/freeradius-1.0.2/libtool --mode=link gcc -release 1.0.2 \
-module -export-dynamic  -g -O2 -D_REENTRANT -
D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -
DNDEBUG  -I../.. -I../../../../inc
lude \
-I/usr/include/oracle/10.1.0.3/client  -o rlm_sql_oracle.la -rpath /
usr/local/lib sql_oracle.lo -L/usr/lib/oracle/10.1.0.3/client/lib -
lclntsh -lm
rm -fr .libs/rlm_sql_oracle.la .libs/rlm_sql_oracle.* .libs/
rlm_sql_oracle-1.0.2.*
gcc -shared  sql_oracle.lo  -L/usr/lib/oracle/10.1.0.3/client/lib -
lclntsh -lm  -Wl,-soname -Wl,rlm_sql_oracle-1.0.2.so -o .libs/
rlm_sql_oracle-1.0
.2.so
(cd .libs && rm -f rlm_sql_oracle.so && ln -s rlm_sql_oracle-1.0.2.so  
rlm_sql_oracle.so)
ar cru .libs/rlm_sql_oracle.a  sql_oracle.o
ranlib .libs/rlm_sql_oracle.a
creating rlm_sql_oracle.la
(cd .libs && rm -f rlm_sql_oracle.la && ln -s ../rlm_sql_oracle.la  
rlm_sql_oracle.la)
gmake[10]: Leaving directory `/root/freeradius-1.0.2/src/modules/
rlm_sql/drivers/rlm_sql_oracle'
Making dynamic in rlm_sql_unixodbc...
gmake[10]: Entering directory `/root/freeradius-1.0.2/src/modules/
rlm_sql/drivers/rlm_sql_unixodbc'
/root/freeradius-1.0.2/libtool --mode=compile gcc  -g -O2 -
D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -Wall -
D_GNU_S

Looks ok to me now, modules are there, so I will do the install and see.

Still don't fully understand why config.log of the module directory  
complains about oci.h ...

Cheers,
Thomas






On 20.05.2005, at 18:13, Alan DeKok wrote:

> Thomas Huber <[hidden email]> wrote:
>
>> So I downloaded the client SDK from oracle (10.1.0.3) and  
>> installed it.
>> I then ran ./configure --with-rlm-sql-include-dir=/usr/include/
>> oracle/
>> 10.1.0.3/client
>>
>> Apparently, this is not the right way of doing it.
>>
>
>   Could you explain why you think that?
>
>   Reading the output of "configure" and "make" might help.
>
>   If all else fails, edit the Makefile in rlm_sql_oracle directory by
> hand until it builds.
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/ 
> users.html
>


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