安装GLIB时出现奇怪的错误

时间:2012-10-28 22:02:43

标签: installation glib

安装GLIB时出现此错误:

  

进行安装。    ./install-sh -c -d' / usr / bin'    / usr / bin / install -c glib-gettextize' / usr / bin'    ./install-sh -c -d' /usr/local/share/glib-2.0/gettext'    / usr / bin / install -c mkinstalldirs' /usr/local/share/glib-2.0/gettext'    ./install-sh -c -d' / usr / lib / pkgconfig'    / usr / bin / install -c -m 644 glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gio-2.0 .pc gio-unix-2.0.pc' / usr / lib / pkgconfig'   在m4macros中安装   make [2]:对于'install-exec-am'没什么可做的。    .././install-sh -c -d' / usr / local / share / aclocal'    / usr / bin / install -c -m 644 glib-2.0.m4 glib-gettext.m4 gsettings.m4' / usr / local / share / aclocal'   在glib中安装     GEN glib_probes.o   用法:dtrace [-aACeFHlqSvVwZ] [-arch i386 | x86_64] [-b bufsz] [-c cmd] [-D name [= def]]       [-I path] [-L path] [-o output] [-p pid] [-s script] [-U name]       [-x opt [= val]]

[-P provider [[ predicate ] action ]]
[-m [ provider: ] module [[ predicate ] action ]]
[-f [[ provider: ] module: ] func [[ predicate ] action ]]
[-n [[[ provider: ] module: ] func: ] name [[ predicate ] action ]]
[-i probe-id [[ predicate ] action ]] [ args ... ]

predicate -> '/' D-expression '/'
   action -> '{' D-statements '}'

-arch Generate programs and Mach-O files for the specified architecture

-a  claim anonymous tracing state
-A  generate plist(5) entries for anonymous tracing
-b  set trace buffer size
-c  run specified command and exit upon its completion
-C  run cpp(1) preprocessor on script files
-D  define symbol when invoking preprocessor
-e  exit after compiling request but prior to enabling probes
-f  enable or list probes matching the specified function name
-F  coalesce trace output by function
-h  generate a header file with definitions for static probes
-H  print included files when invoking preprocessor
-i  enable or list probes matching the specified probe id
-I  add include directory to preprocessor search path
-l  list probes matching specified criteria
-L  add library directory to library search path
-m  enable or list probes matching the specified module name
-n  enable or list probes matching the specified probe name
-o  set output file
-p  grab specified process-ID and cache its symbol tables
-P  enable or list probes matching the specified provider name
-q  set quiet mode (only output explicitly traced data)
-s  enable or list probes according to the specified D script
-S  print D compiler intermediate code
-U  undefine symbol when invoking preprocessor
-v  set verbose mode (report stability attributes, arguments)
-V  report DTrace API version
-w  permit destructive actions
-x  enable or modify compiler and tracing options
-Z  permit probe descriptions that match zero probes
  

make [1]: * [glib_probes.o]错误2   make:* [install-recursive]错误1

编辑: 按照尼尔森的建议,这个错误最终出现了:

gclosure.c:29:17: error: ffi.h: No such file or directory
gclosure.c:1128: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
gclosure.c: In function 'value_from_ffi_type':
gclosure.c:1217: error: 'ffi_arg' undeclared (first use in this function)
gclosure.c:1217: error: (Each undeclared identifier is reported only once
gclosure.c:1217: error: for each function it appears in.)
gclosure.c:1217: error: 'int_val' undeclared (first use in this function)
gclosure.c:1217: error: expected expression before ')' token
gclosure.c: At top level:
gclosure.c:1296: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
gclosure.c: In function 'g_cclosure_marshal_generic':
gclosure.c:1391: error: 'ffi_type' undeclared (first use in this function)
gclosure.c:1391: error: 'rtype' undeclared (first use in this function)
gclosure.c:1394: error: 'atypes' undeclared (first use in this function)
gclosure.c:1397: error: 'ffi_cif' undeclared (first use in this function)
gclosure.c:1397: error: expected ';' before 'cif'
gclosure.c:1405: warning: implicit declaration of function 'value_to_ffi_type'
gclosure.c:1409: error: 'ffi_type_void' undeclared (first use in this function)
gclosure.c:1412: error: 'ffi_arg' undeclared (first use in this function)
gclosure.c:1415: error: expected expression before ')' token
gclosure.c:1427: error: 'ffi_type_pointer' undeclared (first use in this function)
gclosure.c:1451: warning: implicit declaration of function 'ffi_prep_cif'
gclosure.c:1451: error: 'cif' undeclared (first use in this function)
gclosure.c:1451: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function)
gclosure.c:1451: error: 'FFI_OK' undeclared (first use in this function)
gclosure.c:1454: warning: implicit declaration of function 'ffi_call'
gclosure.c: In function 'g_cclosure_marshal_generic_va':
gclosure.c:1469: error: 'ffi_type' undeclared (first use in this function)
gclosure.c:1469: error: 'rtype' undeclared (first use in this function)
gclosure.c:1472: error: 'atypes' undeclared (first use in this function)
gclosure.c:1476: error: 'ffi_cif' undeclared (first use in this function)
gclosure.c:1476: error: expected ';' before 'cif'
gclosure.c:1489: error: 'ffi_type_void' undeclared (first use in this function)
gclosure.c:1492: error: 'ffi_arg' undeclared (first use in this function)
gclosure.c:1495: error: expected expression before ')' token
gclosure.c:1504: error: 'ffi_type_pointer' undeclared (first use in this function)
gclosure.c:1525: warning: implicit declaration of function 'va_to_ffi_type'
gclosure.c:1547: error: 'cif' undeclared (first use in this function)
gclosure.c:1547: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function)
gclosure.c:1547: error: 'FFI_OK' undeclared (first use in this function)
make[3]: *** [libgobject_2_0_la-gclosure.lo] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1

编辑:决定在我的用户中将PKG_CONFIG_PATH添加到bash .profile。不行。

1 个答案:

答案 0 :(得分:1)

似乎无法找到dtrace命令,并且根据glib building文档:

  
      
  • DTrace的可选支持需要sys / sdt.h标头,该标头由Linux上的SystemTap提供。要在不使用DTrace的情况下构建GLib,请使用   --disable-dtrace配置选项。

  •   
  • 可以使用--disable-systemtap配置选项禁用SystemTap的可选支持。

  •   

因此,如果您对SystemTap支持不感兴趣,请在运行configure时禁用它,如下所示:

configure --disable-dtrace  --disable-systemtap