Package: baghira
Version: 0.7a-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 baghira_0.7a-1 on bigsur by sbuild/mips 1.89
...
> if /bin/sh ../libtool --silent --tag=CXX --mode=compile mips-linux-gnu-g++ 
> -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt3 -I.  
> -I/usr/include/kde/kwin  -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 -DQT_PLUGIN -MT baghiraclient.lo 
> -MD -MP -MF ".deps/baghiraclient.Tpo" -c -o baghiraclient.lo 
> baghiraclient.cc; \
>       then mv -f ".deps/baghiraclient.Tpo" ".deps/baghiraclient.Plo"; else rm 
> -f ".deps/baghiraclient.Tpo"; exit 1; fi
> baghiraclient.h:162: error: extra qualification 'Baghira::BaghiraFactory::' 
> on member 'ButtonPixmap'
> baghiraclient.h:163: error: extra qualification 'Baghira::BaghiraFactory::' 
> on member 'DecoImage'
> baghiraclient.cc: In member function 'QImage* 
> Baghira::BaghiraFactory::tintGlossy(const QImage&, const QColor&) const':
> baghiraclient.cc:615: warning: cast from 'uchar*' to 'unsigned int*' 
> increases required alignment of target type
> baghiraclient.cc:616: warning: cast from 'uchar*' to 'unsigned int*' 
> increases required alignment of target type
> baghiraclient.cc:638: warning: converting to 'int' from 'double'
> baghiraclient.cc:640: warning: converting to 'int' from 'double'
> baghiraclient.cc: In member function 'QImage* 
> Baghira::BaghiraFactory::tintBrush(const QImage&, const QColor&) const':
> baghiraclient.cc:655: warning: cast from 'uchar*' to 'unsigned int*' 
> increases required alignment of target type
> baghiraclient.cc:656: warning: cast from 'uchar*' to 'unsigned int*' 
> increases required alignment of target type
> baghiraclient.h: In constructor 
> 'Baghira::BaghiraButton::BaghiraButton(Baghira::BaghiraClient*, const char*, 
> const QString&, bool, Baghira::ButtonType, int)':
> baghiraclient.h:364: warning: 'Baghira::BaghiraButton::mouseover_' will be 
> initialized after
> baghiraclient.h:356: warning:   'bool Baghira::BaghiraButton::_blocked'
> baghiraclient.cc:1229: warning:   when initialized here
> baghiraclient.cc: In member function 'void 
> Baghira::BaghiraClient::paintEvent(QPaintEvent*)':
> baghiraclient.cc:2164: warning: passing 'double' for argument 1 to 'QColor 
> QColor::dark(int) const'
> baghiraclient.cc:2187: warning: passing 'double' for argument 1 to 'QColor 
> QColor::dark(int) const'
> /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/include/qt3/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[4]: *** [baghiraclient.lo] Error 1


--- ./deco/baghiraclient.h~     2006-03-12 21:12:02.000000000 +0000
+++ ./deco/baghiraclient.h      2006-03-12 21:12:13.000000000 +0000
@@ -159,8 +159,8 @@
     virtual KDecoration *createDecoration(KDecorationBridge *b);
     virtual bool reset(unsigned long changed);
     virtual QValueList<BorderSize> borderSizes() const;
-    static QPixmap &BaghiraFactory::ButtonPixmap(Baghira::WindowState wState, 
Baghira::ButtonType type, Baghira::ButtonState state, int current, bool small);
-    QImage* BaghiraFactory::DecoImage(QPixmap *pix, int x, int y, int width, 
int height);
+    static QPixmap &ButtonPixmap(Baghira::WindowState wState, 
Baghira::ButtonType type, Baghira::ButtonState state, int current, bool small);
+    QImage* DecoImage(QPixmap *pix, int x, int y, int width, int height);
 
     static QBitmap helpMask, jaguarDownMask, jaguarMenuDownMask,
             jaguarMenuMask, jaguarMask, milkMenuDownMask,

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