[vchkpw] compiling vusaged

2010-06-22 Thread Qmail List
Hi,

I am trying out vusaged .. Installed a fresh copy of CentOS 5.5 i386. I got
the below error. Anyone has a work-around? 

[r...@localhost vusaged]# cd /var/src/vpopmail-5.5.0/vusaged
[r...@localhost vusaged]# make
gcc -o vusaged vusaged.o socket.o grow.o signal.o packet.o query.o cache.o
user.o directory.o userstore.o list.o domain.o queue.o shutdown.o vdb.o -L..
-lvpopmail   -pthread  -ldl -lcrypt  -Xlinker -R -Xlinker /home/vpopmail/lib
socket.o: In function `socket_init':
socket.c:(.text+0xc16): undefined reference to `ev_io_start'
socket.c:(.text+0xc7f): undefined reference to `ev_timer_start'
socket.o: In function `ev_default_loop':
socket.c:(.text+0xd21): undefined reference to `ev_default_loop_init'
socket.o: In function `ev_default_loop_uc':
socket.c:(.text+0xd31): undefined reference to `ev_default_loop_ptr'
socket.o: In function `socket_listen':
socket.c:(.text+0xd4e): undefined reference to `ev_loop'
socket.o: In function `socket_accept':
socket.c:(.text+0x1121): undefined reference to `ev_io_start'
socket.c:(.text+0x117a): undefined reference to `ev_io_start'
socket.o: In function `socket_close':
socket.c:(.text+0x1656): undefined reference to `ev_io_stop'
socket.c:(.text+0x166e): undefined reference to `ev_io_stop'
socket.o: In function `socket_write':
socket.c:(.text+0x1769): undefined reference to `ev_io_stop'
socket.o: In function `socket_timer':
socket.c:(.text+0x1952): undefined reference to `ev_unloop'
collect2: ld returned 1 exit status
make: *** [vusaged] Error 1

Thanks
wL


!DSPAM:4c20ba3b32718310010151!



RE: [vchkpw] compiling vusaged

2010-06-22 Thread Qmail List
Thanks Harm van Tilborg

> The usage daemon uses libev, so you should install the libev development
> headers.

> In Debian/Ubuntu they're called libev3-dev. I'm not familiar with CentOS
> to know how to do this there, but I think this should help you out.

I had installed libev-3.9 via tarball. 

I did this

cd /var/src
tar -xzf tar/libev-3.9.tar.gz
cd libev-3.9
./configure
make
make install


!DSPAM:4c20c1e432711917115304!



RE: [vchkpw] compiling vusaged

2010-06-22 Thread Qmail List
>>> The usage daemon uses libev, so you should install the libev development
>>> headers.
>> 
>>> In Debian/Ubuntu they're called libev3-dev. I'm not familiar with CentOS
>>> to know how to do this there, but I think this should help you out.
>> 
>> I had installed libev-3.9 via tarball. 
>> 
>> I did this
>> 
>> cd /var/src
>> tar -xzf tar/libev-3.9.tar.gz
>> cd libev-3.9
>> ./configure
>> make
>> make install
>
> Why are you trying to build directly in the vusaged directory?  The
> configure script in the main source directory should have detected (or
> not detected) libev and made the proper configurations or warnings.
>
> Back out into the main 5.5.0 source directory and run ./configure.  It
> will build vusaged for you.

Thanks Matt. Now I have another issue. Trying to compile qmailadmin.

/home/vpopmail/include/vpopmail.h:149:1: warning: this is the location of
the previous definition
user.c: In function âcall_hooksâ:
user.c:522: error: âVPOPMAILDIRâ undeclared (first use in this function)
user.c:522: error: (Each undeclared identifier is reported only once
user.c:522: error: for each function it appears in.)
user.c: In function âset_qmaildefaultâ:
user.c:627: error: âVPOPMAILDIRâ undeclared (first use in this function)
make[1]: *** [user.o] Error 1
make[1]: Leaving directory `/var/src/qmailadmin-1.2.14'
make: *** [all] Error 2

