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?