Try:
env LIBS="-L/home/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient"
DEFS="/home/vpopmail/include"
./configure --without-authpam --without-authuserdb --enable-webpass=no --wit
hout-authpwd --without-authshadow --without-authmysql --with-cacheowner=vpop
mail --enable-cgibindir=/var/www/cgi-bin
--
--------------------------------------------
IDG New Media Einar Bordewich
Development Manager Phone: +47 2336 1420
E-Mail: eibo(at)newmedia.no
Lat: 59.91144 N Lon: 10.76097 E
--------------------------------------------
----- Original Message -----
From: "Alex Kramarov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 1:11 AM
Subject: sqwebmail doesn't compile with vpopmail+mysql - please advise :)
I have been running a qmail server for a long time, a few month ago I have
moved to vpopmail with cdb, installed qmailadmin+sqwebmail and everything
worked fine. But now I have to scale my server and move the db to mysql. I
have successfully battled with mysql - and won, compiled vpopmail with :
./configure --enable-sqwebmail-pass=n --enable-default-domain=elonet.co.il -
-enable-roaming-users=y --enable-hardquota=100000000 --enable-mysql=y --enab
le-large-site=y
and vpopmail works fine, along with qmailadmin. The problem came when I
tried to compile sqwebmail :
./configure --without-authpam --without-authuserdb --enable-webpass=no --wit
hout-authpwd --without-authshadow --without-authmysql --with-cacheowner=vpop
mail --enable-cgibindir=/var/www/cgi-bin
also tried to experiment with --enable-logincache
and --enable-webpass=vpopmail
in all cases i get the following after running make (the ending lines of it)
:
cd libauth-modules.dir ; for f in libauth-authvchkpw.a libauth-authcustom.a
; do \
test ! -f ../$f || ar x ../$f ; done
ls libauth-modules.dir/* >libauth-modules 2>/dev/null
rm -f libauth.a
ar cru libauth.a authexit.o chain.o changeuidgid.o checkpassword.o
authstaticlistsearch.o copyargv.o success.o checkpasswordmd5.o authsasl.o
authsaslcram.o authsasllogin.o authsaslplain.o authsaslfrombase64.o
authsasltobase64.o authsaslclient.o authsaslclientcram.o
authsaslclientcrammd5.o authsaslclientcramsha1.o authsaslclientlogin.o
authsaslclientplain.o cramlib.o authstaticlist.o `cat libauth-modules`
ranlib libauth.a
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall -I
.. -I./.. -c authmod.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall -I
.. -I./.. -c authmodclient.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall -I
.. -I./.. -c authmodfail.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall -I
.. -I./.. -c authmoduser.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall -I
.. -I./.. -c authmoduser2.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall -I
.. -I./.. -c authmoduser3.c
rm -f libauthmod.a
ar cru libauthmod.a authmod.o authmodclient.o authmodfail.o authmoduser.o
authmoduser2.o authmoduser3.o
ranlib libauthmod.a
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall -I
.. -I./.. -c modauthcustom.c
gcc -I/home/vpopmail/include -g -O2 -Wall -I.. -I./.. -L/home/vpopmail/lib
-o authcustom modauthcustom.o libauthmod.a libauth.a
../md5/libmd5.a -lcrypt
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall -I
.. -I./.. -c modauthvchkpw.c
gcc -I/home/vpopmail/include -g -O2 -Wall -I.. -I./.. -L/home/vpopmail/lib
-o authvchkpw modauthvchkpw.o libauthmod.a libauth.a
../md5/libmd5.a -lvpopmail -lm -lcrypt
/home/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open':
/root/qmail-installs/vpopmail-4.9.9/vauth.c:70: undefined reference to
`mysql_init'
/root/qmail-installs/vpopmail-4.9.9/vauth.c:72: undefined reference to
`mysql_real_connect'
/root/qmail-installs/vpopmail-4.9.9/vauth.c:74: undefined reference to
`mysql_real_connect'
/root/qmail-installs/vpopmail-4.9.9/vauth.c:81: undefined reference to
`mysql_query'
/root/qmail-installs/vpopmail-4.9.9/vauth.c:86: undefined reference to
`mysql_store_result'
/root/qmail-installs/vpopmail-4.9.9/vauth.c:87: undefined reference to
`mysql_free_result'
/root/qmail-installs/vpopmail-4.9.9/vauth.c:88: undefined reference to
`mysql_select_db'
/home/vpopmail/lib/libvpopmail.a(vauth.o): In function
`vauth_adddomain_size':
/root/qmail-installs/vpopmail-4.9.9/vauth.c:121: undefined reference to
`mysql_query'
/root/qmail-installs/vpopmail-4.9.9/vauth.c:125: undefined reference to
`mysql_store_result'
/root/qmail-installs/vpopmail-4.9.9/vauth.c:126: undefined reference to
`mysql_free_result'
[snip long list of functions...]
collect2: ld returned 1 exit status
make[1]: *** [authvchkpw] Error 1
make[1]: Leaving directory `/root/qmail-installs/sqwebmail-1.2.5/authlib'
make: *** [all-recursive] Error 1
it's probably missing some include files - does anyone know what is this and
how do I ./configure?
I am running RedHat7 (stripped down from most of the junk it comes with),
installed mysql rpm that came with it, including the mysql-devel.rpm
Thank you in advance.