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

obstack fails to compile on OS X 10.7

From
Brian Gernhardt <brian@gernhardtsoftware.com>
Date
Aug 27, 2011, 06:21 UTC
Message-ID
<4A1A024F-C5D5-4E5F-8474-DA3D87412C8A@gernhardtsoftware.com>
Some of the errors look like things I could track down, but some just confuse me.  If anyone else could take a look into this, it would be much appreciated.
~~ Brian G.

gcc -o compat/obstack.o -c -MF compat/.depend/obstack.o.d -MMD -MP -Wall -Wdeclaration-after-statement -Werror -Wno-deprecated-declarations -I. -DUSE_ST_TIMESPEC -DSHA1_HEADER='"block-sha1/sha1.h"' -DNO_MEMMEM compat/obstack.c In file included from compat/obstack.c:30: compat/obstack.h:190: error: __block attribute can be specified on variables only compat/obstack.c:70: error: expected specifier-qualifier-list before ‘uintmax_t’ compat/obstack.c:111:24: error: exitfail.h: No such file or directory cc1: warnings being treated as errors compat/obstack.c: In function ‘print_and_abort’: compat/obstack.c:436: warning: implicit declaration of function ‘gettext’ compat/obstack.c:436: warning: incompatible implicit declaration of built-in function ‘gettext’ compat/obstack.c:438: error: ‘exit_failure’ undeclared (first use in this function) compat/obstack.c:438: error: (Each undeclared identifier is reported only once compat/obstack.c:438: error: for each function it appears in.) compat/obstack.c:439: warning: ‘noreturn’ function does return make: *** [compat/obstack.o] Error 1

$ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

Next: David Aguilar
Message 1 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.