Mailinglist Archive: opensuse-packaging (122 mails)

< Previous Next >
Re: [opensuse-packaging] glibc 2.7 in Beta testing
  • From: Marcus Meissner <meissner@xxxxxxx>
  • Date: Mon, 26 Nov 2007 10:03:34 +0100
  • Message-id: <20071126090333.GA27216@xxxxxxx>
On Mon, Nov 26, 2007 at 09:55:12AM +0100, Stephan Kulow wrote:

Petr checked in glibc 2.7 into autobuild and we see build failures in quite
some packages that look like this one:

In function 'int open(const char*, int, ...)',
inlined from 'void NCurses::RedirectToLog()' at
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared
with attribute error: open with O_CREAT in second argument needs 3 arguments

I think the error is speaking for itself, in case it does not: this is about

int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);

So please fix the code, for most cases 0666 or 0600 should be the right

BTW: as far as I can tell, glibc 2.6 did not have a default value, so the code
in question should be buggy and can't have worked before.

It just took what was on the stack / the 3rd register argument register ...
aka "randomness" ;)

Ciao, Marcus
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >