git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH 1/2] Teach Solaris that _XOPEN_SOURCE=600 really menas XPG6

From
Tomas Carnecky <tom@dbservice.com>
Date
Jun 11, 2009, 17:36 UTC
Message-ID
<4F909897-DD86-4C35-B18F-BE1CFBF06FAE@dbservice.com>
In-Reply-To
<UBftUjN2Jk2tj73et7i3WvuSUhtOiNjPVjmux6IKeXOo0Zs8KHgrOA@cipher.nrlssc.navy.mil>
On Jun 11, 2009, at 7:13 PM, Brandon Casey wrote:
Show 24 quoted lines
> Ok, great.  Looks like Sun fixed the flaw that was present in the 5.8
> compiler, and no other changes need to be made to git.  To be  
> absolutely
> sure, and if you have a moment, can you try to compile the code  
> snippet at
> the end of this email?
>
> If you name the saved the code "test.c", then just compile with
>
>   /opt/SUNWspro/bin/c99 -c test.c
>
> The Sun C 5.8 compiler complains like this for me:
>
>   "test.c", line 12: identifier redeclared: test_func
>           current : function(pointer to const struct a_struct {int  
> b, array[-1] of pointer to char c}) returning pointer to void
>           previous: function(pointer to const struct a_struct {int  
> b, array[-1] of pointer to char c}) returning pointer to void :  
> "test.c", line 4
>   c99: acomp failed for test.c
>
> If the 5.9 compiler successfully compiles it, then this new version  
> of Sun's
> compiler correctly handles c99 flex arrays.
It compiles without errors.
tom
Previous: Brandon CaseyNext: Brandon Casey
Message 13 of 15 in “OpenSolaris 2008.11 portability fixes”
  1. 0/2 OpenSolaris 2008.11 portability fixesJunio C Hamano, May 23, 2009
  2. 1/2 Teach Solaris that _XOPEN_SOURCE=600 really menas XPG6Junio C Hamano, May 23, 2009
  3. 2/2 OpenSolaris 200811 (SunOS 5.11) does not want OLD_ICONVJunio C Hamano, May 23, 2009
  4. Brandon CaseyMay 28, 2009
  5. Jeff KingMay 28, 2009
  6. Brandon CaseyMay 28, 2009
  7. Jeff KingMay 28, 2009
  8. Junio C HamanoMay 28, 2009
  9. Tomas CarneckyJun 11, 2009
  10. Brandon CaseyJun 11, 2009
  11. Tomas CarneckyJun 11, 2009
  12. Brandon CaseyJun 11, 2009
  13. Tomas CarneckyJun 11, 2009
  14. Brandon CaseyJun 11, 2009
  15. Junio C HamanoJun 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.