Package: retchmail
Version: 1:0.09-1
Severity: normal
Tags: patch
When building 'retchmail' on amd64/unstable with gcc-4.0,
I get the following error:
compiling retchmail.o...
/usr/include/wvstreams/xplc/IObject.h:61: warning: 'class IObject' has virtual
functions but non-virtual destructor
/usr/include/wvstreams/xplc/IServiceHandler.h:39: warning: 'class
IServiceHandler' has virtual functions but non-virtual destructor
/usr/include/wvstreams/xplc/IServiceManager.h:54: warning: 'class
IServiceManager' has virtual functions but non-virtual destructor
/usr/include/wvstreams/xplc/IWeakRef.h:32: warning: 'class IWeakRef' has
virtual functions but non-virtual destructor
/usr/include/wvstreams/xplc/utils.h:154: warning: 'class WeakRef' has virtual
functions but non-virtual destructor
/usr/include/wvstreams/xplc/ptr.h: In instantiation of
'xplc_ptr<IServiceManager>::ProtectedPtr':
/usr/include/wvstreams/xplc/xplc.h:72: instantiated from here
/usr/include/wvstreams/xplc/ptr.h:56: warning: 'class
xplc_ptr<IServiceManager>::ProtectedPtr' has virtual functions but non-virtual
destructor
retchmail.cc: In function 'unsigned int WvHash(const WvLog*)':
retchmail.cc:44: error: cast from 'const WvLog*' to 'int' loses precision
make[1]: *** [retchmail.o] Error 1
make[1]: Leaving directory `/retchmail-0.09'
make: *** [build-stamp] Error 2
There is also a problem with the explicit reference to 'xplc-0.3.10'
in the Makefile. Those have to changed to 'xplc-0.3.11'.
With the attached patch 'retchmail' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/retchmail-0.09/retchmail.cc ./retchmail.cc
--- ../tmp-orig/retchmail-0.09/retchmail.cc 2005-03-23 04:11:19.000000000
+0100
+++ ./retchmail.cc 2005-03-31 15:46:34.736407171 +0200
@@ -41,7 +41,7 @@
// cheesy hash function to do the job, basically
unsigned int WvHash(const WvLog *x)
{
- return WvHash((int)x);
+ return WvHash((long)x);
}
diff -urN ../tmp-orig/retchmail-0.09/Makefile ./Makefile
--- ../tmp-orig/retchmail-0.09/Makefile 2005-03-31 16:16:45.464904877 +0200
+++ ./Makefile 2005-03-31 16:16:36.925505970 +0200
@@ -1,11 +1,11 @@
ifeq ($(TOPDIR),)
TOPDIR=.
prefix=/usr
- WVSTREAMS_INC=$(prefix)/include/wvstreams $(prefix)/include/xplc-0.3.10
+ WVSTREAMS_INC=$(prefix)/include/wvstreams $(prefix)/include/xplc-0.3.11
WVSTREAMS_LIB=$(prefix)/lib
WVSTREAMS_BIN=$(prefix)/bin
WVSTREAMS_SRC=.
- with_xplc=$(prefix)/lib/xplc-0.3.10
+ with_xplc=$(prefix)/lib/xplc-0.3.11
else
XPATH=..
endif
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]