On Friday 16 July 2004 23:15, Ewan Bain wrote:
> I have installed vpopmail + MySQL and it works well. I'm now trying to get
> Courier to work but the compile fails with.
>
> Compiling authvchkpw.c
> In file included from authvchkpw.c:20:
> vpopmail_config.h:1:29: /include/config.h: No such file or directory
> authvchkpw.c: In function `auth_vchkpw_changepass':
> authvchkpw.c:167: warning: passing arg 1 of `parse_email' discards
> qualifiers from pointer target type
> authvchkpw.c:199: warning: passing arg 3 of `vpasswd' discards qualifiers
> from pointer target type
> make[2]: *** [authvchkpw.o] Error 1
> make[2]: Leaving directory `/cp/misc/src/courier-imap-3.0.3/authlib'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/cp/misc/src/courier-imap-3.0.3/authlib'
> make: *** [install-recursive] Error 1
>
> I've searched around on google and this list but have not found an answer
> that fixes the problem.
>
> I'm using vpopmail version 5.4.1 with the home dir /cp/apps/vpopmail. it
> runs as the user cp and group cp.
>
> I'm trying to compile Courier-IMAP version 3.0.3 with the following :
> ./configure \
> --prefix=/cp/apps \
> --without-authpam \
> --without-authldap \
> --without-authpwd \
> --without-authmysql \
> --without-authpgsql \
> --without-authshadow \
> --without-authuserdb \
> --without-authcustom \
> --without-authcram \
> --without-authdaemon \
> --with-authvchkpw \
> --with-ssl \
> --with-trashquota
>
> I have tried to compile both as root and as cp(the vpopmail user). I set
> the following as configure was looking for them.
> /etc/lib_deps = '-L/cp/apps/vpopmail/lib -lvpopmail'
> /etc/inc_deps = '-I/cp/apps/vpopmail/include/'  (with and without the
> trailing /)
>
> I have also tried :
> export LDFLAGS='-L/cp/apps/vpopmail/lib'
> export CPPFLAGS='-I/cp/apps/vpopmail/include'
>
> All the above produce exactly the same error.
>
> I'm also not sure why it is looking for /include/config.h as I can not find
> a reference to it in vpopmail_config.h (apart from the fact that it's the
> same as the config.h file in the same folder).
>
> I have spent all day trying to get this to work and I'm not sure what else
> to try (it's probably something really simple). If anyone can help, that
> would be great.
>
> Thanks,
> Ewan

I have managed to get this working on my own.

I had not spotted the vpopmail_config.h file in authlib. Doing configure 
then :
echo '#include "/cp/apps/vpopmail/include/config.h"' > 
authlib/vpopmail_config.h
has fixed the problem.

Reply via email to