Kewl, thanks Ken, it worked in one shot,
Please let it be in the FAQ! I delayed this by a month cause I was too
lazy to get on this mailing list!
SFQ
At 02:31 PM 6/16/01 +0200, Ken Jones wrote:
>This should be a FAQ:
>
>do this:
>env "LIBS=-L/usr/lib/mysql -lmysqlclient -lz" \
>./configure --enable-webpass=vpopmail --without-authuserdb
>--without-authpam \
>--without-authpwd --without-authshadow --without-authldap
>--with-cachedir \
>--without-authuserdb \
>--with-authvchkpw --enable-imageurl=/images/sqwebmail/ \
>--enable-hardtimeout=100000 \
>--enable-softtimeout=100000 \
>--enable-imagedir=/usr/local/apache/htdocs/images/sqwebmail \
>--enable-cgibindir=/usr/local/apache/cgi-bin \
>--with-ispell=/usr/bin/ispell
>
>This is my configure line. Notice the first line, it adds the mysql
>libraries and path to the libraries at the begining.
>
>Ken Jones
>
>Syed Faruque Ahmed wrote:
> >
> > Hello,
> >
> > I am trying to install sqwebmail-2.1.1 on Suse-7.0 to work with Vpopmail,
> > which was installed successfully with MySQL authentication on a remote
> > server. I have used the following configure commands
> >
> > ./configure --with-htmllibdir=/usr/local/share/sqwebmail
> > --enable-cgibindir=/gos/sqwebmail/cgi-bin
> > --enable-imagedir=/usr/local/share/sqwebmail/webmail --with-authvchkpw
> > --with-cachedir --enable-logincache --enable-https --without-authpwd
> > --without-authshadow --without-authpam --without-authuserdb
> > --without-authldap --without-authdaemon --without-authmysql
> > --enable-sqllibdir=/usr/lib/mysql --enable-libs=/usr/lib
> >
> > But the output below is what I end with when I try to run "make"; (there
> > were a lot of lines before this, but most of the "undefined" references
> > were captured below with the "Error" ending), Hope this is enough to give
> > you an idea of what I missed.
> >
> > thanks in advance
> > regards
> > Faruque
> >
> > ---------------------------------------
> > /gos/vpopmail/lib/libvpopmail.a(vauth.o): In function
> `vcreate_dir_control':
> > /usr/local/vpopmail-4.9.10/vauth.c:896: undefined reference to
> `mysql_query'
> > /usr/local/vpopmail-4.9.10/vauth.c:900: undefined reference to
> > `mysql_store_result'
> > /usr/local/vpopmail-4.9.10/vauth.c:901: undefined reference to
> > `mysql_free_result'
> > /usr/local/vpopmail-4.9.10/vauth.c:919: undefined reference to
> `mysql_query'
> > /usr/local/vpopmail-4.9.10/vauth.c:923: undefined reference to
> > `mysql_store_result'
> > /usr/local/vpopmail-4.9.10/vauth.c:924: undefined reference to
> > `mysql_free_result'
> > /gos/vpopmail/lib/libvpopmail.a(vauth.o): In function `vdel_dir_control':
> > /usr/local/vpopmail-4.9.10/vauth.c:934: undefined reference to
> `mysql_query'
> > /usr/local/vpopmail-4.9.10/vauth.c:938: undefined reference to
> > `mysql_store_result'
> > /usr/local/vpopmail-4.9.10/vauth.c:939: undefined reference to
> > `mysql_free_result'
> > /gos/vpopmail/lib/libvpopmail.a(vauth.o): In function `vlogauth':
> > /usr/local/vpopmail-4.9.10/vauth.c:954: undefined reference to
> `mysql_query'
> > /usr/local/vpopmail-4.9.10/vauth.c:964: undefined reference to
> `mysql_query'
> > /usr/local/vpopmail-4.9.10/vauth.c:968: undefined reference to
> > `mysql_store_result'
> > /usr/local/vpopmail-4.9.10/vauth.c:969: undefined reference to
> > `mysql_free_result'
> > /gos/vpopmail/lib/libvpopmail.a(vauth.o): In function
> `vcreate_lastauth_table':
> > /usr/local/vpopmail-4.9.10/vauth.c:977: undefined reference to
> `mysql_query'
> > /usr/local/vpopmail-4.9.10/vauth.c:981: undefined reference to
> > `mysql_store_result'
> > /usr/local/vpopmail-4.9.10/vauth.c:982: undefined reference to
> > `mysql_free_result'
> > collect2: ld returned 1 exit status
> > make[1]: *** [authvchkpw] Error 1
> > make[1]: Leaving directory `/usr/local/sqwebmail-2.1.1/authlib'
> > make: *** [all-recursive] Error 1
> > -------------------------------------------