Gentoo Archives: gentoo-user

From: Michael Schreckenbauer <grimlog@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Plasma-runtime compilation problems
Date: Wed, 10 Aug 2011 22:05:55
Message-Id: 10767017.YZF3DYoQc4@pc
In Reply to: [gentoo-user] Re: Plasma-runtime compilation problems by walt
1 Hi,
2
3 Am Mittwoch, 10. August 2011, 14:40:31 schrieb walt:
4 > On 08/09/2011 08:34 PM, Jeff Cranmer wrote:
5 > > Hi all,
6 > >
7 > > I'm trying to upgrade kde from 4.4 to 4.6, and I've run into a problem.
8 > >
9 > > Plasma-runtime-4.6.3 is failing. The error appears to be
10 > > redefinition of 'struct QMetaTypeID<Plasma::Service*>'
11 >
12 > I don't use kde so I can't be specific, but usually a redefinition is
13 > just a warning -- unless the package is compiled with the -Wall flag or
14 > equivalent.
15
16 No, this is plain wrong. Redefinition of a struct is an error in C and C++
17
18 ~$cat foo.c
19 struct foo {
20 int i;
21 };
22
23 struct foo {
24 char* v;
25 };
26
27 ~$gcc foo.c -o foo
28 foo.c:5:8: error: redefinition of 'struct foo'
29 foo.c:1:8: note: originally defined here
30
31 -Wall enables some more warnings and has nothing to do with errors at all.
32 -Werror is the switch that turns warnings into errors.
33
34 Regards,
35 Michael

Replies

Subject Author
[gentoo-user] Re: Plasma-runtime compilation problems walt <w41ter@×××××.com>