This one time, at band camp, Andreas Jochens said:
> 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'
>
> 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);
C99 has introduced the prefix z for size_t, so this should really be
written as:
+ "The document contains %zd pages, cannot convert page %d.\n",
doc->size(), pageNum);
Andreas, can you confirm that this works for you?
Take care,
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' : [EMAIL PROTECTED] |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------
signature.asc
Description: Digital signature

