Package: openexr
Severity: normal
Version: 1.2.2-2
Tags: patch

>From my build log:

...
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"OpenEXR\" 
-DVERSION=\"1.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRERROR=1 
-DHAVE_IOS_BASE=1 -DHAVE_COMPLETE_IOMANIP=1 -DHAVE_STL_LIMITS=1  -I. -I. -I.. 
-I../Iex -I../Half -I../Imath -I../IlmImf   -pipe  -g -O2 -MT Image.o -MD -MP 
-MF ".deps/Image.Tpo" \
  -c -o Image.o `test -f 'Image.cpp' || echo './'`Image.cpp; \
then mv -f ".deps/Image.Tpo" ".deps/Image.Po"; \
else rm -f ".deps/Image.Tpo"; exit 1; \
fi
./Image.h:59: error: expected `)' before '&' token
./Image.h:64: error: ISO C++ forbids declaration of 'Image' with no type
./Image.h:64: error: expected ';' before '&' token
./Image.h:65: error: expected `;' before 'const'
...
make[2]: *** [Image.o] Error 1
make[2]: Leaving directory `/tmp/buildd/openexr-1.2.2/exrmaketiled'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/buildd/openexr-1.2.2'
make: *** [debian/stamp-makefile-build] Error 2

I've attached a patch which makes openexr build with g++-4.0.

-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-9-amd64-k8
Locale: LANG=en, LC_CTYPE=en (charmap=UTF-8) (ignored: LC_ALL set to 
en_US.UTF-8)

-- 
Daniel Schepler              "Please don't disillusion me.  I
[EMAIL PROTECTED]    haven't had breakfast yet."
                                 -- Orson Scott Card
diff -urN openexr-1.2.2.old/exrmaketiled/Image.h openexr-1.2.2/exrmaketiled/Image.h
--- openexr-1.2.2.old/exrmaketiled/Image.h	2004-06-04 04:11:23.000000000 +0000
+++ openexr-1.2.2/exrmaketiled/Image.h	2005-06-29 07:02:05.000000000 +0000
@@ -49,6 +49,7 @@
 #include <string>
 #include <map>
 
+class Image;
 
 class ImageChannel
 {

Reply via email to