problem with elfutils-0.125 for makedumpfile

Ken'ichi Ohmichi oomichi at
Fri Jun 15 03:45:57 EDT 2007

Hi Dharmosoth,

2007/06/14 06:27:18 -0800, Dharmosoth Seetharam <dseetharam at> wrote:
>I tryinging to install makedumpfile utility program.
>For this elfutils-0.125 should be installed on the same machine.
>So, i have done the same thing.
>After installing the "elfutils-0.125", I am getting the following error.
>Can any one please tell me what should be the mistake i have done?
>[root at tc210 makedumpfile]# make
>gcc -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -DVERSION='"1.1.4"' -DRELEASE_DATE='"08 June 2007"' -D__x86_64__ x86.o x86_64.o
 ia64.o ppc64.o -o makedumpfile makedumpfile.c -static -ldw -lelf -lz
>makedumpfile.c: In function `write_kdump_pages':
>makedumpfile.c:4102: warning: implicit declaration of function `compressBound'
>/usr/local/bin/ld: invalid option -- Y
>Try `ld --help' or `ld --usage' for more information.
>collect2: ld returned 64 exit status
>make: *** [makedumpfile] Error 1

I think the cause is 'ld' installed by elfutils-0.125.
elfutils-0.125 installs 'ld' into /usr/local/bin/ with the library files.
For installing only necessary files, could you please try follows ?

- Uninstall elfutils-0.125
  # cd elfutils-0.125
  # make uninstall

- Make elfutils-0.125, and install only the library files.
  # make clean
  # ./configure
  # make
  # mkdir /usr/local/include/elfutils/
  # cp ./libdw/libdw.h   /usr/local/include/elfutils/libdw.h
  # cp ./libdw/dwarf.h   /usr/local/include/dwarf.h
  # cp ./libelf/libelf.h /usr/local/include/libelf.h
  # cp ./libelf/gelf.h   /usr/local/include/gelf.h
  # cp ./libelf/libelf.a /usr/local/lib/libelf.a
  # cp ./libdw/libdw.a   /usr/local/lib/libdw.a
  # cp ./libasm/libasm.a /usr/local/lib/libasm.a
  # cp ./libebl/libebl.a /usr/local/lib/libebl.a

If there are not any problems, I will add the above method to README file.

Ken'ichi Ohmichi

More information about the kexec mailing list