Package: djvulibre
Version: 3.5.16-2
Severity: important

Your package fails to build with G++ 4.1.  I'm filing this bug as
important for now, but when 4.1 will be the default compiler in
unstable (probably in a few weeks) I'll upgrade this to serious.


> Automatic build of djvulibre_3.5.16-2 on bigsur by sbuild/mips 1.106
...
>  mips-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -I. -Wall -Wno-non-virtual-dtor 
> -DNDEBUG -O3 -pthread -DTHREADMODEL=POSIXTHREADS -c GOS.cpp  -fPIC -DPIC -o 
> .libs/GOS.o
> GURL.h:281: error: extra qualification 'DJVU::GURL::' on member 'operator=='
> GURL.h:284: error: extra qualification 'DJVU::GURL::' on member 'operator!='
> make[2]: *** [GOS.lo] Error 1

This is easy to fix:


--- ./libdjvu/GURL.h~   2006-03-21 19:05:06.000000000 +0000
+++ ./libdjvu/GURL.h    2006-03-21 19:05:15.000000000 +0000
@@ -278,10 +278,10 @@
       //@}
 
       /// Returns TRUE if #gurl1# and #gurl2# are the same
-   bool        GURL::operator==(const GURL & gurl2) const;
+   bool        operator==(const GURL & gurl2) const;
 
       /// Returns TRUE if #gurl1# and #gurl2# are different
-   bool        GURL::operator!=(const GURL & gurl2) const;
+   bool        operator!=(const GURL & gurl2) const;
 
       /// Assignment operator
    GURL &      operator=(const GURL & url);
--- ./libdjvu/ByteStream.h~     2006-03-21 18:32:43.000000000 +0000
+++ ./libdjvu/ByteStream.h      2006-03-21 18:32:50.000000000 +0000
@@ -242,7 +242,7 @@
       and writes it to the specified stream. */
   void formatmessage( const char *fmt, ... );
   /** Looks up the message and writes it to the specified stream. */
-  void ByteStream::writemessage( const char *message );
+  void writemessage( const char *message );
   /** Writes a one-byte integer to a ByteStream. */
   void write8 (unsigned int card8);
   /** Writes a two-bytes integer to a ByteStream.


But then I get:


make[2]: Entering directory `/home/tbm/src/djvulibre-3.5.16/gui/djview'
make[2]: Circular Makefile.dep <- Makefile.dep dependency dropped.
x86_64-linux-gnu-g++  -DHAVE_CONFIG_H -I../.. -I../../libdjvu -I./ 
-I../../gui/indep/QT/ -I../../gui/indep/QX/ -I../../gui/indep/utils/ 
-I../../gui/shared/QT/ -I../../gui/shared/res/ -I../../gui/shared/utils/  -I. 
-DNDEBUG -Wall -O3 -Wno-non-virtual-dtor  -pthread -DTHREADMODEL=POSIXTHREADS 
-I/usr/include/qt3 -I/usr/X11R6/include -c ../../gui/indep/QX/qx_imager.cpp
../../libdjvu/GContainer.h: In member function 'DJVU::GCont::HNode* 
DJVU::GMapImpl<K, TI>::get_or_create(const K&) [with K = unsigned int, TI = 
int]':
../../libdjvu/GContainer.h:1204:   instantiated from 'VTYPE& 
DJVU::GMapTemplate<KTYPE, VTYPE, TI>::operator[](const KTYPE&) [with KTYPE = 
unsigned int, VTYPE = int, TI = int]'
../../gui/indep/utils/col_db.h:111:   instantiated from here
../../libdjvu/GContainer.h:1131: error: invalid initialization of reference of 
type 'const DJVU::GPixel&' from expression of type 'const unsigned int'
../../libdjvu/GPixmap.h:451: error: in passing argument 1 of 'unsigned int 
DJVU::hash(const DJVU::GPixel&)'
../../libdjvu/GContainer.h: In member function 'DJVU::GCont::HNode* 
DJVU::GMapImpl<K, TI>::get_or_create(const K&) [with K = long unsigned int, TI 
= DJVU::GP<DXImage>]':
../../libdjvu/GContainer.h:1204:   instantiated from 'VTYPE& 
DJVU::GMapTemplate<KTYPE, VTYPE, TI>::operator[](const KTYPE&) [with KTYPE = 
long unsigned int, VTYPE = DJVU::GP<DXImage>, TI = DJVU::GP<DXImage>]'
../../gui/indep/QX/qx_imager.cpp:1230:   instantiated from here
../../libdjvu/GContainer.h:1131: error: invalid initialization of reference of 
type 'const DJVU::GPixel&' from expression of type 'const long unsigned int'
../../libdjvu/GPixmap.h:451: error: in passing argument 1 of 'unsigned int 
DJVU::hash(const DJVU::GPixel&)'
../../libdjvu/GContainer.h: In member function 'DJVU::GCont::HNode* 
DJVU::GSetImpl<K>::get(const K&) const [with K = unsigned int]':
../../libdjvu/GContainer.h:1038:   instantiated from 'DJVU::GPosition 
DJVU::GSetImpl<K>::contains(const K&) const [with K = unsigned int]'
../../libdjvu/GContainer.h:1166:   instantiated from 'DJVU::GPosition 
DJVU::GMapTemplate<KTYPE, VTYPE, TI>::contains(const KTYPE&) const [with KTYPE 
= unsigned int, VTYPE = int, TI = int]'
../../gui/indep/utils/col_db.h:111:   instantiated from here
../../libdjvu/GContainer.h:1058: error: invalid initialization of reference of 
type 'const DJVU::GPixel&' from expression of type 'const unsigned int'
../../libdjvu/GPixmap.h:451: error: in passing argument 1 of 'unsigned int 
DJVU::hash(const DJVU::GPixel&)'
../../libdjvu/GContainer.h: In member function 'DJVU::GCont::HNode* 
DJVU::GSetImpl<K>::get(const K&) const [with K = long unsigned int]':
../../libdjvu/GContainer.h:1038:   instantiated from 'DJVU::GPosition 
DJVU::GSetImpl<K>::contains(const K&) const [with K = long unsigned int]'
../../libdjvu/GContainer.h:1166:   instantiated from 'DJVU::GPosition 
DJVU::GMapTemplate<KTYPE, VTYPE, TI>::contains(const KTYPE&) const [with KTYPE 
= long unsigned int, VTYPE = DJVU::GP<DXImage>, TI = DJVU::GP<DXImage>]'
../../gui/indep/QX/qx_imager.cpp:248:   instantiated from here
../../libdjvu/GContainer.h:1058: error: invalid initialization of reference of 
type 'const DJVU::GPixel&' from expression of type 'const long unsigned int'
../../libdjvu/GPixmap.h:451: error: in passing argument 1 of 'unsigned int 
DJVU::hash(const DJVU::GPixel&)'
make[2]: *** [qx_imager.o] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/home/tbm/src/djvulibre-3.5.16/gui/djview'
-- 
Martin Michlmayr
http://www.cyrius.com/


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

Reply via email to