SLES 10 + Oracle

Peter Nixon listuser at peternixon.net
Wed Nov 21 19:09:54 CET 2007


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/




More information about the Freeradius-Users mailing list