Mailinglist Archive: opensuse-packaging (109 mails)
< Previous | Next > |
[opensuse-packaging] Re: [Research] Re: [devel] 2nd reminder to fix your packages for compiling with GCC 4.3
- From: Ruediger Oertel <ro@xxxxxxx>
- Date: Tue, 23 Oct 2007 01:10:02 +0200 (CEST)
- Message-id: <Pine.LNX.4.64.0710230102450.6906@xxxxxxxxxxxxx>
On Mon, 22 Oct 2007, Miklos Szeredi wrote:
> On Mon, 2007-10-22 at 15:08 +0200, Richard Guenther wrote:
>
> > this is a reminder for you to have a look at your packages that fail
> > in the BETA distribution (which has GCC 4.3 as its compiler). If you
> > think that the compiler is at fault feel free to report these issues
> > back to me or file a bugzilla for them.
>
> A couple of my packages (and >100 others it seems) are failing with
>
> error: 'foo' was not declared in this scope
>
> I'm rather clueless about C++ issues, so I don't have a clear idea if
> this is indeed a bug in all these programs or if it's a gcc problem.
no these are really missing include files in your sources.
What I've seen up to now were roughly 90% of either missing
"#include <cstring>" or "#include <cstdlib>".
> But even if these are bugs, wouldn't it have been prudent to make this a
> warning, for couple of releases, before turning it into an error?
well, "function not declared" has been an error in C++ before.
What changed is that some files are not any longer pulled in automatically
by others to get closer to the standard (please correct me here if I'm wrong).
Unfortunately I don't see how a compiler should do something like
"include this header but prefix all declared functions with a warning" ...
--
with kind regards (mit freundlichem Grinsen),
Ruediger Oertel (ro@xxxxxxxxxx,ro@xxxxxxx,bugfinder@xxxxxxxxxxx)
----------------------------------------------------------------------
Linux Fatou 2.6.22.9-0.4-default #1 SMP 2007/10/05 21:32:04 UTC x86_64
Key fingerprint = 17DC 6553 86A7 384B 53C5 CA5C 3CE4 F2E7 23F2 B417
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
> On Mon, 2007-10-22 at 15:08 +0200, Richard Guenther wrote:
>
> > this is a reminder for you to have a look at your packages that fail
> > in the BETA distribution (which has GCC 4.3 as its compiler). If you
> > think that the compiler is at fault feel free to report these issues
> > back to me or file a bugzilla for them.
>
> A couple of my packages (and >100 others it seems) are failing with
>
> error: 'foo' was not declared in this scope
>
> I'm rather clueless about C++ issues, so I don't have a clear idea if
> this is indeed a bug in all these programs or if it's a gcc problem.
no these are really missing include files in your sources.
What I've seen up to now were roughly 90% of either missing
"#include <cstring>" or "#include <cstdlib>".
> But even if these are bugs, wouldn't it have been prudent to make this a
> warning, for couple of releases, before turning it into an error?
well, "function not declared" has been an error in C++ before.
What changed is that some files are not any longer pulled in automatically
by others to get closer to the standard (please correct me here if I'm wrong).
Unfortunately I don't see how a compiler should do something like
"include this header but prefix all declared functions with a warning" ...
--
with kind regards (mit freundlichem Grinsen),
Ruediger Oertel (ro@xxxxxxxxxx,ro@xxxxxxx,bugfinder@xxxxxxxxxxx)
----------------------------------------------------------------------
Linux Fatou 2.6.22.9-0.4-default #1 SMP 2007/10/05 21:32:04 UTC x86_64
Key fingerprint = 17DC 6553 86A7 384B 53C5 CA5C 3CE4 F2E7 23F2 B417
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
< Previous | Next > |