Re: SLES 10 + Oracle

2007-11-21 Thread Peter Nixon
On Wed 21 Nov 2007, Stefan Kohler wrote:
> Am Mi, 21.11.2007, 12:18, schrieb Alan DeKok:
> > Stefan Kohler wrote:
> >> Thanks for the quick response. Now, how do I configure that to happen
> >> during the RPMbuild, as I put the whole .tar.bz2 file in the SOURCES
> >> folder?
> >
> >   Edit the RPM spec file.
>
> Tried to do so, put the needed line here:
> ...
> %build
> export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DLDAP_DEPRECATED"
> export CFLAGS="$CFLAGS -I/usr/include/oracle/11.1.0.1/client/"
> %ifarch x86_64
> ...
>
> Is that the right place and syntax? I am not really farmiliar with specs
> files, sorry about that! The "No oracle headers found" message is not
> showing anymore.
>
> When running "rpmbuild -ba ..." now, I get:
>
> sql_mysql.c: In function ‘sql_error’:
> sql_mysql.c:385: warning: return discards qualifiers from pointer target
> type
> /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld:
> cannot find -lclntsh
> collect2: ld returned 1 exit status
> gmake[10]: *** [rlm_sql_oracle.la] Error 1
> gmake[9]: *** [common] Error 2
> gmake[8]: *** [all] Error 2
> gmake[7]: *** [common] Error 2
> gmake[6]: *** [build-module] Error 2
> gmake[5]: *** [common] Error 2
> gmake[4]: *** [all] Error 2
> gmake[3]: *** [common] Error 2
> gmake[2]: *** [all] Error 2
> gmake[1]: *** [common] Error 2
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.56526 (%build)
> Bad exit status from /var/tmp/rpm-tmp.56526 (%build)

Now your mysql module is failing to build. Try disabling it it configure.


-- 

Peter Nixon
http://peternixon.net/

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


Re: SLES 10 + Oracle

2007-11-21 Thread Stefan Kohler

Am Mi, 21.11.2007, 12:18, schrieb Alan DeKok:
> Stefan Kohler wrote:
>> Thanks for the quick response. Now, how do I configure that to happen
>> during the RPMbuild, as I put the whole .tar.bz2 file in the SOURCES
>> folder?
>
>   Edit the RPM spec file.
>
Tried to do so, put the needed line here:
...
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DLDAP_DEPRECATED"
export CFLAGS="$CFLAGS -I/usr/include/oracle/11.1.0.1/client/"
%ifarch x86_64
...

Is that the right place and syntax? I am not really farmiliar with specs
files, sorry about that! The "No oracle headers found" message is not
showing anymore.

When running "rpmbuild -ba ..." now, I get:

sql_mysql.c: In function ‘sql_error’:
sql_mysql.c:385: warning: return discards qualifiers from pointer target type
/usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld:
cannot find -lclntsh
collect2: ld returned 1 exit status
gmake[10]: *** [rlm_sql_oracle.la] Error 1
gmake[9]: *** [common] Error 2
gmake[8]: *** [all] Error 2
gmake[7]: *** [common] Error 2
gmake[6]: *** [build-module] Error 2
gmake[5]: *** [common] Error 2
gmake[4]: *** [all] Error 2
gmake[3]: *** [common] Error 2
gmake[2]: *** [all] Error 2
gmake[1]: *** [common] Error 2
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.56526 (%build)
Bad exit status from /var/tmp/rpm-tmp.56526 (%build)

Was anyone lately able to get fR running with Oracle? Thanks for all your
help and efforts. I hope I get this running sometime, although I think I
got a little step closer. Let me know, if you need any more outputs or
config files of mine.

Cheers

- Stefan

-- 
stef (at) internetchefs (dot) de

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


Re: SLES 10 + Oracle

2007-11-21 Thread Jos Vos
On Wed, Nov 21, 2007 at 12:06:12PM +0100, Stefan Kohler wrote:

> Thanks for the quick response. Now, how do I configure that to happen
> during the RPMbuild, as I put the whole .tar.bz2 file in the SOURCES
> folder?

Modify the spec file.

-- 
--Jos Vos <[EMAIL PROTECTED]>
--X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--Amsterdam, The Netherlands| Fax: +31 20 6948204
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: SLES 10 + Oracle

2007-11-21 Thread Alan DeKok
Stefan Kohler wrote:
> Thanks for the quick response. Now, how do I configure that to happen
> during the RPMbuild, as I put the whole .tar.bz2 file in the SOURCES
> folder?

  Edit the RPM spec file.

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


Re: SLES 10 + Oracle

