1 message in net.sourceforge.lists.courier-users[courier-users] problems compiling vp...
FromSent OnAttachments
lao nightwolfDec 4, 2002 12:34 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] problems compiling vpopmail-5.3.9, courier-imap-1.6.1 with mysql-3.23.52Actions...
From:lao nightwolf (laon@hotmail.com)
Date:Dec 4, 2002 12:34:44 am
List:net.sourceforge.lists.courier-users

Hello,

I hope someone can help me with this one, I'm trying to get the thing working for a couple weeks now but can't find a solution:

As there's not really a manual of how to implement vpopmail/courierimap together, I tried two possiblities which you can find below, I hope you can give some tips how to solve the problem. I'm using vpopmail 5.3.9-devel and courier-imap-1.61. The server is a new server without any previous (older) software ever installed.

vpopmail is compiled with following options and is authenticating without any problem:

./configure --enable-mysql-logging=y --enable-learn-passwords=y --enable-mysql=y --enable-defaultquota=20000000S

I also added inc_deps and lib_deps as they didn't exist after vpopmail install.

echo "-I/home/vpopmail/include” > ~vpopmail/etc/inc_deps echo "-L/home/vpopmail/lib -L/home/vpopmail/lib/libvpopmail.a -L/usr/lib/mysql -lmysqlclient -lz" > ~vpopmail/etc/lib_deps chown vpopmail.vchkpw ~vpopmail/etc/*

As I try to get courierimap compiled with following options I get following error:

./configure --without-ipv6 --without-authdaemon --enable-workarounds-for-imap-client-bugs --without-authcustom --without-authcram --without-authuserdb --without-authpam --without-authshadow --without-authpwd --without-authldap --without-authmysql

Making install in authlib make[1]: Entering directory `/tmp/courier-imap-1.6.1/authlib' gcc -I/home/vpopmail/include -g -O2 -Wall -I.. -I./.. -o authvchkpw modauthv chkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a ../md5/libmd5.a ../sha1/lib sha1.a -L/home/vpopmail/lib -L/home/vpopmail/lib/libvpopmail.a -L/usr/lib/mysql -lmysqlclient -lz -lm -lcrypt libauth.a(authvchkpw.o): In function `auth_vchkpw_changepass': /tmp/courier-imap-1.6.1/authlib/authvchkpw.c:141: undefined reference to `vget_assign' /tmp/courier-imap-1.6.1/authlib/authvchkpw.c:142: undefined reference to `vauth_getpw' /tmp/courier-imap-1.6.1/authlib/authvchkpw.c:159: undefined reference to `vpasswd' libauth.a(preauthvchkpw.o): In function `auth_vchkpw_pre': /tmp/courier-imap-1.6.1/authlib/preauthvchkpw.c:54: undefined reference to `parse_email' /tmp/courier-imap-1.6.1/authlib/preauthvchkpw.c:55: undefined reference to `vget_assign' /tmp/courier-imap-1.6.1/authlib/preauthvchkpw.c:56: undefined reference to `vauth_getpw' /tmp/courier-imap-1.6.1/authlib/preauthvchkpw.c:59: undefined reference to `make_user_dir' /tmp/courier-imap-1.6.1/authlib/preauthvchkpw.c:60: undefined reference to `vauth_getpw' /tmp/courier-imap-1.6.1/authlib/preauthvchkpw.c:63: undefined reference to `vset_lastauth' /tmp/courier-imap-1.6.1/authlib/preauthvchkpw.c:68: undefined reference to `vclose' collect2: ld returned 1 exit status make[1]: *** [authvchkpw] Error 1 make[1]: Leaving directory `/tmp/courier-imap-1.6.1/authlib' make: *** [install-recursive] Error 1

I also tried to compile courier-imap another way which you can find here below:

-----------------------------------------------------------------------------------------------------------------------

./configure --without-ipv6 --without-authdaemon --enable-workarounds-for-imap-client-bugs --without-authcustom --without-authcram --without-authuserdb --without-authpam --without-authshadow --without-authpwd --without-authldap --with-authmysql --without-authvchkpw

When I compile courier-imap this way everything compiles fine, but when I start courier-imap it doesn't authenticate. Does courier-imap need to authenticate via vchkpw (/home/vpopmail/bin) or via the created authmysql module, like the way I compiled courier-imap this way?

Also what, minimum, should be changed in authmysqlrc ?

I hope you can give me some answers.

Thank you very much.

Regards, Lao