Macport 2.03 glib2 problem in leopard
Peter
one2001boy at yahoo.com
Thu Nov 24 14:59:13 PST 2011
Hello,
I have leopard 10.5.2,. Mac port 2.03 and Xcode 314 installed.
I got the following error when building glib2:
bash-3.2$ sudo port install cairo +no_x11 +quartz ---> Computing dependencies for cairo
---> Dependencies to be installed: glib2 libpixman libpng pkgconfig
---> Building glib2
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install glib2
Log for glib2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log
Error: The following dependencies were not installed: glib2 libpixman libpng pkgconfig
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
bash-3.2$ cd
I checked the main.log and here is the error I found:
:info:build libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GLib-GObject\" -I.. -I../glib -I../glib -I.. -DG_DISABLE_CAST_CHECKS -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -DGOBJECT_COMPILATION -I/opt/local/include -DG_DISABLE_SINGLE_INCLUDES -D_REENTRANT -I/opt/local/lib/libffi-3.0.10/include -pipe -O2 -fstrict-aliasing -arch i386 -Wall -MT libgobject_2_0_la-gclosure.lo -MD -MP -MF .deps/libgobject_2_0_la-gclosure.Tpo -c gclosure.c -fno-common -DPIC -o .libs/libgobject_2_0_la-gclosure.o
:info:build In file included from gclosure.c:29:
:info:build /opt/local/lib/libffi-3.0.10/include/ffi.h:53:1: error: unterminated #ifndef
:info:build In file included from gclosure.c:945:
:info:build /opt/local/lib/libffi-3.0.10/include/ffi.h:53:1: error: unterminated #ifndef
:info:build gclosure.c:946: error: syntax error before '*' token
:info:build gclosure.c:948: warning: return type defaults to 'int'
:info:build gclosure.c: In function 'value_to_ffi_type':
:info:build gclosure.c:949: error: 'ffi_type' undeclared (first use in this function)
:info:build gclosure.c:949: error: (Each undeclared identifier is reported only once
:info:build gclosure.c:949: error: for each function it appears in.)
:info:build gclosure.c:949: error: 'rettype' undeclared (first use in this function)
:info:build gclosure.c:959: error: 'ffi_type_sint' undeclared (first use in this function)
:info:build gclosure.c:965: error: 'ffi_type_uint' undeclared (first use in this function)
:info:build gclosure.c:975: error: 'ffi_type_pointer' undeclared (first use in this function)
:info:build gclosure.c:979: error: 'ffi_type_float' undeclared (first use in this function)
:info:build gclosure.c:983: error: 'ffi_type_double' undeclared (first use in this function)
:info:build gclosure.c:987: error: 'ffi_type_slong' undeclared (first use in this function)
:info:build gclosure.c:991: error: 'ffi_type_ulong' undeclared (first use in this function)
:info:build gclosure.c:995: error: 'ffi_type_sint64' undeclared (first use in this function)
:info:build gclosure.c:999: error: 'ffi_type_uint64' undeclared (first use in this function)
:info:build gclosure.c: In function 'g_cclosure_marshal_generic':
:info:build gclosure.c:1103: error: 'ffi_type' undeclared (first use in this function)
:info:build gclosure.c:1103: error: 'rtype' undeclared (first use in this function)
:info:build gclosure.c:1106: error: 'atypes' undeclared (first use in this function)
:info:build gclosure.c:1109: error: 'ffi_cif' undeclared (first use in this function)
:info:build gclosure.c:1109: error: syntax error before 'cif'
:info:build gclosure.c:1118: error: 'ffi_type_void' undeclared (first use in this function)
:info:build gclosure.c:1121: error: 'ffi_arg' undeclared (first use in this function)
:info:build gclosure.c:1124: error: syntax error before ')' token
:info:build gclosure.c:1131: error: 'ffi_type_pointer' undeclared (first use in this function)
:info:build gclosure.c:1144: warning: implicit declaration of function 'ffi_prep_cif'
:info:build gclosure.c:1144: error: 'cif' undeclared (first use in this function)
:info:build gclosure.c:1144: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function)
:info:build gclosure.c:1144: error: 'FFI_OK' undeclared (first use in this function)
:info:build gclosure.c:1147: warning: implicit declaration of function 'ffi_call'
:info:build make[4]: *** [libgobject_2_0_la-gclosure.lo] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.30.2/gobject'
Any suggestions about how to resolve this problem?
thanks.
Peter
More information about the macports-users
mailing list