tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: OS X: error: 'gitypes.h' file not found with <angled> include; use "quotes" instead
I came at this a little backwards from the "what do I need to get it to
build, but maybe not right?"
adding to .cwrapper/config/cc, the equivalent of:
transform=I:${WRKSRC}/girepository:${WRKSRC}/girepository
transform=I:${WRKSRC}/tests:${WRKSRC}/tests
which seemed to get it working. I had added:
CFLAGS.Darwin += ${WRKSRC}/girepository
but it was stripped away by the wrappers. (it was still in when I added
the above, so wanted to mention it).
I'm sure there's a right way to do deal with this but I was not able to
discern it glancing at the cwrappers docs or pkgsrc buildlink docs (I'll
admit that I did not try hard). If someone can give me a pointer to the
"right" way to accomplish this, I can sort it out and open a pr.
thanks,
-Todd
> trying to build pkgsrc/devel/gobject-introspection, I get a log of errors
> like this:
>
> In file included from
> /Users/feyrer/work/NetBSD/cvs/pkgsrc/devel/gobject-introspection/work.promise/gobject-introspection-1.48.0/gireposit
ory/girepository.h:41:
> /Users/feyrer/work/NetBSD/cvs/pkgsrc/devel/gobject-introspection/work.promise/gobject-introspection-1.48.0/gireposit
ory/giregisteredtypeinfo.h:31:10:
> error: 'gitypes.h' file not found with <angled> include; use "quotes"
> instead
> #include <gitypes.h>
> ^~~~~~~~~~~
> "gitypes.h"
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
>
> Making the suggested change indeed gets things further, but it's many
> files.
>
> Has anyone dived deep enough into the funny build system to fix this in a
> proper way, probably by adding -I... in one place?
>
> OS information:
>
> Mac OS X 10.10.5
>
> promise% uname -a
> Darwin promise.local 14.5.0 Darwin Kernel Version 14.5.0: Thu Jun 16
> 19:58:21 PDT 2016; root:xnu-2782.50.4~1/RELEASE_X86_64 x86_64
>
> promise% xcodebuild -version
> Xcode 7.2
> Build version 7C68
>
> Command line tools installed by recommendation. Unsure if this isn't
> involved in the problem.
>
>
> - Hubert
>
Home |
Main Index |
Thread Index |
Old Index