Hi Rene & List,

Here is the second thing that I ran into:

Gettext is failing on this:

In function 'open',
   inlined from 'msgdomain_list_print' at write-catalog.c:223:
/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
make[4]: *** [write-catalog.lo] Error 1
make[4]: Leaving directory `/opt/T2/t2-trunk/src.gettext.GW-Octeon-64.20100201.173259.16339.ubuntu1/gettext-0.17/gettext-tools/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/opt/T2/t2-trunk/src.gettext.GW-Octeon-64.20100201.173259.16339.ubuntu1/gettext-0.17/gettext-tools/src'
------------------------------------
It seems that the O_CREAT flag needs additional parameters to be legal.
found this fix from Gentoo, which deals with the same issue, and made a patchfile out of it:
http://bugs.gentoo.org/232081
http://bugs.gentoo.org/attachment.cgi?id=160644&action=view

Patchfile attached.


Jan


diff -ur gettext-0.17/gettext-tools/src/write-catalog.c gettext-0.17-fix/gettext-tools/src/write-catalog.c
--- gettext-0.17/gettext-tools/src/write-catalog.c	2007-10-07 15:37:39.000000000 -0400
+++ gettext-0.17-fix/gettext-tools/src/write-catalog.c	2010-02-01 18:18:13.000000000 -0500
@@ -220,7 +220,7 @@
       /* Open the output file.  */
       if (!to_stdout)
 	{
-	  fd = open (filename, O_WRONLY | O_CREAT);
+	  fd = open (filename, O_WRONLY | O_CREAT, S_IRUSR|S_IWUSR);
 	  if (fd < 0)
 	    {
 	      const char *errno_description = strerror (errno);
----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to