Package: kchmviewer
Version: 1.3a-1
Severity: important
Tags: patch

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.

A patch is below.


> Automatic build of kchmviewer_1.3a-1 on bigsur by sbuild/mips 1.89
...
> if mips-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/share/qt3/include 
> -I/usr/include -I/usr/include/kde  -DQT_THREAD_SUPPORT  -D_REENTRANT  
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
> -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG 
> -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor 
> -fno-exceptions -fno-check-new -fno-common  -MT kchmbookmarkwindow.o -MD -MP 
> -MF ".deps/kchmbookmarkwindow.Tpo" -c -o kchmbookmarkwindow.o 
> kchmbookmarkwindow.cpp; \
>       then mv -f ".deps/kchmbookmarkwindow.Tpo" 
> ".deps/kchmbookmarkwindow.Po"; else rm -f ".deps/kchmbookmarkwindow.Tpo"; 
> exit 1; fi
> xchmfile.h:309: error: extra qualification 'CHMFile::' on member 
> 'GetFontEncFromCharSet'
> /usr/lib/gcc/mips-linux-gnu/4.1.0/../../../../include/c++/4.1.0/bits/basic_string.h:
>  In member function 'std::basic_string<_CharT, _Traits, _Alloc>::_Rep* 
> std::basic_string<_CharT, _Traits, _Alloc>::_M_rep() const [with _CharT = 
> char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]':
> /usr/lib/gcc/mips-linux-gnu/4.1.0/../../../../include/c++/4.1.0/bits/basic_string.h:478:
>    instantiated from 'std::basic_string<_CharT, _Traits, 
> _Alloc>::~basic_string() [with _CharT = char, _Traits = 
> std::char_traits<char>, _Alloc = std::allocator<char>]'
> /usr/share/qt3/include/qstring.h:667:   instantiated from here
> /usr/lib/gcc/mips-linux-gnu/4.1.0/../../../../include/c++/4.1.0/bits/basic_string.h:283:
>  warning: cast from 'char*' to 'std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> >::_Rep*' increases required 
> alignment of target type
> make[3]: *** [kchmbookmarkwindow.o] Error 1


--- ./src/xchmfile.h~   2006-03-12 15:37:31.000000000 +0000
+++ ./src/xchmfile.h    2006-03-12 15:37:36.000000000 +0000
@@ -306,7 +306,7 @@
        }
        
        //! Helper. Translates from Win32 encodings to generic wxWidgets ones.
-       const char * CHMFile::GetFontEncFromCharSet (const QString& font) const;
+       const char * GetFontEncFromCharSet (const QString& font) const;
 
        //! Helper. Returns the $FIftiMain offset of leaf node or 0.
        u_int32_t GetLeafNodeOffset(const QString& text,

-- 
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