2007-11-21 Thread Peter Nixon
On Wed 21 Nov 2007, Stefan Kohler wrote:
> Am Mi, 21.11.2007, 10:16, schrieb Stefan Kohler:
> > Am Mi, 21.11.2007, 00:37, schrieb Peter Nixon:
> >> On Tue 20 Nov 2007, Stefan Kohler wrote:
> >>> Hi users,
> >>>
> >>> I have a problem compiling a RPM-package for SLES10 and I followed
> >>> the instructions on the WIKI-sites. All dependecies are installed and
> >>> I also installed the Oracle rpms (oracle-instantclient-basic and
> >>> oracle-instantclient-devel), so all headers and stuff should be
> >>> installed.
> >>>
> >>> Now I am trying to build the RPM (as mentioned above all dependencies
> >>> are installed) and I get the following message:
> >>>
> >>> "RPM build errors:
> >>>   File not found by glob: /var/tmp/freeradius-1.1.7-build/usr/lib/
> >>> freeradius/rlm_sql_oracle*.so*"
> >>
> >> configure is likely not finding your oracle headers.. Look at the
> >> output of
> >> configure (near the start of the build process)
> >
> > Thanks for the hint Peter, it helped a litte, but I am still having
> > problems.
> > I looked into the whole thing again and found out, that in the
> > SPECS-file the lib dir is set to:
> >
> > --with-oracle-lib-dir=%{_libdir}/oracle/10.1.0.3/client/lib/ \
> >
> > The newest version is Oracle 11.1.0.1, so I changed the directory, which
> > is now giving no "No oracle headers found" errors anymore (Is 10.1.0.3
> > the only supported version?). Now I am getting:
> >
> > "error: Installed (but unpackaged) file(s) found:
> > /etc/raddb/postgresqlippool.conf"
> >
> > when running rpmbuild -ba freeradius.specs! Has anyone experienced these
> > problems before? Can anyone help me, please?
> >
> > Thanks in advance!
> > Cheers
> >
> > - Stefan
> >
> > --
> > stef (at) internetchefs (dot) de
>
> Sorry, my fault. I am still getting the "No oracle headers found" error. I
> have oracle-instantclient-basic (/usr/lib/oracle/11.1.0.1) and
> oracle-instantclient-devel (/usr/include/oracle/11.1.0.1).
>
> Looking for header files I tried
> --with-oracle-home-dir=/usr/include/oracle/11.1.0.1/client , due to the
> *.h files in that directory. That does not work. Any more hints? I do not
> know what else to do. I have tried both directories. It says checking for
> "oci.h" when running "./configure" and that file is in
> "/usr/include/oracle/11.1.0.1/client", but can not be found when I use
> this directory in "--with-oracle-home-dir=...".
>
> Thank you in advance and sorry for the wrong post earlier!

Hi Stefan

I had quite a lot of trouble getting FreeRADIUS to build against oracle 10g 
as it previously only worked with Oracle 8. I made some changes, including 
the spec file and module configure file to work with 10g (and wrote the 
minimal docs you see) however I have not built against Oracle for around 2 
years now, and never against Oracle 11.

The work I did was for a large customer who required integration with Oracle, 
however I actually use FreeRADIUS with Postgresql for most of the systems I 
deploy so I am by no means an Oracle expert.

Regards

-- 

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


Re: SLES 10 + Oracle

2007-11-21 Thread Stefan Kohler

Am Mi, 21.11.2007, 11:09, schrieb Alan DeKok:
> Stefan Kohler wrote:
>> Looking for header files I tried
>> --with-oracle-home-dir=/usr/include/oracle/11.1.0.1/client , due to the
>> *.h files in that directory. That does not work. Any more hints?
>
> $ CFLAGS=-I/usr/include/oracle/11.1.0.1/client
> $ export CFLAGS
> $ ./configure 

Thanks for the quick response. Now, how do I configure that to happen
during the RPMbuild, as I put the whole .tar.bz2 file in the SOURCES
folder?

Thank you

- Stefan

-- 
stef (at) internetchefs (dot) de

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


Re: SLES 10 + Oracle

2007-11-21 Thread Alan DeKok
Stefan Kohler wrote:
> Looking for header files I tried
> --with-oracle-home-dir=/usr/include/oracle/11.1.0.1/client , due to the
> *.h files in that directory. That does not work. Any more hints?

$ CFLAGS=-I/usr/include/oracle/11.1.0.1/client
$ export CFLAGS
$ ./configure 

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


Re: SLES 10 + Oracle

2007-11-21 Thread Stefan Kohler

