[MacPorts] #37568: git-core: error: incomplete definition of type 'struct ustar_header'
#37568: git-core: error: incomplete definition of type 'struct ustar_header' --------------------------+------------------------- Reporter: ryandesign@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: git-core --------------------------+------------------------- 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; ^ }}} -- Ticket URL: <https://trac.macports.org/ticket/37568> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37568: git-core: error: incomplete definition of type 'struct ustar_header' ---------------------------+------------------------- Reporter: ryandesign@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: git-core | ---------------------------+------------------------- Comment (by ryandesign@…): 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.`". -- Ticket URL: <https://trac.macports.org/ticket/37568#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37568: git-core: error: incomplete definition of type 'struct ustar_header' ---------------------------+------------------------- Reporter: ryandesign@… | Owner: ciserlohn@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: git-core | ---------------------------+------------------------- Changes (by ciserlohn@…): * status: new => closed * resolution: => fixed Comment: r101324 -- Ticket URL: <https://trac.macports.org/ticket/37568#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts