----- Original Message -----
From: "Roman Serbski" <[EMAIL PROTECTED]>
To: "Joe Modjeski" <[EMAIL PROTECTED]>
Sent: Monday, October 22, 2001 2:41 AM
Subject: Re: courier-imap and "vpopmail too old" error (II)
> Hi Joe!
>
> Thank you very much for your response.
> I'm sorry, as I understood my configure script should look something
> like that?
>
> ...
> CFLAGS="-I/home/vpopmail/include $CFLAGS"
> VPOPMAILLIBS="-I/home/vpopmail/lib -lvpopmail -lmysqlclient -lz"
> ...
Yes, that looks right to me.
>
> Should I pass any parameters with LDFLAGS?
> One year ago, when I compiled old version of Courier-IMAP with Vpopmail
> 4.9.8 I had to compile it with
> env "-L/path/to/mysql/libs -lmysqlclient" ./configure ...
I would do an `ldconfig -p | grep mysql'
your return should look something like :
[prodigal@neo prodigal]$ ldconfig -p | grep mysql
libmysqlclient.so.10 (libc6) =>
/usr/tank/misc/mysql/lib/mysql/libmysqlclient.so.10
libmysqlclient.so (libc6) =>
/usr/tank/misc/mysql/lib/mysql/libmysqlclient.so
If it isn't then yes you will probably have to use the LDFLAGS environment
to pass the mysql linking.
Joe Modjeski
Systems Administrator
CommSpeed
>
> Looking forward to hear from you.
>
> Regards,
> Roman
>
> Joe Modjeski wrote:
> >>As I understood it tries to find ~vpopmail/etc/inc_deps and
> >>~vpopmail/etc/lib_deps. Just curious, what is inc_deps and lib_deps? I
> >>guess it has something to do with 4.9.x devel? Am I wrong?
> >>
> >
> > You answer this question below.
> >
> >
> >
> >># if test -f ${vpopmail_home}/etc/lib_deps
> >># then
> >>CFLAGS="-I/home/vpopmail/include $CFLAGS"
> >>
> >
> > The line that you added is what is in the ~vpopmail/etc/inc_deps
> >
> >
> >>VPOPMAILLIBS="-L/home/vpopmail/lib"
> >>
> >
> > Yep, what you added here is what is in the ~vpopmain/etc/lib_deps, with
the
> > exception of the '-lvpopmail'. Also if you compiled with mysql support
you
> > need to add '-lmysqlclient -lz'
> >
> >
> > gcc -I/home/vpopmail/include -g -O2 -Wall -I.. -I./.. -o authvchkpw
> >
> >>modauthvchkpw.o libauthmod.a libauth.a ../md5/libmd5.a ../sha1/libsha1.a
> >>-L/home/vpopmail/lib -lm -lcrypt
> >>libauth.a(authvchkpw.o): In function `auth_vchkpw_changepass':
> >>/usr/tmp/courier-imap-1.3.11.20011014/authlib/authvchkpw.c(.text+0x1ee):
> >>undefined reference to `vget_assign'
> >>
> >
> > Undefined references are usually caused by the linker not being able to
find
> > the external functions in the library. You put in the -L~vpopmail/lib,
so
> > you told the linker where to find the library but you missed passing the
> > '-lvpopmail' telling the linker which library the functions are stored
in.
> >
> > Joe Modjeski
> > Systems Administrator
> > CommSpeed
> >
> >
> >>Thank you very much.
> >>Regards,
> >>Roman
> >>
> >>
> >>
> >>
> >
> >
> >
>
>
>
>