pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: devel/gobject-introspection build can't find 'glib/gmacros.h'
On Wed, May 20, 2015 at 10:38:12PM -0400, Chuck Cranor wrote:
> GISCAN GLib-2.0.gir
> In file included from <stdin>:4:
> /private/tmp/ptest/lib/glib-2.0/include/glibconfig.h:9:10: fatal error:
> 'glib/gmacros.h' file not found
> #include <glib/gmacros.h>
> ^
> 1 error generated.
> Error while processing the source.
> gnumake[2]: *** [GLib-2.0.gir] Error 1
I figured out the cause of this error. The pkgsrc wrapper scripts
are getting confused by /tmp being a symbolic link (on MacOSX /tmp
points to /private/tmp).
In particular, the clang wrapper is getting called with:
-I/private/tmp/ptest/include/glib/glib-2.0
instead of
-I/tmp/ptest/include/glib/glib-2.0
and it strips out the -I causing the error above.
If I change the bootstrap from this:
./bootstrap --abi 64 --prefix /tmp/ptest \
--pkgdbdir /tmp/ptest/var/db/pkg --compiler clang
to this to avoid the /tmp symlink:
./bootstrap --abi 64 --prefix /private/tmp/ptest \
--pkgdbdir /private/tmp/ptest/var/db/pkg --compiler clang
then the error goes away.
I tried replicating this error on my NetBSD/i386 box, but it did not
fail.
chuck
Home |
Main Index |
Thread Index |
Old Index