Package: libwibble
Version: 0.1
Severity: normal
Tags: patch
When building 'libwibble' on amd64/unstable,
I get the following error:
/usr/bin/c++ -g -Wall -O2 -I/libwibble-0.1/./wibble/..
-I/libwibble-0.1/./obj-x86_64-linux-gnu/wibble/.. -I/usr/include/boost-1_33_1
-DGC_USE_RTLD_NEXT -fPIC -o wibble/CMakeFiles/wibble.dir/exception.o -c
/libwibble-0.1/./wibble/exception.cpp
/usr/bin/cmake -E cmake_progress_report
/libwibble-0.1/./obj-x86_64-linux-gnu/CMakeFiles 3
[ 18%] Building CXX object wibble/CMakeFiles/wibble.dir/range.o
/usr/bin/c++ -g -Wall -O2 -I/libwibble-0.1/./wibble/..
-I/libwibble-0.1/./obj-x86_64-linux-gnu/wibble/.. -I/usr/include/boost-1_33_1
-DGC_USE_RTLD_NEXT -fPIC -o wibble/CMakeFiles/wibble.dir/range.o -c
/libwibble-0.1/./wibble/range.cpp
/libwibble-0.1/./wibble/../wibble/amorph.h:41: error: 'operator new' takes type
'size_t' ('long unsigned int') as first parameter
/libwibble-0.1/./wibble/../wibble/amorph.h:48: error: 'operator new' takes type
'size_t' ('long unsigned int') as first parameter
make[3]: *** [wibble/CMakeFiles/wibble.dir/range.o] Error 1
make[3]: Leaving directory `/libwibble-0.1/obj-x86_64-linux-gnu'
With the attached patch 'libwibble' can be compiled on amd64.
Regards
Andreas Jochens
diff -urN ../tmp-orig/libwibble-0.1/wibble/amorph.h ./wibble/amorph.h
--- ../tmp-orig/libwibble-0.1/wibble/amorph.h 2006-08-16 16:34:26.000000000
+0000
+++ ./wibble/amorph.h 2006-08-24 06:33:09.000000000 +0000
@@ -38,14 +38,14 @@
/** @brief custom allocator for morph classes */
struct MorphAllocator {
- void *operator new( unsigned int bytes, void *where, unsigned available ) {
+ void *operator new( size_t bytes, void *where, unsigned available ) {
if ( bytes > available || where == 0 ) {
where = ::operator new( bytes );
return where;
}
return where;
}
- void *operator new( unsigned int bytes ) {
+ void *operator new( size_t bytes ) {
return ::operator new( bytes );
}
};
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]