Re: [exim] Re: compiling with Oracle support

Pàgina inicial
Delete this message
Reply to this message
Autor: Marcos Monge
Data:  
A: exim-users
Assumpte: Re: [exim] Re: compiling with Oracle support
I have try both, with all the paths to all the libs directory in
oracle... and it's the same:

LOOKUP_LIBS=-L/usr/lib -L/opt/oracle/product/9i/lib \
-L/opt/oracle/product/9i/rdbms/lib -L/opt/oracle/product/9i/ctx/lib \
-L/opt/oracle/product/9i/network/lib
-L/opt/oracle/product/9i/precomp/lib -lclntsh

and it's the same result:
-------------------------------------------
gcc -o exim  acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o
directory.o dns.o drtables.o enq.o exim.o expand.o filter.o
filtertest.o globals.o header.o host.o ip.o log.o lss.o match.o moan.o
os.o parse.o queue.o rda.o readconf.o receive.o retry.o rewrite.o
rfc2047.o route.o search.o sieve.o smtp_in.o smtp_out.o spool_in.o
spool_out.o store.o string.o tls.o tod.o transport.o tree.o verify.o
local_scan.o  version.o \
 pcre/libpcre.a \
 routers/routers.a transports/transports.a lookups/lookups.a \
 auths/auths.a \
 -lresolv -lnsl -lcrypt    \
  -ldb -L/usr/lib -L/opt/oracle/product/9i/lib
-L/opt/oracle/product/9i/rdbms/lib -L/opt/oracle/product/9i/ctx/lib
-L/opt/oracle/product/9i/network/lib
-L/opt/oracle/product/9i/precomp/lib -lclntsh  \


drtables.o(.data+0x208): undefined reference to `oracle_open'
drtables.o(.data+0x210): undefined reference to `oracle_find'
drtables.o(.data+0x218): undefined reference to `oracle_tidy'
drtables.o(.data+0x21c): undefined reference to `oracle_quote'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
----------------------------------------------------------------

I also have try to search for "oracle_open" in the libs directory, and
don't fine any file with it...

Any idea?

Thanks in advance


On Wed, 27 Oct 2004 14:26:33 +0100, Dave Smith
<david.smith@???> wrote:
> Marcos Monge wrote:
>
>
>
> > On Wed, 27 Oct 2004 09:38:08 +0100 (BST), Philip Hazel
> > <ph10@???> wrote:
> >> On Tue, 26 Oct 2004, Marcos Monge wrote:
> >>
> >> > gcc -o exim  acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o
> >> > directory.o dns.o drtables.o enq.o exim.o expand.o filter.o
> >> > filtertest.o globals.o header.o host.o ip.o log.o lss.o match.o moan.o
> >> > os.o parse.o queue.o rda.o readconf.o receive.o retry.o rewrite.o
> >> > rfc2047.o route.o search.o sieve.o smtp_in.o smtp_out.o spool_in.o
> >> > spool_out.o store.o string.o tls.o tod.o transport.o tree.o verify.o
> >> > local_scan.o  version.o \
> >> >   pcre/libpcre.a \
> >> >   routers/routers.a transports/transports.a lookups/lookups.a \
> >> >   auths/auths.a \
> >> >   -lresolv -lnsl -lcrypt    \
> >> >    -ldb   \

> >> >
> >> > drtables.o(.data+0x208): undefined reference to `oracle_open'
> >> <snip>
> >>
> >> You need -lsomething-else in that command to tell it where the Oracle
> >> library is. You can set this in the LOOKUP_LIBS variable in your
> >> Local/Makefile.
> >
> > I also try this, but without success.
> > Any idea about what are this "-lsomething" options?
> > I haved try with:
> > LOOKUP_INCLUDE=-I /usr/include
> > LOOKUP_LIBS=-L/usr/lib -L/opt/oracle/product/9i/lib -loracle
> >
> > But no success:
> > /usr/bin/ld: cannot find -loracle
> >
> > Someone have compiled exim with oracle support?
> >
>
> I haven't tried but I am guessing you want -lclntsh.
>
> Why not go to the oracle lib directory and do a
>
> grep oracle_open *
>
> to find which lib the function is in?
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>