hi

your mysql library flag is missing in authlib/Makefile

in authlib/Makefile file
find LDFLAGS line and set it to
LDFLAGS=-L/your/mysql/lib/path -lmysqlclient 
change the /your/mysql/lib/path to with your mysql lib dir
if you do not know , where it is
use
#find / -name libmysqlclient.a  
it will print you to your mysql lib dir

byee

On Mon, 22 Jan 2001, BOFH wrote:
> Hi!
> 
> RH 6.2, mysql 3.23.31 installed in /mysql vpopmail-4.9.6 installed in
> /mail/vpopmail. when i'm building courier-imap-1.3.0..
> 
> ./configure
> mmake
> [...]
> 
> gcc -I/mail/vpopmail/include -g -O2 -Wall -I.. -I./..
> -L/mail/vpopmail/lib -o authuser db modauthuserdb.o libauthmod.a libauth.a
> ../userdb/libuserdb.a ../gdbmobj/libgdbmobj.a
>   -lgdbm ../md5/libmd5.a -lcrypt gcc -DHAVE_CONFIG_H -I. -I. -I.
> -I/mail/vpopmail/include -g -O2 -Wall -I.. -I./.. -c
>  modauthvchkpw.c gcc -I/mail/vpopmail/include -g -O2 -Wall -I.. -I./..
> -L/mail/vpopmail/lib -o authvchk pw modauthvchkpw.o libauthmod.a libauth.a
> ../md5/libmd5.a -lvpopmail -lm -lcrypt
> //mail/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open':
> /root/vpopmail-4.9.6/vauth.c:59: undefined reference to `mysql_init'
> /root/vpopmail-4.9.6/vauth.c:61: undefined reference to
> `mysql_real_connect' /root/vpopmail-4.9.6/vauth.c:63: undefined reference
> to `mysql_real_connect' /root/vpopmail-4.9.6/vauth.c:70: undefined
> reference to `mysql_query' /root/vpopmail-4.9.6/vauth.c:123: undefined
> reference to `mysql_query' /root/vpopmail-4.9.6/vauth.c:127: undefined
> reference to `mysql_store_result' /root/vpopmail-4.9.6/vauth.c:128:
> undefined reference to `mysql_free_result'
> /mail/vpopmail/lib/libvpopmail.a(vauth.o): In function
> `vauth_adduser_size': /root/vpopmail-4.9.6/vauth.c:199: undefined
> 
> [...]
> some other errors..
> [...]
> 
> /root/vpopmail-4.9.6/vauth.c:661: undefined reference to
> `mysql_store_result' /root/vpopmail-4.9.6/vauth.c:662: undefined reference
> to `mysql_free_result' /mail/vpopmail/lib/libvpopmail.a(vauth.o): In
> function `vclose': /root/vpopmail-4.9.6/vauth.c:676: undefined reference
> to `mysql_close' collect2: ld returned 1 exit status make[1]: ***
> [authvchkpw] Error 1 make[1]: Leaving directory
> `/root/courier-imap-1.3.0/authlib'
> make: *** [all-recursive] Error 1
> 
> 
> Any sugestions?
> 
> __
> WS
-- 
Ismail YENIGUL
<? echo "UNIX: Live Free or Die !\n"; ?>

Reply via email to