gobject-introspection can't compile with endian.h

Steve Kargl sgk at troutmask.apl.washington.edu
Mon Dec 27 18:00:47 UTC 2010


On a keep new install of freebsd9, I run into

===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Extracting for gobject-introspection-0.9.12
=> No checksum file (/usr/ports/devel/gobject-introspection/distinfo).
===>  Patching for gobject-introspection-0.9.12
===>   gobject-introspection-0.9.12 depends on package: libtool>=2.2 - found
===>  Applying FreeBSD patches for gobject-introspection-0.9.12
===>   gobject-introspection-0.9.12 depends on executable: flex - found
===>   gobject-introspection-0.9.12 depends on file: /usr/local/bin/python2.6 - found
===>   gobject-introspection-0.9.12 depends on executable: gmake - found
===>   gobject-introspection-0.9.12 depends on executable: bison - found
===>   gobject-introspection-0.9.12 depends on package: libtool>=2.2 - found
===>   gobject-introspection-0.9.12 depends on executable: pkg-config - found
===>   gobject-introspection-0.9.12 depends on shared library: ffi.5 - found
===>   gobject-introspection-0.9.12 depends on shared library: cairo.2 - found
===>   gobject-introspection-0.9.12 depends on shared library: intl - found
===>   gobject-introspection-0.9.12 depends on shared library: glib-2.0.0 - found
===>  Configuring for gobject-introspection-0.9.12
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i386-portbld-freebsd9.0
checking host system type... i386-portbld-freebsd9.0
checking for Win32... no
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for style of include used by gmake... GNU
checking dependency style of cc... gcc3
checking whether cc understands -c and -o together... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking how to run the C preprocessor... cpp
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd9.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for dlopen in -ldl... no
checking for the suffix of shared libraries... .so
checking for GOBJECT... yes
checking for GTHREAD... yes
checking for GIO_UNIX... yes
checking for SCANNER... yes
checking for FFI... yes
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking for GIREPO... yes
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working strtod... yes
checking for memchr... yes
checking for strchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for backtrace... no
checking for backtrace_symbols... no
checking whether Python support is requested... checking whether /usr/local/bin/python2.6 version >= 2.5... yes
checking for /usr/local/bin/python2.6 version... 2.6
checking for /usr/local/bin/python2.6 platform... freebsd9
checking for /usr/local/bin/python2.6 script directory... ${prefix}/lib/python2.6/site-packages
checking for /usr/local/bin/python2.6 extension module directory... ${exec_prefix}/lib/python2.6/site-packages
checking for headers required to compile python extensions... found
checking for glib source directory to use for documentation... 
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gir/Makefile
config.status: creating girepository/Makefile
config.status: creating giscanner/Makefile
config.status: creating giscanner/config.py
config.status: creating m4/Makefile
config.status: creating tools/Makefile
config.status: creating tests/Makefile
config.status: creating tests/offsets/Makefile
config.status: creating tests/scanner/Makefile
config.status: creating tests/repository/Makefile
config.status: creating tests/warn/Makefile
config.status: creating examples/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating gobject-introspection-1.0.pc
config.status: creating gobject-introspection-no-export-1.0.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
===>  Building for gobject-introspection-0.9.12
gmake  all-recursive
gmake[1]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12'
Making all in girepository
gmake[2]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/girepository'
  CC     libgirepository_1_0_la-gdump.lo
  CC     libgirepository_1_0_la-giarginfo.lo
  CC     libgirepository_1_0_la-gibaseinfo.lo
  CC     libgirepository_1_0_la-gicallableinfo.lo
  CC     libgirepository_1_0_la-giconstantinfo.lo
  CC     libgirepository_1_0_la-gienuminfo.lo
  CC     libgirepository_1_0_la-gierrordomaininfo.lo
  CC     libgirepository_1_0_la-gifieldinfo.lo
  CC     libgirepository_1_0_la-gifunctioninfo.lo
  CC     libgirepository_1_0_la-ginvoke.lo
  CC     libgirepository_1_0_la-giinterfaceinfo.lo
  CC     libgirepository_1_0_la-giobjectinfo.lo
  CC     libgirepository_1_0_la-gipropertyinfo.lo
  CC     libgirepository_1_0_la-giregisteredtypeinfo.lo
  CC     libgirepository_1_0_la-girepository.lo
  CC     libgirepository_1_0_la-girffi.lo
  CC     libgirepository_1_0_la-gisignalinfo.lo
  CC     libgirepository_1_0_la-gistructinfo.lo
  CC     libgirepository_1_0_la-gitypeinfo.lo
  CC     libgirepository_1_0_la-gitypelib.lo
  CC     libgirepository_1_0_la-giunioninfo.lo
  CC     libgirepository_1_0_la-givfuncinfo.lo
  CCLD   libgirepository-1.0.la
  CC     libgirepository_parser_la-girmodule.lo
  CC     libgirepository_parser_la-girnode.lo
  CC     libgirepository_parser_la-giroffsets.lo
  CC     libgirepository_parser_la-girparser.lo
  CC     libgirepository_parser_la-girwriter.lo
  CCLD   libgirepository-parser.la
gmake[2]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/girepository'
Making all in giscanner
gmake[2]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/giscanner'
gmake  all-am
gmake[3]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/giscanner'
  CC     libgiscanner_la-sourcescanner.lo
  CC     libgiscanner_la-scannerlexer.lo
  CC     libgiscanner_la-scannerparser.lo
  CCLD   libgiscanner.la
  CC     _giscanner_la-giscannermodule.lo
  CCLD   _giscanner.la
gmake[3]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/giscanner'
gmake[2]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/giscanner'
Making all in tools
gmake[2]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/tools'
  CC     g_ir_compiler-compiler.o
  CCLD   g-ir-compiler
  CC     g_ir_generate-generate.o
  CCLD   g-ir-generate
  GEN    g-ir-scanner
  GEN    g-ir-annotation-tool
gmake[2]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/tools'
Making all in gir
gmake[2]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/gir'
  GISCAN GLib-2.0.gir
/usr/include/machine/endian.h:107: syntax error, unexpected '{' in ' return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" (__X)); __X; }));' at '{'
/usr/include/machine/endian.h:107: syntax error, unexpected ';' in ' return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" (__X)); __X; }));' at ';'
  GISCAN GObject-2.0.gir
Failed to find symbol 'g_binding_flags_get_type'
Command '['/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/gir/tmp-introspectynqHRq/GObject-2.0', '--introspect-dump=/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/gir/tmp-introspectynqHRq/types.txt,/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/gir/tmp-introspectynqHRq/dump.xml']' returned non-zero exit status 1
gmake[2]: *** [GObject-2.0.gir] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12/gir'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.9.12'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/devel/gobject-introspection.


How does one fix this?

-- 
Steve


More information about the freebsd-gnome mailing list