Do I have to change anything else to make this toaster mysql based? Does it mean that I can use all other scripts in this toaster everything will work mysql based?
TIA Edvin Seferovic -----Urspr�ngliche Nachricht----- Von: Bill Shupp [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 21. Februar 2004 19:39 An: [EMAIL PROTECTED] Betreff: Re: [toaster] cgibin [solved] & vpopmail with mysql database SEFEROVIC Edvin wrote: > Hello everyone... > > First I would like to thank all that helped me about my cgi problem.. it was > almost a RTFM mistake, but as least I solved it. My configuration is working > properly now, but I would like to store all my domain information etc in a > mysql database. So I decided to recompile and install vpopmail... my > configure command looks as follows: > > ./configure --enable-logging=v --enable-auth-module=mysql > --enable-auth-logging=n --enable-mysql-logging=n --enable-valias > --disable-passwd --enable-roaming-users --disable-many-domains > --enable-mysql-limits > > I installed vpopmail without problems, but as far I as now I have to > recompile and install qmail.. so I went to > /var/src/netqmail-1.05/netqmail-1.05 and without applying patch ( I assume > that once is enough ;) ) I tried to do a new MAKE .. and then I got this > message while making auth.c: > > /home/vpopmail/lib/libvpopmail.a(vauth.o)(.text+0x26d3):/var/src/vpopmail-5. > 4.1/vauth.c:1591: undefined reference to `mysql_query' > /home/vpopmail/lib/libvpopmail.a(vauth.o)(.text+0x26e7):/var/src/vpopmail-5. > 4.1/vauth.c:1592: undefined reference to `mysql_error' > /home/vpopmail/lib/libvpopmail.a(vauth.o)(.text+0x273b): In function > `vdel_limits': > /var/src/vpopmail-5.4.1/vauth.c:1604: undefined reference to `mysql_query' > /home/vpopmail/lib/libvpopmail.a(vauth.o)(.text+0x14cc): In function > `vupdate_rules': > /var/src/vpopmail-5.4.1/vauth.c:836: undefined reference to > `mysql_free_result' > collect2: ld returned 1 exit status > make: *** [qmail-smtpd] Error 1 > > As far as I can see this has something to do with mysql api. I have devel > libs installed, and vpopmail found my mysql directories... You are using the CDB version of chkuser, which the toaster defaults to (since the toaster is cdb based). You need to remove the chkuser patch, then use this one instead: http://shupp.org/patches/chkuser-0.6.mysql.patch After applying this patch, edit conf-mysql and make sure that the path to libmysqlclient.a is correct. Then you should be able to recompile qmail without errors. Regards, Bill Shupp