Am Mi, 21.11.2007, 10:16, schrieb Stefan Kohler:
>
> Am Mi, 21.11.2007, 00:37, schrieb Peter Nixon:
>> On Tue 20 Nov 2007, Stefan Kohler wrote:
>>> Hi users,
>>>
>>> I have a problem compiling a RPM-package for SLES10 and I followed
>>> the instructions on the WIKI-sites. All dependecies are installed and
>>> I also installed the Oracle rpms (oracle-instantclient-basic and
>>> oracle-instantclient-devel), so all headers and stuff should be
>>> installed.
>>>
>>> Now I am trying to build the RPM (as mentioned above all dependencies
>>> are installed) and I get the following message:
>>>
>>> "RPM build errors:
>>> File not found by glob: /var/tmp/freeradius-1.1.7-build/usr/lib/
>>> freeradius/rlm_sql_oracle*.so*"
>>
>> configure is likely not finding your oracle headers.. Look at the output
>> of
>> configure (near the start of the build process)
>>
>
> Thanks for the hint Peter, it helped a litte, but I am still having
> problems.
> I looked into the whole thing again and found out, that in the SPECS-file
> the lib dir is set to:
>
> --with-oracle-lib-dir=%{_libdir}/oracle/10.1.0.3/client/lib/ \
>
> The newest version is Oracle 11.1.0.1, so I changed the directory, which
> is now giving no "No oracle headers found" errors anymore (Is 10.1.0.3 the
> only supported version?). Now I am getting:
>
> "error: Installed (but unpackaged) file(s) found:
> /etc/raddb/postgresqlippool.conf"
>
> when running rpmbuild -ba freeradius.specs! Has anyone experienced these
> problems before? Can anyone help me, please?
>
> Thanks in advance!
> Cheers
>
> - Stefan
>
> --
> stef (at) internetchefs (dot) de

Sorry, my fault. I am still getting the "No oracle headers found" error. I
have oracle-instantclient-basic (/usr/lib/oracle/11.1.0.1) and
oracle-instantclient-devel (/usr/include/oracle/11.1.0.1).

Looking for header files I tried
--with-oracle-home-dir=/usr/include/oracle/11.1.0.1/client , due to the
*.h files in that directory. That does not work. Any more hints? I do not
know what else to do. I have tried both directories. It says checking for
"oci.h" when running "./configure" and that file is in
"/usr/include/oracle/11.1.0.1/client", but can not be found when I use
this directory in "--with-oracle-home-dir=...".

Thank you in advance and sorry for the wrong post earlier!

- Stefan

-- 
stef (at) internetchefs (dot) de

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


Re: SLES 10 + Oracle

2007-11-21 Thread Stefan Kohler

Am Mi, 21.11.2007, 00:37, schrieb Peter Nixon:
> On Tue 20 Nov 2007, Stefan Kohler wrote:
>> Hi users,
>>
>> I have a problem compiling a RPM-package for SLES10 and I followed
>> the instructions on the WIKI-sites. All dependecies are installed and
>> I also installed the Oracle rpms (oracle-instantclient-basic and
>> oracle-instantclient-devel), so all headers and stuff should be
>> installed.
>>
>> Now I am trying to build the RPM (as mentioned above all dependencies
>> are installed) and I get the following message:
>>
>> "RPM build errors:
>>  File not found by glob: /var/tmp/freeradius-1.1.7-build/usr/lib/
>> freeradius/rlm_sql_oracle*.so*"
>
> configure is likely not finding your oracle headers.. Look at the output
> of
> configure (near the start of the build process)
>

Thanks for the hint Peter, it helped a litte, but I am still having problems.
I looked into the whole thing again and found out, that in the SPECS-file
the lib dir is set to:

--with-oracle-lib-dir=%{_libdir}/oracle/10.1.0.3/client/lib/ \

The newest version is Oracle 11.1.0.1, so I changed the directory, which
is now giving no "No oracle headers found" errors anymore (Is 10.1.0.3 the
only supported version?). Now I am getting:

"error: Installed (but unpackaged) file(s) found:
/etc/raddb/postgresqlippool.conf"

when running rpmbuild -ba freeradius.specs! Has anyone experienced these
problems before? Can anyone help me, please?

Thanks in advance!
Cheers

- Stefan

-- 
stef (at) internetchefs (dot) de

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


Re: SLES 10 + Oracle

2007-11-20 Thread Peter Nixon
On Tue 20 Nov 2007, Stefan Kohler wrote:
> Hi users,
>
> I have a problem compiling a RPM-package for SLES10 and I followed
> the instructions on the WIKI-sites. All dependecies are installed and
> I also installed the Oracle rpms (oracle-instantclient-basic and
> oracle-instantclient-devel), so all headers and stuff should be
> installed.
>
> Now I am trying to build the RPM (as mentioned above all dependencies
> are installed) and I get the following message:
>
> "RPM build errors:
>   File not found by glob: /var/tmp/freeradius-1.1.7-build/usr/lib/
> freeradius/rlm_sql_oracle*.so*"

configure is likely not finding your oracle headers.. Look at the output of 
configure (near the start of the build process)

Cheers

-- 

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