OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: complie with mysql
From: jin (jinomneproman.com)
Date: Thu Nov 02 2000 - 10:36:46 CST


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

Can anyone help, please?