[MacPorts] #37568: git-core: error: incomplete definition of type 'struct ustar_header'

MacPorts noreply at macports.org
Mon Jan 7 16:36:28 PST 2013


#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


More information about the macports-tickets mailing list