[Exim] exim 3.33 & mysql blues

Pàgina inicial
Delete this message
Reply to this message
Autor: P.A.Osborne
Data:  
A: exim-users
Assumpte: [Exim] exim 3.33 & mysql blues
Sorry folks but its the old chestnut of compiling exim and mysql,
before anyone says "read the FAQ" or "check the archives" please
note that I have dne that repeatedly.

I dare say that I am missing the obvious but:

Compiling Exim 3.33 under Solaris 8 with gcc 2.95 returns:

gcc -o exim  accept.o child.o daemon.o dbfn.o debug.o deliver.o direct.o  directory.o dns.o drtables.o exim.o expand.o filter.o globals.o  header.o host.o log.o match.o moan.o os.o parse.o queue.o  readconf.o retry.o rewrite.o  route.o search.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  version.o \
  libident/libident.a pcre/libpcre.a directors/directors.a \
  routers/routers.a transports/transports.a lookups/lookups.a \
  auths/auths.a \
  -lsocket -lnsl -lkstat     \
   -lresolv -R/usr/local/mysql/lib/mysql/ -L/usr/local/mysql/lib/mysql/ -llibmysqlclient.so  
ld: fatal: library -llibmysqlclient.so: not found
ld: fatal: File processing errors. No output written to exim
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `exim'
Current working directory /home/cur/pao/src/exim-3.33/build-SunOS5-5.8-sparc
*** Error code 1
make: Fatal error: Command failed for target `go'




The extract from my Local/Makefile reads:

LOOKUP_INCLUDE=-I /usr/local/mysql/include/mysql/
LOOKUP_LIBS=-R/usr/local/mysql/lib/mysql/ -L/usr/local/mysql/lib/mysql/ -llibmysqlclient.so      



To check the files exist:

watson# pwd
/usr/local/mysql/lib/mysql
watson# ls
libdbug.a                libmysqlclient.la        libmystrings.a
libheap.a                libmysqlclient.so        libmysys.a
libmerge.a               libmysqlclient.so.6      libnisam.a
libmysqlclient.a         libmysqlclient.so.6.0.0



No the mysql libs are not in my LD_LIBRARY_PATH so I linked libmysqlclient.so
back to /usr/lib/libmysqlclient.so, besides I am also using the -R flag
to force that anyway.

Comments/sarcasm/help even are eagerly awaited.

Thanks for your time.

Paul