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

Re: obstack fails to compile on OS X 10.7

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Sep 1, 2011, 17:30 UTC
Message-ID
<4E5FC14A.8040008@ramsay1.demon.co.uk>
In-Reply-To
<20110828200846.GA10754@fredrik-Q430-Q530>
Fredrik Kuivinen wrote:
> On Sat, Aug 27, 2011 at 03:14:43AM -0700, David Aguilar wrote:
>> On Sat, Aug 27, 2011 at 02:21:40AM -0400, Brian Gernhardt wrote:
[snip]
>> I suspect that more exotic platforms may have problems
>> with obstack.h as well.  This probably needs some testing
>> on SunOS, AIX, IRIX, etc.
Just FYI, my cygwin and mingw builds failed in the same way as OS X ...
Show 18 quoted lines
> Something like this (tested on Linux and SunOS 5.10):
> 
> -- 8< --
> 
> Subject: [PATCH RFC] obstack: Fix portability issues
> 
> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1, SunOS 5.10, and possibly
> others do not have exit.h and exitfail.h. Remove the use of these in
> obstack.c.
> 
> The __block variable was renamed to block to avoid a gcc error:
> 
> compat/obstack.h:190: error: __block attribute can be specified on variables only
> 
> Initial-patch-by: David Aguilar <davvid@gmail.com>
> Reported-by: Brian Gernhardt <brian@gernhardtsoftware.com>
> Signed-off-by: Fredrik Kuivinen <frekui@gmail.com>
> ---
... and this fixes the build(s) just fine[1]. Thanks!

ATB, Ramsay Jones

[1] Well the build is fine on cygwin, but the mingw build fails for an unrelated reason; compat/obstack.c compiles just fine.

Previous: Junio C Hamano
Message 7 of 7 in “obstack fails to compile on OS X 10.7”
  1. Brian GernhardtAug 27, 2011
  2. David AguilarAug 27, 2011
  3. Brian GernhardtAug 28, 2011
  4. Fredrik KuivinenAug 28, 2011
  5. David AguilarAug 29, 2011
  6. Junio C HamanoAug 29, 2011
  7. Ramsay JonesSep 1, 2011

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.