Re: [Exim] Mysql and Exim Compile Time Error (zlib?)

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Simon Alman
Ημερομηνία:  
Προς: Jerry Phul
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Mysql and Exim Compile Time Error (zlib?)
Hi

I had the same problem during compile on a redhat 9 system with exim 4.14.
The following was added to my Local/Makefile; specifically the -lz for
compress.

> LOOKUP_INCLUDE=-I /usr/local/mysql/include
> LOOKUP_LIBS=-L /usr/local/mysql/lib -lmysqlclient -lz


I hope that helps

Regards

Simon

Jerry Phul wrote:

>--
>[ Picked text/plain from multipart/alternative ]
>Hello,
>I've gone through the list and several sites to see if I can figure out this problem I'm having (see log file below for error during compile time). I'm doing an exim 4.x install on a new RedHat Linux 9 box. I've already installed mySQL 4 with all the recommended options:
>./configure \
>        --prefix=/usr/local/mysql \
>        --with-extra-charsets=complex \
>        --enable-thread-safe-client \
>        --enable-local-infile \
>        --enable-assembler \
>        --disable-shared \
>        --with-client-ldflags=-all-static \
>        --with-mysqld-ldflags=-all-static \
>        --with-innodb \
>        --with-berkeley-db \
>        --localstatedir=/MYDIRNAME/mysql/dataI even ran the test as recommended at:
>http://www.exim.org/mailman/htdig/exim-users/Week-of-Mon-20010723/028180.html
>and all worked well.If I turn mysql support off in exim, the binaries compile fine. However, I would like to compile with mySQL support. I know zlib-1.1.4 is installed. So, what can I possibly do to get around this issue? I also modified the following params in the exim Makefile for linux and my version of the mySQL install:
>LOOKUP_INCLUDE=-I /usr/include -I /usr/local/mysql/include/mysql -I /usr/local/mysql/include
>LOOKUP_LIBS=-L/usr/local/lib -llber -L/usr/local/mysql/lib/mysql -lmysqlclientThanks,
>mezzademon@???
>gcc -c -O -I/usr/local/include -I.    string.c
>gcc -c -O -I/usr/local/include -I.    tls.c
>gcc -c -O -I/usr/local/include -I.    transport.c
>gcc -c -O -I/usr/local/include -I.    verify.c
>gcc -c -O -I/usr/local/include -I.  -o local_scan.o ../src/local_scan.c

>
>awk '{ print ($1+1) }' cnumber.h > cnumber.temp
>rm -f cnumber.h; mv cnumber.temp cnumber.h
>gcc -c -O -I/usr/local/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 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 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 local_scan.o  version.o \
>  pcre/libpcre.a \
>  routers/routers.a transports/transports.a lookups/lookups.a \
>  auths/auths.a \
>  -lresolv -lnsl -lcrypt    \
>  -L/usr/local/lib -lwrap -ldb -L/usr/local/lib -llber -L/usr/local/mysql/lib/mysql -lmysqlclient
>/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x65): In function `my_compress':
>: undefined reference to `compress'
>/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x116): In function `my_compress_alloc':
>: undefined reference to `compress'
>/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x18d): In function `my_uncompress':
>: undefined reference to `uncompress'
>collect2: ld returned 1 exit status
>make[1]: *** [exim] Error 1
>make[1]: Leaving directory `/root/installers/exim/temp/exim-4.14/build-Linux-i386'
>make: *** [go] Error 2

>
>
>---------------------------------
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo.
>--
>
>--
>
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>
>
>
>