Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#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)

main.log (142.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

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:

/usr/bin/clang -o builtin/tar-tree.o -c -MF builtin/.depend/tar-tree.o.d -MMD -MP  -Wall -O2 -I/opt/local/include -arch x86_64 -I. -DPRECOMPOSE_UNICODE -DUSE_LIBPCRE -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -DUSE_ST_TIMESPEC  -DHAVE_DEV_TTY -DXDL_FAST_HASH -DSHA1_HEADER='<openssl/sha.h>'  -DNO_MEMMEM -DSHELL_PATH='"/bin/sh"'  builtin/tar-tree.c

Note how "-I/opt/local/include" appears before "-I.".

comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:3 Changed 12 years ago by ci42

Resolution: fixed
Status: newclosed

comment:4 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.