I had googled. But I still cant find any solution

Thanks
wL.


!DSPAM:4c215b7d32711787462413!



[vchkpw] vusaged compile error

2011-01-22 Thread Qmail List
Hi,

Tried to compile vusaged, but during the command ./configure i had encounter
the error

checking for vauth.h... yes
checking for vauth_getpw in -lvpopmail... no
checking for vauth_getall in -lvpopmail... no
checking for get_domain_entries in -lvpopmail... no
checking for client_query_quick in -lvpopmail... no
configure: error: No vauth_getpw in libvpopmail
What did i miss out?

Thanks
wL


!DSPAM:4d3bde6632712090815233!


Re: [vchkpw] vusaged compile error

2011-01-23 Thread Qmail List
Hi,

I had tried the command, but it i am still having the error.

Any other suggestion?

thanks
wL

On Sun, Jan 23, 2011 at 5:12 PM, Thibault Richard  wrote:
>
> Hello,
>
> Try with this command before
>
> cat > ~vpopmail/etc/vusagec.conf << __EOF__
> Server:
>    Disable = True;
> __EOF__
>
> Thibault
>
>
> Le dimanche 23 janvier 2011 à 15:53 +0800, Qmail List a écrit :
> > Hi,
> >
> > Tried to compile vusaged, but during the command ./configure i had
> > encounter the error
> >
> > checking for vauth.h... yes
> > checking for vauth_getpw in -lvpopmail... no
> > checking for vauth_getall in -lvpopmail... no
> > checking for get_domain_entries in -lvpopmail... no
> > checking for client_query_quick in -lvpopmail... no
> > configure: error: No vauth_getpw in libvpopmail
> >
> > What did i miss out?
> >
> > Thanks
> > wL
> >
> >
>
>
>
> 
>

!DSPAM:4d3bffe632712002244127!



Re: [vchkpw] vusaged compile error

2011-01-24 Thread Qmail List
Hi Matt,

I am trying to compile 5.4.32. I had also did make install in
/var/src/vpopmail-5.4.32 but still having the same problem.

What can i try next?

Thanks
wL

On Mon, Jan 24, 2011 at 11:09 PM, Matt Brookings  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 01/23/2011 01:53 AM, Qmail List wrote:
>> Hi,
>>
>> Tried to compile vusaged, but during the command ./configure i had
>> encounter the error
>>
>> checking for vauth.h... yes
>> checking for vauth_getpw in -lvpopmail... no
>> checking for vauth_getall in -lvpopmail... no
>> checking for get_domain_entries in -lvpopmail... no
>> checking for client_query_quick in -lvpopmail... no
>> configure: error: No vauth_getpw in libvpopmail
>> What did i miss out?
>
> What version are you compiling vusaged under?  In the 5.4 tree, you
> have to already have the version installed that vusaged compiles against.
>
> If you're compiling a 5.4 version, run "make install" in the main
> source directory, and then try to compile vusaged.
> - --
> /*
>    Matt Brookings        GnuPG Key FAE0672C
>    Software developer                     Systems technician
>    Inter7 Internet Technologies, Inc.     (815)776-9465
> */
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk09lhoACgkQIwet2/rgZyyOmgCgi+yZ/jr5hnVzXtAxLcd+Ie7F
> vbwAn3DnWLkvdCiTOP7zBSKQHugAJq53
> =Fzow
> -END PGP SIGNATURE-
>

!DSPAM:4d3d9b7e32711815617620!



Re: [vchkpw] vusaged compile error

2011-01-24 Thread Qmail List
Hi,

I wanted to recompile vpopmail. So i did a make clean. I noticed
vusagec. Is this the daemon you were mentioning about?

Is there a way to check why am i missing vusage and vauth_getpw?

test -z "libvpopmail.a" || rm -f libvpopmail.a
test -z "vchkpw vdelivermail clearopensmtp vadddomain vdeldomain
vpasswd vadduser vdeluser vaddaliasdomain vsetuserquota vpopbull
vdeloldusers vmoduser valias vuserinfo vmkpasswd vipmap vdominfo
vconvert vkill vmoddomlimits vchangepw dotqmail2valias vpopmaild vlist
authvchkpw vusagec" || rm -f vchkpw vdelivermail clearopensmtp
vadddomain vdeldomain vpasswd vadduser vdeluser vaddaliasdomain
vsetuserquota vpopbull vdeloldusers vmoduser valias vuserinfo
vmkpasswd vipmap vdominfo vconvert vkill vmoddomlimits vchangepw
dotqmail2valias vpopmaild vlist authvchkpw vusagec

Thanks
wL

On Mon, Jan 24, 2011 at 11:34 PM, Matt Brookings  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 01/24/2011 09:32 AM, Qmail List wrote:
>> Hi Matt,
>>
>> I am trying to compile 5.4.32. I had also did make install in
>> /var/src/vpopmail-5.4.32 but still having the same problem.
>>
>> What can i try next?
>
> The error means the protocol API used by the vusage daemon is not in
> the vpopmail library.  vauth_getpw is not found either, which is a
> staple vpopmail API call.  It looks like it may not be able to find
> the vpopmail library.
> - --
> /*
>    Matt Brookings        GnuPG Key FAE0672C
>    Software developer                     Systems technician
>    Inter7 Internet Technologies, Inc.     (815)776-9465
> */
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk09m/gACgkQIwet2/rgZyy/5wCfQcKTOeIPUw3cunbMxUQJAX5F
> 14cAn1CGBz5mSh5TpiudYYJQzP4U3kHq
> =qyi4
> -END PGP SIGNATURE-
>

!DSPAM:4d3d9ee832711976258561!



Re: [vchkpw] vusaged compile error

2011-01-24 Thread Qmail List
Hi,

For Vpopmail, i did this.

./configure --enable-logging=v \
make
make install-strip

Vpopmail config.log
http://pastebin.com/5xZT1EiH

Vpopmail config.h
http://pastebin.com/t6FQzp0U

For  Vusaged, i did this.
./configure
make

Vusaged config.log
http://pastebin.com/78MsKPjh

Vusaged config.h
http://pastebin.com/k9kk7Zff


Thanks
wL

On Mon, Jan 24, 2011 at 11:52 PM, Matt Brookings  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 01/24/2011 09:46 AM, Qmail List wrote:
>> Hi,
>>
>> I wanted to recompile vpopmail. So i did a make clean. I noticed
>> vusagec. Is this the daemon you were mentioning about?
>>
>> Is there a way to check why am i missing vusage and vauth_getpw?
>>
>> test -z "libvpopmail.a" || rm -f libvpopmail.a
>> test -z "vchkpw vdelivermail clearopensmtp vadddomain vdeldomain
>> vpasswd vadduser vdeluser vaddaliasdomain vsetuserquota vpopbull
>> vdeloldusers vmoduser valias vuserinfo vmkpasswd vipmap vdominfo
>> vconvert vkill vmoddomlimits vchangepw dotqmail2valias vpopmaild vlist
>> authvchkpw vusagec" || rm -f vchkpw vdelivermail clearopensmtp
>> vadddomain vdeldomain vpasswd vadduser vdeluser vaddaliasdomain
>> vsetuserquota vpopbull vdeloldusers vmoduser valias vuserinfo
>> vmkpasswd vipmap vdominfo vconvert vkill vmoddomlimits vchangepw
>> dotqmail2valias vpopmaild vlist authvchkpw vusagec
>
> What is the configure line you're using?  Also, post the config.log
> and config.h the configure generates (using pastebin or some other
> service).
> - --
> /*
>    Matt Brookings        GnuPG Key FAE0672C
>    Software developer                     Systems technician
>    Inter7 Internet Technologies, Inc.     (815)776-9465
> */
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk09oDYACgkQIwet2/rgZywdTwCgkLr6kDrsWkBZgKom55hHGqjn
> ht8AnRBwwVltwRLVYwwosUNS10DCO+PF
> =BenR
> -END PGP SIGNATURE-
>

