[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#456084: marked as done (gcc warnings: #define redefined)



Your message dated Mon, 22 Mar 2010 01:57:47 +0200
with message-id <201003220157.47938.modestas@vainius.eu>
and subject line Re: FTBFS with GCC 4.3: #define redefined
has caused the Debian Bug report #456084,
regarding gcc warnings: #define redefined
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
456084: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456084
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: kdebase
Version: 4:3.5.8.dfsg.1-2
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  GCC 4.3 has converted a number
of warnings into errors.  With GCC 4.3, you're no longer to
just redefine a previous #define.  You need to either avoid
redefinitions directly or to use #ifndef to make sure that something
has not been defined already.  See
http://www.cyrius.com/journal/gcc/gcc-4.3-pedwarn.html

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of kdebase_4:3.5.8.dfsg.1-2 on em64t by sbuild/amd64 0.53
...
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I../.. -I/build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/konqhtml -I/build/tbm/kdebase-3.5.8.dfsg.1/./libkonq -I/build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/input -I/usr/include/kde -I/usr/share/qt3/include -I. -I/usr/include/sasl -DQT_THREAD_SUPPORT -D_REENTRANT -D_LARGE_FILES=1 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -DSMB_CTX_FLAG_USE_KERBEROS -DSMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS -g -Wall -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -c kcm_konqhtml_la.all_cpp.cpp  -fPIC -DPIC -o .libs/kcm_konqhtml_la.all_cpp.o
> In file included from kcm_konqhtml_la.all_cpp.cpp:7:
> /build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/konqhtml/appearance.cpp:330:1: error: "READ_ENTRY" redefined
> In file included from kcm_konqhtml_la.all_cpp.cpp:3:
> /build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/konqhtml/htmlopts.cpp:219:1: error: this is the location of the previous definition
> In file included from /usr/include/kde/kaboutdata.h:24,
>                  from /build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/konqhtml/main.cpp:41,
>                  from kcm_konqhtml_la.all_cpp.cpp:10:
> /usr/share/qt3/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
> /usr/share/qt3/include/qimage.h:58: warning: suggest parentheses around && within ||
> make[4]: *** [kcm_konqhtml_la.all_cpp.lo] Error 1
> make[4]: Leaving directory `/build/tbm/kdebase-3.5.8.dfsg.1/obj-x86_64-linux-gnu/kcontrol/konqhtml'
> make[3]: *** [all-recursive] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/



--- End Message ---
--- Begin Message ---
Version: 4:4.3.4-1

Hello,

On ketvirtadienis 13 Gruodis 2007 05:46:16 Martin Michlmayr wrote:

> You can reproduce this problem with gcc-snapshot from unstable.  Note
> that Red Hat, Novell and Ubuntu have done some work getting packages
> to build with GCC 4.3 so there might be patches floating around
> somewhere.  I suggest you talk to your upstream.
> 
> > Automatic build of kdebase_4:3.5.8.dfsg.1-2 on em64t by sbuild/amd64 0.53
> 
> ...
> 
> > mkdir .libs
> > 
> >  g++ -DHAVE_CONFIG_H -I. -I../..
> >  -I/build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/konqhtml
> >  -I/build/tbm/kdebase-3.5.8.dfsg.1/./libkonq
> >  -I/build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/input -I/usr/include/kde
> >  -I/usr/share/qt3/include -I. -I/usr/include/sasl -DQT_THREAD_SUPPORT
> >  -D_REENTRANT -D_LARGE_FILES=1 -Wno-long-long -Wundef -ansi
> >  -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall
> >  -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -DSMB_CTX_FLAG_USE_KERBEROS
> >  -DSMB_CTX_FLAG_FALLBACK_AFTER_KERBEROS -g -Wall -O2 -Wformat-security
> >  -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions
> >  -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
> >  -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -c
> >  kcm_konqhtml_la.all_cpp.cpp  -fPIC -DPIC -o
> >  .libs/kcm_konqhtml_la.all_cpp.o
> > 
> > In file included from kcm_konqhtml_la.all_cpp.cpp:7:
> > /build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/konqhtml/appearance.cpp:330:1:
> > error: "READ_ENTRY" redefined In file included from
> > kcm_konqhtml_la.all_cpp.cpp:3:
> > /build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/konqhtml/htmlopts.cpp:219:1:
> > error: this is the location of the previous definition In file included
> > from /usr/include/kde/kaboutdata.h:24,
> > 
> >                  from
> >                  /build/tbm/kdebase-3.5.8.dfsg.1/./kcontrol/konqhtml/mai
> >                  n.cpp:41,
> > 
> >                  from kcm_konqhtml_la.all_cpp.cpp:10:
> > /usr/share/qt3/include/qimage.h: In member function 'bool
> > QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
> > /usr/share/qt3/include/qimage.h:58: warning: suggest parentheses around
> > && within || make[4]: *** [kcm_konqhtml_la.all_cpp.lo] Error 1
> > make[4]: Leaving directory
> > `/build/tbm/kdebase-3.5.8.dfsg.1/obj-x86_64-linux-gnu/kcontrol/konqhtml'
> > make[3]: *** [all-recursive] Error 1

kdebase 4.3.4 does not spit such warnings/errors. Closing.


-- 
Modestas Vainius <modestas@vainius.eu>

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply to: