Can't compile devel/gobject-introspection under 7.2

bfls bfls at netspace.net.au
Sun May 2 03:14:03 UTC 2010


I'm trying to install deskutils/calibre but it is failing when it
tries to compile gobject-introspection.  I get the errors below and
then it just hangs.

I'm running 7.2-RELEASE-p7 with a GENERIC i386 kernel and I updated my
ports tree yesterday (1 May).  Given the version bump to png I took
the belt-and-braces approach of then doing a pkg_delete -a and
cleaning out my /usr/local/lib directory before adding back in all my
ports one by one.  It all went smoothly until I tried adding calibre.

I've done a google search and found two other people who reported the same
problem (one under 7.2 and the other with 8.0) but no
workaround/fixes.  Has anything else seen this?  There is nothing in
UPDATING.  The must (please) be a solution because this port is used
by pretty much anything gnome-related so it would be widely used.


env LPATH=.libs  env PYTHONPATH=..:..:YTHONPATH UNINSTALLED_INTROSPECTION_SRCDIR=.. UNINSTALLED_INTROSPECTION_BUILDDIR=.. ../tools/g-ir-scanner -v --add-include-path=../gir --add-include-path=. -v --add-include-path=../gir --add-include-path=. --namespace=GLib --nsversion=2.0 --libtool="/bin/sh /usr/local/bin/libtool"  --library=glib-2.0 --pkg=glib-2.0  --noclosure --strip-prefix=g --c-include="glib.h" -I/usr/local/include -I/usr/local/include/glib-2.0 -DGETTEXT_PACKAGE=Dummy -D__G_I18N_LIB_H__ /usr/local/include/glib-2.0/glibconfig.h /usr/local/include/glib-2.0/glib/*.h ./glib-2.0.c --output GLib-2.0.gir
In file included from <stdin>:23:
/usr/local/include/glib-2.0/glib/ghostutils.h:21:2: error: #error "Only <glib.h> can be included directly."
/usr/include/machine/endian.h:146: syntax error, unexpected '{' in ' return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" (__X)); __X; }));' at '{'
/usr/include/machine/endian.h:146: syntax error, unexpected ';' in ' return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" (__X)); __X; }));' at ';'
/usr/include/machine/endian.h:153: syntax error, unexpected '{' in ' return (__extension__ ({ register __uint16_t __X = (_x); __asm ("xchgb %h0, %b0" : "+q" (__X)); __X; }));' at '{'
/usr/include/machine/endian.h:153: syntax error, unexpected ';' in ' return (__extension__ ({ register __uint16_t __X = (_x); __asm ("xchgb %h0, %b0" : "+q" (__X)); __X; }));' at ';'

Any help greatly appreciated.  

Barbara
-- 
bfls at netspace.net.au
On a clear disk you can seek forever.


More information about the freebsd-questions mailing list