Package: ipe
Version: 6.0pre26-2
Severity: serious
Tags: patch

When building 'ipe' on amd64/unstable, I get the following error:

make[2]: Entering directory `/ipe-6.0pre26/src/ipetopng'
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -Werror  -DQT_NO_CAST_FROM_ASCII 
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. 
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 
-I../include -I../ipemodel -I../ipecanvas -I../../build/moc/ipetopng -I. -o 
../../build/obj/ipetopng/ipetopng.o ipetopng.cpp
cc1plus: warnings being treated as errors
ipetopng.cpp: In function 'int topng(const char*, const char*, int, double)':
ipetopng.cpp:77: warning: format '%d' expects type 'int', but argument 3 has 
type 'size_t'
make[2]: *** [../../build/obj/ipetopng/ipetopng.o] Error 1
make[2]: Leaving directory `/ipe-6.0pre26/src/ipetopng'

With the attached patch 'ipe' can be compiled on amd64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/ipe-6.0pre26/src/ipetopng/ipetopng.cpp 
./src/ipetopng/ipetopng.cpp
--- ../tmp-orig/ipe-6.0pre26/src/ipetopng/ipetopng.cpp  2005-12-14 
04:45:59.000000000 +0000
+++ ./src/ipetopng/ipetopng.cpp 2006-04-11 08:24:57.000000000 +0000
@@ -73,7 +73,7 @@
   }
   if (pageNum < 1 || pageNum > int(doc->size())) {
     fprintf(stderr,
-           "The document contains %d pages, cannot convert page %d.\n",
+           "The document contains %ld pages, cannot convert page %d.\n",
            doc->size(), pageNum);
     delete doc;
     return 1;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to