在Ubuntu 12.04上编译ksymoops工具

在Ubuntu 12.04上编译ksymoops工具

我需要构建 ksymoops 工具作为独立的内核恐慌分析。

ksymoops源代码可以从以下位置下载这个链接

当我在 Ubuntu 12.04 上编译它时,它显示错误:

/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libbfd.a(compress.o): In function `bfd_compress_section_contents':
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/compress.c:100: undefined reference to `compressBound'
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/compress.c:106: undefined reference to `compress'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libbfd.a(compress.o): In function `decompress_contents':
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/compress.c:61: undefined reference to `inflateEnd'
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/compress.c:49: undefined reference to `inflateInit_'
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/compress.c:59: undefined reference to `inflateReset'
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/compress.c:56: undefined reference to `inflate'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libbfd.a(plugin.o): In function `try_load_plugin':
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/plugin.c:134: undefined reference to `dlopen'
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/plugin.c:141: undefined reference to `dlsym'
/build/buildd/binutils-2.22/builddir-single/bfd/../../bfd/plugin.c:137: undefined reference to `dlerror'
collect2: ld returned 1 exit status
make: *** [ksymoops] Error 1

相关内容