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

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

[gettext] compile error


From: Christian Genz
Subject: [gettext] compile error
Date: Fri, 13 Mar 2009 10:26:55 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

Hi there,

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);


cheers,
Chris




reply via email to

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