Hi Aaron,
On Wed, Jan 10, 2018 at 06:37:17PM -0500, Aaron M. Ucko wrote:
> Andreas Tille <[email protected]> writes:
>
> > Hi,
>
> Hi, Andreas.
>
> > gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I. -I/usr/include/git2
> > -DGIT_ARCH_64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DGIT_OPENSSL
> > -DLIBGIT2_NO_FEATURES_H -DGIT_SHA1_OPENSSL - DGIT_SSH -DGIT_CURL
> > -DGIT_USE_STAT_MTIM -DGIT_USE_NSEC -DHAVE_FUTIMENS -DHAVE_QSORT_R
> > -fpic -g -O2 -fdebug-prefix-map=/build/r-base-3.4.3=.
> > -fstack-protector-strong -Wformat - Werror=format-security -Wdate-time
> > -D_FORTIFY_SOURCE=2 -g -c git2r.c -o git2r.o
>
> Please try leaving off -I/usr/include/git2 to avoid this unwanted
> shadowing. (git2.h includes the other headers as "git2/*.h", so you
> shouldn't need that flag.)
If I leave this of it ends up in a missing include refs.h (which is
in /usr/include/git2.
Kind regards
Andreas.
PS: I also tried the other proposed solution - see my answer there.
--
http://fam-tille.de