Package: vrweb Severity: normal Tags: patch
vrweb fails to build with gcc-3.4/gcc-4.0. The following patch allows it to build under gcc-3.4. --- src/harmony/scene/sdfscene.h.orig 2005-07-19 17:10:41.856917930 -0700 +++ src/harmony/scene/sdfscene.h 2005-07-19 17:10:47.297218704 -0700 @@ -116,7 +116,7 @@ void storeCamera (); // store active camera void restoreCamera (); // reset camera (to one read from file or latest stored) - private: + public: // scene reading subroutines int readActFile (FILE*, int&); int readPosFile (FILE*, int); --- src/common/utils/fields.h.orig 2005-07-19 18:15:48.000000000 -0700 +++ src/common/utils/fields.h 2005-07-19 18:41:08.000000000 -0700 @@ -170,6 +170,9 @@ #define intFieldsimplement(f, t) #define Fieldsimplement(f, t) +template <class T> class Field; +template <class T> std::ostream& operator << ( std::ostream& s, const Field<T>&); + template<class T> class Field { public: --- src/common/utils/arrays.h.orig 2005-07-19 18:29:14.000000000 -0700 +++ src/common/utils/arrays.h 2005-07-19 18:41:03.000000000 -0700 @@ -170,6 +170,10 @@ #define Arraysdeclare(a, d) typedef Array<d> a; +template <class T> class Array; +template <class T> std::ostream& operator <<(std::ostream&, const Array<T>&); + + template<class T> class Array { public: -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-1-386 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages vrweb depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libgcc1 1:3.4.3-13 GCC support library ii libjpeg62 6b-9 The Independent JPEG Group's JPEG ii libpng12-0 1.2.8rel-1 PNG library - runtime ii libstdc++5 1:3.3.5-8 The GNU Standard C++ Library v3 ii libtiff4 3.7.2-1 Tag Image File Format (TIFF) libra ii libx11-6 4.3.0.dfsg.1-12.0.1 X Window System protocol client li ii libxext6 4.3.0.dfsg.1-12.0.1 X Window System miscellaneous exte ii libxmu6 4.3.0.dfsg.1-12.0.1 X Window System miscellaneous util ii xlibmesa-gl [libgl1] 4.3.0.dfsg.1-12.0.1 Mesa 3D graphics library [XFree86] ii xlibmesa-glu [libglu 4.3.0.dfsg.1-12.0.1 Mesa OpenGL utility library [XFree ii xlibs 4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]