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

Re: tar-tree.c dereferencing pointer to incomplete type

From
Duy Nguyen <pclouds@gmail.com>
Date
Jan 19, 2013, 13:37 UTC
Message-ID
<CACsJy8DfOYRmF6FqTLCAYgXGpECX-VhpXGK5CfcmVvKXQ+DpuA@mail.gmail.com>
In-Reply-To
<CAPy7p-45-E-vWcjBTXSLpjoQLic54JdAoKqB3jz4RA6GzAkw8w@mail.gmail.com>
On Sat, Jan 19, 2013 at 8:31 PM, 白い熊 <ShiroiKuma@shiroikuma.org> wrote:
Show 13 quoted lines
> Hello:
>
> I'm building v 1.8.1.1 on Android. The build chokes on the builtins
> phase on tar-tree.c with:
>
>     CC builtin/tar-tree.o
> builtin/tar-tree.c: In function 'cmd_get_tar_commit_id':
> builtin/tar-tree.c:93:12: error: dereferencing pointer to incomplete type
> make: *** [builtin/tar-tree.o] Error 1
>
> The line that's causing this in tar-tree.c is:
>
> if (header->typeflag[0] != 'g')

There is another tar.h somewhere in your system? Stopping the compilation after proprocessing should show if it includes the correct tar.h.

-- 
Duy
Previous: 白い熊Next: 白い熊
Message 2 of 5 in “tar-tree.c dereferencing pointer to incomplete type”
  1. 白い熊Jan 19, 2013
  2. Duy NguyenJan 19, 2013
  3. 白い熊Jan 19, 2013
  4. 白い熊Jan 19, 2013
  5. Jonathan NiederJan 19, 2013

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.