[Exim] problems compiling mysql support?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Chris Knipe
Dátum:  
Címzett: exim-users
Tárgy: [Exim] problems compiling mysql support?
lo all,

I recently tried to add mysql support into Exim (for a large installation
+- 9000 virtual domains)... Well, I edited the Makefile, added the MySQL
lookup, and amended my include path to include /usr/include/mysql...

Unfortunately, it was all to easy I guess... Exim compiles everything
fine, and then right at the end, complains about it... Here's the output
from my make...


/bin/rm -f exim
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 perl.o version.o
\
  libident/libident.a pcre/libpcre.a directors/directors.a \
  routers/routers.a transports/transports.a lookups/lookups.a \
  auths/auths.a \
  -lnsl -lcrypt     \
  -ldb -lresolv -L/usr/lib -rdynamic  -L/usr/local/lib
/usr/lib/perl5/5.6.0/i386-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.6.0/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt
lookups/lookups.a(mysql.o): In function `mysql_tidy':
mysql.o(.text+0x42): undefined reference to `mysql_close'
lookups/lookups.a(mysql.o): In function `perform_mysql_search':
mysql.o(.text+0x1c2): undefined reference to `mysql_init'
mysql.o(.text+0x1db): undefined reference to `mysql_real_connect'
mysql.o(.text+0x1eb): undefined reference to `mysql_error'
mysql.o(.text+0x292): undefined reference to `mysql_query'
mysql.o(.text+0x2a2): undefined reference to `mysql_error'
mysql.o(.text+0x2b9): undefined reference to `mysql_use_result'
mysql.o(.text+0x2cc): undefined reference to `mysql_error'
mysql.o(.text+0x2fb): undefined reference to `mysql_num_fields'
mysql.o(.text+0x309): undefined reference to `mysql_fetch_fields'
mysql.o(.text+0x31f): undefined reference to `mysql_fetch_lengths'
mysql.o(.text+0x50e): undefined reference to `mysql_fetch_row'
mysql.o(.text+0x54f): undefined reference to `mysql_free_result'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/root/src/exim-3.22/build-Linux-i386'
make: *** [go] Error 2



Any info *much* appreciated...

--

Regards
Chris Knipe