[Exim] Exim with mysql+exiscan - error

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Dilip M
Dátum:  
Címzett: exim-users@exim.org
Tárgy: [Exim] Exim with mysql+exiscan - error
-----------------------------------------------------------------------------
I'm getting this error : while trying to Build Exim with MYSQL+exiscan
-----------------------------------------------------------------------------
rm -f exim
gcc -o exim  acl.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o
demime.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 malware.o match.o
moan.o os.o parse.o queue.o rda.o readconf.o receive.o regex.o retry.o
rewrite.o rfc2047.o route.o search.o sieve.o smtp_in.o smtp_out.o spam.o
spool_in.o spool_mbox.o spool_out.o store.o string.o tls.o tnef.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    \
   -lwrap -ldl -ldb -L/usr/lib/mysql -lpam
lookups/lookups.a(mysql.o): In function `mysql_tidy':
mysql.o(.text+0x45): undefined reference to `mysql_close'
lookups/lookups.a(mysql.o): In function `perform_mysql_search':
mysql.o(.text+0x23b): undefined reference to `mysql_init'
mysql.o(.text+0x253): undefined reference to `mysql_real_connect'
mysql.o(.text+0x263): undefined reference to `mysql_error'
mysql.o(.text+0x2f2): undefined reference to `mysql_query'
mysql.o(.text+0x302): undefined reference to `mysql_error'
mysql.o(.text+0x316): undefined reference to `mysql_use_result'
mysql.o(.text+0x329): undefined reference to `mysql_field_count'
mysql.o(.text+0x352): undefined reference to `mysql_affected_rows'
mysql.o(.text+0x36f): undefined reference to `mysql_error'
mysql.o(.text+0x39e): undefined reference to `mysql_num_fields'
mysql.o(.text+0x3ac): undefined reference to `mysql_fetch_fields'
mysql.o(.text+0x3c2): undefined reference to `mysql_fetch_lengths'
mysql.o(.text+0x5b0): undefined reference to `mysql_fetch_row'
mysql.o(.text+0x5f1): undefined reference to `mysql_free_result'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/opt/exim-4.30/build-Linux-i386'
make: *** [go] Error 2


-----------------------------------------------------------------------------
**NOTE**

vi Local/Makefile
LOOKUP_DBM=yes
LOOKUP_LSEARCH=yes
LOOKUP_MYSQL=yes (This has to un-commented right ? )
.
.
.
LOOKUP_INCLUDE=-I /usr/include/mysql
LOOKUP_LIBS=-L/usr/lib/mysql -lpam
-----------------------------------------------------------------------------
# rpm -qa|egrep -i 'db4|mysql'

mysql-3.23.52-3
db4-4.0.14-14
mysql-devel-3.23.52-3
mysql-server-3.23.52-3
db4-devel-4.0.14-14
MySQL-shared-3.23.49a-1
gpg-pubkey-db42a60e-37ea5438
perl-DBD-MySQL-2.1017-3
-----------------------------------------------------------------------------

IF I COMMENT LOOKUP_MYSQL,EXIM IS GETTING BUILT SUCESSFULY!!
#LOOKUP_MYSQL=yes
-----------------------------------------------------------------------------

Whats happening !!

-Dilip