#37568 closed defect (fixed)
git-core: error: incomplete definition of type 'struct ustar_header'
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | larryv (Lawrence Velázquez), cooljeanius (Eric Gallager) | |
Port: | git-core |
Description
Installing git-core @1.8.1 fails:
builtin/tar-tree.c:93:12: error: incomplete definition of type 'struct ustar_header' if (header->typeflag[0] != 'g') ~~~~~~^ builtin/tar-tree.c:83:9: note: forward declaration of 'struct ustar_header' struct ustar_header *header = (struct ustar_header *)buffer; ^
Attachments (1)
Change History (5)
Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
The build fails when the libc-headers port is installed and active, because libc-headers provides /opt/local/include/tar.h. This tells us that the "
-I
" flags are not in the right order:Note how "
-I/opt/local/include
" appears before "-I.
".