bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: [gettext] compile error


From: Bruno Haible
Subject: Re: [gettext] compile error
Date: Mon, 16 Mar 2009 11:43:28 +0100
User-agent: KMail/1.9.9

Hello,

Christian Genz wrote:
> the current gettext-version I downloaded (0.17) does not compile with 
> GCC-4.3.2. I found the reason and just wanted to inform you in case you 
> want to fix this.
> 
> Reason was in gettext-tools/src/write-cataloge.c at line 223, where you 
> used:
>       fd = open (filename, O_WRONLY | O_CREAT, perm);
> 
> The problem is that the current GCC prohibits the usage of open in 
> combination with O_CREAT but without declaring permissions. So the fix 
> has to look like this (using another function signature):
>       fd = open (filename, O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR);

Thanks for reporting this. The fix will be contained in the next release,
gettext 0.18.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]