!DSPAM:4d3da74a32711311418038!



Re: [vchkpw] vusaged compile error

2011-01-24 Thread Qmail List
Hi,

I followed your instruction.

export > LDFLAGS='-ldl'
./configure && make

Still i am getting the same error.

checking for vauth_getpw in -lvpopmail... no
checking for vauth_getall in -lvpopmail... no
checking for get_domain_entries in -lvpopmail... no
checking for client_query_quick in -lvpopmail... no
configure: error: No vauth_getpw in libvpopmail

Please dont give up on me.

Thanks
wL


On Tue, Jan 25, 2011 at 12:27 AM, Matt Brookings  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 01/24/2011 10:26 AM, Matt Brookings wrote:
>> On 01/24/2011 10:22 AM, Qmail List wrote:
>>> Hi,
>>
>>> For Vpopmail, i did this.
>>
>>> ./configure --enable-logging=v \
>>> make
>>> make install-strip
>>
>>> Vpopmail config.log
>>> http://pastebin.com/5xZT1EiH
>>
>>> Vpopmail config.h
>>> http://pastebin.com/t6FQzp0U
>>
>>> For  Vusaged, i did this.
>>> ./configure
>>> make
>>
>>> Vusaged config.log
>>> http://pastebin.com/78MsKPjh
>>
>>> Vusaged config.h
>>> http://pastebin.com/k9kk7Zff
>>
>> In the vusaged source directory, run "make clean", then "export
>> LDFLAGS='-ldl'", then try to build again.
>
> Er... Run "make distclean" .. set LDFLAGS as above, and then
> ./configure && make.
> - --
> /*
>    Matt Brookings        GnuPG Key FAE0672C
>    Software developer                     Systems technician
>    Inter7 Internet Technologies, Inc.     (815)776-9465
> */
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk09qGYACgkQIwet2/rgZywAwACZAYLxh1ikvIx4TwXGgDp8nSIe
> bYIAn2Fh/WiqMrQ0aR6YheHe3pqmKXi/
> =tV5t
> -END PGP SIGNATURE-
>

!DSPAM:4d3daa3132711011516965!



Re: [vchkpw] vusaged compile error

2011-01-24 Thread Qmail List
Thanks Matt. I am able to proceed.

On Tue, Jan 25, 2011 at 12:37 AM, Matt Brookings  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 01/24/2011 10:34 AM, Qmail List wrote:
>> Hi,
>>
>> I followed your instruction.
>>
>> export > LDFLAGS='-ldl'
>
> It's "export LDFLAGS='-ldl'.  There's no ">" in it.
> - --
> /*
>    Matt Brookings        GnuPG Key FAE0672C
>    Software developer                     Systems technician
>    Inter7 Internet Technologies, Inc.     (815)776-9465
> */
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk09qrsACgkQIwet2/rgZyyoqQCeMW5JswM/TQREdpvqSEP1wan0
> /ogAoIc1xoSHC/MF3A0tDhGwEQ+8sGc+
> =bwIs
> -END PGP SIGNATURE-
>

!DSPAM:4d3dacad32714254211647!



[vchkpw] segfault while starting up vusaged

2011-01-24 Thread Qmail List
 Hi,

While trying to start vusaged, encountered error.

/etc/init.d/vusaged start
Starting vusaged: /etc/init.d/vusaged: line 17: 31073 Segmentation
fault  $VUSAGED > /dev/null 2> /dev/null
failed

/var/log/message shows

kernel: vusaged[31085]: segfault at 00608b28 rip 00608b28
rsp 47ab1f08 error 15

Any idea?

regards
wL


!DSPAM:4d3db42332714273339809!