Re: [vchkpw] compile error on vpopmail-5.4.33

2011-12-01 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/29/2011 04:45 AM, Mitja Pirih wrote:
> Hello,
> 
> I am trying to build vpopmail-5.4.33 on OpenBSD 5.0 (32 bit) but
> there is an error I am getting and I can't find any solutions to
> this. I would appreciate some help on this. The error looks like
> this:
> 
> libvpopmail.a(libvpopmail_a-client.o)(.text+0xcb4): In function 
> `client_query': : undefined reference to `__bswap_64'

This is a very difficult problem to debug via email because of the
many different ways different systems have implemented 64bit support.

Try adding:

  #include 

..to the top of storage.h and see if that works.  If not, I'd need
access to an OpenBSD system to figure it out.

Thanks!
- -- 
/*
Matt BrookingsGnuPG Key 5F3258AD
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO2AW4AAoJEGgfLslfMlitqbEH/RV3SrJ0f+/pgacG9htNrZZT
U5nC5RpeKvZQckpRSMzDmvN8GpfACm8NNVlXWP3dYq8KYEBzLo9aK7IFSHNyYoxb
6P3Dpj2vOkJWcMRrACJY0mPpI9mf0R+gsh4nHdO75fYLHfsHHOY5qRxWATXH+0qo
dTQXX3Kb8THZyzhHXB/miIccjhhwM0Ooxj8Rct6tw47pM4XhzIyiH6DbXrjndYHG
b+egWs9NLe4poKvZea+KzLq87bsMsGZisalAqgVuy0osd+NtrY0sK29cEC64ldqi
yioO1Hkfg/fQdzzljPVz6q+5H2Tv54UPGCAbDdBbS4UEGWGJPbBWp5ZaFgUaEVw=
=NHPg
-END PGP SIGNATURE-


[vchkpw] compile error on vpopmail-5.4.33

2011-11-29 Thread Mitja Pirih
Hello,

I am trying to build vpopmail-5.4.33 on OpenBSD 5.0 (32 bit) but there
is an error I am getting and I can't find any solutions to this. I would
appreciate some help on this. The error looks like this:


gcc -I. -I/usr/local/include/mysql  -I.-fPIC  -c -o
libvpopmail_a-conf.o `test -f 'conf.c' || echo './'`conf.c
gcc -I. -I/usr/local/include/mysql  -I.-fPIC  -c -o
libvpopmail_a-ippp.o `test -f 'ippp.c' || echo './'`ippp.c
rm -f libvpopmail.a
ar cru libvpopmail.a libvpopmail_a-vpopmail.o libvpopmail_a-md5.o
libvpopmail_a-bigdir.o libvpopmail_a-vauth.o libvpopmail_a-file_lock.o
libvpopmail_a-vpalias.o libvpopmail_a-seek.o libvpopmail_a-vlimits.o
libvpopmail_a-maildirquota.o libvpopmail_a-vutil.o
libvpopmail_a-vlistlib.o libvpopmail_a-backfill.o libvpopmail_a-client.o
libvpopmail_a-conf.o libvpopmail_a-ippp.o cdb/*.o
ranlib libvpopmail.a
gcc -I. -I/usr/local/include/mysql  -I.  -c vchkpw.c
gcc -I. -I/usr/local/include/mysql  -I.  -c md5.c
gcc -I. -I/usr/local/include/mysql  -I.  -c hmac_md5.c
gcc -o vchkpw vchkpw.o md5.o hmac_md5.o libvpopmail.a -Xlinker -R
-Xlinker /usr/local/lib -L/usr/local/lib  -lmysqlclient -lz -lm
libvpopmail.a(libvpopmail_a-vpopmail.o)(.text+0x8c86): In function
`qnprintf':
: warning: vsprintf() is often misused, please use vsnprintf()
libvpopmail.a(libvpopmail_a-vpopmail.o)(.text+0x4144): In function
`extract_domain':
: warning: strcpy() is almost always misused, please use strlcpy()
vchkpw.o(.text+0x212): In function `main':
: warning: sprintf() is often misused, please use snprintf()
libvpopmail.a(libvpopmail_a-vpopmail.o)(.text+0x8583): In function
`maildir_to_email':
: warning: strcat() is almost always misused, please use strlcat()
libvpopmail.a(libvpopmail_a-client.o)(.text+0xc84): In function
`client_query':
: undefined reference to `__bswap_64'
libvpopmail.a(libvpopmail_a-client.o)(.text+0xcb4): In function
`client_query':
: undefined reference to `__bswap_64'
collect2: ld returned 1 exit status
gmake[2]: *** [vchkpw] Error 1
gmake[2]: Leaving directory `/usr/local/src/vpopmail-5.4.33'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/vpopmail-5.4.33'
gmake: *** [all] Error 2



Regards,
Mitja

!DSPAM:4ed4b7bf32715446210721!