|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: Re: complie with mysql
From: Liviu Daia (Liviu.Daia
imar.ro)Date: Thu Nov 02 2000 - 17:56:12 CST
- Next message: Carl St-Jacques: "openldap 2.0.6 + postfix"
- Previous message: Matthew Hawkins: "Re: Needed: Pros & Cons for each UCE measure"
- In reply to: jin: "complie with mysql"
- Reply: Liviu Daia: "Re: complie with mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2 November 2000, jin <jin
omneproman.com> wrote:
> Hello,
>
> I've got Postfix running well. I am really interested in compiling
> Postfix with MySQL support, I've got quite large number of dynamic
> contact data in MySQL handling mailing lists. Postmap+Virtual and
> Postalias+Aliases are now used for mailing list management intead of
> from MySQL.
>
> The problem encountered while compiling is described below:
>
> what I did -
>
> # gzip -dc snapshot-20001030.tar.gz | tar xf -
> # cd snapshot-20001030
> # make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL \
> -I/usr/include/mysql' 'AUXLIBS=/usr/lib/mysql/libmysqlclient.a -lm'
>
> # make
>
> I've got error message ..
>
> ....
> [src/smtpstone]
> ....
> [src/sendmail]
> gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O
> -I. -I../../include -DLINUX2 -c sendmail.c
> gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O
> -I. -I../../include -DLINUX2 -o sendmail sendma
> il.o ../../lib/libglobal.a ../../lib/libutil.a
> /usr/lib/mysql/libmysqlclient.a -lm -ldb -lnsl -lresolv
> cp sendmail ../../bin
> [src/error]
> gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O
> -I. -I../../include -DLINUX2 -c error.c
> gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -g -O
> -I. -I../../include -DLINUX2 -o error error.o .
> ./../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
> /usr/lib/mysql/libmysqlclient.a -lm -ldb -lnsl -lresolv
> /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function
> `my_uncompress':
> my_compress.o(.text+0x97): undefined reference to `uncompress'
> /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function
> `my_compress_alloc':
> my_compress.o(.text+0x12b): undefined reference to `compress'
> collect2: ld returned 1 exit status
> make: *** [error] Error 1
> make: *** [update] Error 1
Your MySQL was compiled with zlib. Since libmysqlclient.a is a
static library, you need to resolve these kind of dependencies manually.
Add "-lz" to AUXLIBS just before the "-lm". Expect to have the same
problem each time you link something against libmysqlclient.
Regards,
Liviu Daia
-- Dr. Liviu Daia e-mail: Liviu.Daiaimar.ro Institute of Mathematics web page: http://www.imar.ro/~daia of the Romanian Academy PGP key: http://www.imar.ro/~daia/daia.asc
- Next message: Carl St-Jacques: "openldap 2.0.6 + postfix"
- Previous message: Matthew Hawkins: "Re: Needed: Pros & Cons for each UCE measure"
- In reply to: jin: "complie with mysql"
- Reply: Liviu Daia: "Re: complie with mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]