[afnog] exim compilation error on Solaris

Brian Candler B.Candler at pobox.com
Tue Aug 17 07:36:35 EAT 2004


On Mon, Aug 16, 2004 at 11:29:03AM +0100, Godfred Ofori Som wrote:
> This is the full error message.
...
> gcc -c -O   -I/usr/local/ssl/include/ version.c
> rm -f exim
> 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 -lsocket -lnsl -lkstat    \
>     -L/usr/local/mysql/lib/mysql  -L/usr/local/ssl/lib -lssl -lcrypto
> Undefined                       first referenced
>  symbol                             in file
> mysql_fetch_row                     lookups/lookups.a(mysql.o)

There is no -lmysqlclient in there.

What did you put in LOOKUP_LIBS and LOOKUP_INCLUDE in your Local/Makefile?
I think you probably missed LOOKUP_LIBS=-lmysqlclient

Brian.


More information about the afnog mailing list