[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qmailadmin
Subject:    [qmailadmin] compiling qmailadmin
From:       "Elie Koivunen" <elie.koivunen () medianorthgroup ! com>
Date:       2002-11-22 11:36:08
[Download RAW message or body]

Hello, 

i think my case has been brought up earlier but from a different perspective,


im attempting to transfer a qmail/vpopmail/qmailadmin/sqwebmail system 
to another machine (from redhat 6.2 to SuSE 8.1)
now when i transfered all the files and binaries and loaded the mysql
database

mysql works fine,
qmail works fine,
emlm is in the apropriate path, 

but qmailadmin and sqwebmail just do not communicate with mysql, i tried 
other remote clients to connect to mysql and tried locally from the shell
and i didnt face any problems, in qmailadmin i keep getting the following
error
===
vsql_getpw: failed select 
===
and sqwebmail is just not able to authenticate. 

so i thought of giving up on the old binaries and compiling new ones 
[(something that im reluctant of doing because the mailing system was 
"customized" by a third party and is version dependant *grrr* well at least 
the sqwebmail...)]

QMAIL: i didnt have problems with qmail and configured it to run with INETD
 (im not expecting a heavy load so its enough)

VPOPMAIL: with the redirecting to the correct source paths of libs and
headers 
                   it compiles and works well and communicates with mysql

EZMLM: i just copied the binaries fom the old system

SQWBMAIL: i just copied the binaries from the old system

as for 
QMAILADMIN: well when i attempt to compile i get the following error

===
gcc  -g -O2  -o qmailadmin  qmailadmin.o alias.o autorespond.o forward.o
mailinglist.o user.o util.o auth.o template.o command.o sho
w.o cgi.o limits.o dotqmail.o -L/home/vpopmail/lib -lvpopmail -lnsl -lm
-lcrypt
/home/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open_update':
/adm/qmailadmin-1.0.6/vauth.c:108: undefined reference to `mysql_init'
/adm/qmailadmin-1.0.6/vauth.c:111: undefined reference to
`mysql_real_connect'
/adm/qmailadmin-1.0.6/vauth.c:115: undefined reference to `mysql_error'
/adm/qmailadmin-1.0.6/vauth.c:121: undefined reference to
`mysql_real_connect'
/adm/qmailadmin-1.0.6/vauth.c:1076: undefined reference to
`mysql_free_result'
.....etc...etc... 
collect2: ld returned 1 exit status
make[2]: *** [qmailadmin] Error 1
make[2]: Leaving directory `/adm/qmailadmin-1.0.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/adm/qmailadmin-1.0.6'
make: *** [all-recursive-am] Error 2
===


now can someone please assist in pointing what is going wrong here and why 
is if anyone has a slightest clue with the old binaries just are not able to 
communicate with Mysql?? do i need to configure apache or mysql in some 
exceptional way for this? (if so i have not seen any threads that would point
that)

hoping for some more feedback this time

regards
Elie


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>compiling qmailadmin</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello, </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">i think my case has been brought up earlier but from a \
different perspective, </FONT> </P>

<P><FONT SIZE=2 FACE="Arial">im attempting to transfer a \
qmail/vpopmail/qmailadmin/sqwebmail system </FONT>

<BR><FONT SIZE=2 FACE="Arial">to another machine (from redhat 6.2 to SuSE 8.1)</FONT>

<BR><FONT SIZE=2 FACE="Arial">now when i transfered all the files and binaries and \
loaded the mysql database</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">mysql works fine,</FONT>

<BR><FONT SIZE=2 FACE="Arial">qmail works fine,</FONT>

<BR><FONT SIZE=2 FACE="Arial">emlm is in the apropriate path, </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">but qmailadmin and sqwebmail just do not communicate \
with mysql, i tried </FONT>

<BR><FONT SIZE=2 FACE="Arial">other remote clients to connect to mysql and tried \
locally from the shell</FONT>

<BR><FONT SIZE=2 FACE="Arial">and i didnt face any problems, in qmailadmin i keep \
getting the following error</FONT>

<BR><FONT SIZE=2 FACE="Arial">===</FONT>

<BR><FONT FACE="Times New Roman">vsql_getpw: failed select </FONT>

<BR><FONT SIZE=2 FACE="Arial">===</FONT>

<BR><FONT SIZE=2 FACE="Arial">and sqwebmail is just not able to authenticate. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">so i thought of giving up on the old binaries and \
compiling new ones </FONT>

<BR><FONT SIZE=2 FACE="Arial">[(something that im reluctant of doing because the \
mailing system was </FONT>

<BR><FONT SIZE=2 FACE="Arial">&quot;customized&quot; by a third party and is version \
dependant *grrr* well at least </FONT>

<BR><FONT SIZE=2 FACE="Arial">the sqwebmail...)]</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">QMAIL: i didnt have problems with qmail and configured \
it to run with INETD</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;(im not expecting a heavy load so its \
enough)</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">VPOPMAIL: with the redirecting to the correct source \
paths of libs and headers </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
it compiles and works well and communicates with mysql</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">EZMLM: i just copied the binaries fom the old \
system</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">SQWBMAIL: i just copied the binaries from the old \
system</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">as for </FONT>

<BR><FONT SIZE=2 FACE="Arial">QMAILADMIN: well when i attempt to compile i get the \
following error</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">===</FONT>

<BR><FONT SIZE=2 FACE="Arial">gcc&nbsp; -g -O2&nbsp; -o qmailadmin&nbsp; qmailadmin.o \
alias.o autorespond.o forward.o mailinglist.o user.o util.o auth.o template.o \
command.o sho</FONT></P>

<P><FONT SIZE=2 FACE="Arial">w.o cgi.o limits.o dotqmail.o -L/home/vpopmail/lib \
-lvpopmail -lnsl -lm -lcrypt</FONT>

<BR><FONT SIZE=2 FACE="Arial">/home/vpopmail/lib/libvpopmail.a(vauth.o): In function \
`vauth_open_update':</FONT>

<BR><FONT SIZE=2 FACE="Arial">/adm/qmailadmin-1.0.6/vauth.c:108: undefined reference \
to `mysql_init'</FONT>

<BR><FONT SIZE=2 FACE="Arial">/adm/qmailadmin-1.0.6/vauth.c:111: undefined reference \
to `mysql_real_connect'</FONT>

<BR><FONT SIZE=2 FACE="Arial">/adm/qmailadmin-1.0.6/vauth.c:115: undefined reference \
to `mysql_error'</FONT>

<BR><FONT SIZE=2 FACE="Arial">/adm/qmailadmin-1.0.6/vauth.c:121: undefined reference \
to `mysql_real_connect'</FONT>

<BR><FONT SIZE=2 FACE="Arial">/adm/qmailadmin-1.0.6/vauth.c:1076: undefined reference \
to `mysql_free_result'</FONT>

<BR><FONT SIZE=2 FACE="Arial">.....etc...etc... </FONT>

<BR><FONT SIZE=2 FACE="Arial">collect2: ld returned 1 exit status</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[2]: *** [qmailadmin] Error 1</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[2]: Leaving directory \
`/adm/qmailadmin-1.0.6'</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[1]: *** [all-recursive] Error 1</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[1]: Leaving directory \
`/adm/qmailadmin-1.0.6'</FONT>

<BR><FONT SIZE=2 FACE="Arial">make: *** [all-recursive-am] Error 2</FONT>

<BR><FONT SIZE=2 FACE="Arial">===</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">now can someone please assist in pointing what is going \
wrong here and why </FONT>

<BR><FONT SIZE=2 FACE="Arial">is if anyone has a slightest clue with the old binaries \
just are not able to </FONT>

<BR><FONT SIZE=2 FACE="Arial">communicate with Mysql?? do i need to configure apache \
or mysql in some </FONT>

<BR><FONT SIZE=2 FACE="Arial">exceptional way for this? (if so i have not seen any \
threads that would point that)</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">hoping for some more feedback this time</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">regards</FONT>

<BR><FONT SIZE=2 FACE="Arial">Elie</FONT>
</P>

</BODY>
</HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic