problem with elfutils-0.125 for makedumpfile
Subsystems (2)
Hi,
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@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
This is a simple program to print Hello.
Even for this is the error is same.
[root@tc210 makedumpfile]# gcc -o test test.c /usr/local/bin/ld: invalid option -- Y
Try ld --help' or ld --usage' for more information.
collect2: ld returned 64 exit status [root@tc210 makedumpfile]#
Thanks in Advance
Seetharam
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
gcc version is :
[root@tc210 makedumpfile]# gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-24)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Quoted 41 lines
-----Original Message-----
From: [email protected]
Sent: Thu, 14 Jun 2007 06:27:18 -0800
To: [email protected]
Subject: problem with elfutils-0.125 for makedumpfileHi,
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@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 makedumpfilemakedumpfile.c-static -ldw -lelf -lzmakedumpfile.c: In function `write_kdump_pages':
makedumpfile.c:4102: warning: implicit declaration of function `compressBound'/usr/local/bin/ld: invalid option -- Y
Tryld --help' orld --usage' for more information.
collect2: ld returned 64 exit status
make: *** [makedumpfile] Error 1This is a simple program to print Hello.
Even for this is the error is same.[root@tc210 makedumpfile]# gcc -o test
test.c/usr/local/bin/ld: invalid option -- Y
Tryld --help' orld --usage' for more information.
collect2: ld returned 64 exit status [root@tc210 makedumpfile]#
Quoted 2 lines
Thanks in Advance
Seetharam
____________________________________________________________
ONE-CLICK WEBMAIL ACCESS - Easily monitor & access your email accounts! Visit http://www.inbox.com/notifier and check it out!
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Hi Dharmosoth,
Quoted 5 lines · Dharmosoth Seetharam
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.
Quoted 7 lines
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@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
Quoted 6 lines
makedumpfile.c: In function `write_kdump_pages':
makedumpfile.c:4102: warning: implicit declaration of function `compressBound'/usr/local/bin/ld: invalid option -- Y
Tryld --help' orld --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.
Thanks
Ken'ichi Ohmichi
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Hi Ken'ichi Ohmichi,
Sorry for delayed reply!! I was not at work.
No, I tried with what you say but I am getting many error!!
I think this is the problem with the PATH (?).
[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'
/tmp/ccwAfYOX.o(.text+0xa082): In function `write_kdump_pages':/root/makedumpfile/makedumpfile.c:4102: undefined reference to `compressBound'
collect2: ld returned 1 exit status
make: *** [makedumpfile] Error 1
[root@ssn258 makedumpfile]# 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 -lelf -lz makedumpfile.c: In function `write_kdump_pages':
makedumpfile.c:4102: warning: implicit declaration of function `compressBound'
/tmp/ccFds0fs.o(.text+0x29f7): In function `get_data_member_location':/root/makedumpfile/makedumpfile.c:967: undefined reference to `dwarf_attr'
/tmp/ccFds0fs.o(.text+0x2a1a):/root/makedumpfile/makedumpfile.c:970: undefined reference to `dwarf_getlocation'
/tmp/ccFds0fs.o(.text+0x2a6f): In function `get_die_type':/root/makedumpfile/makedumpfile.c:984: undefined reference to `dwarf_dieoffset'
/tmp/ccFds0fs.o(.text+0x2a7a):/root/makedumpfile/makedumpfile.c:984: undefined reference to dwarf_cuoffset' /tmp/ccFds0fs.o(.text+0x2a8d):/root/makedumpfile/makedumpfile.c:989: undefined reference to dwarf_attr'
/tmp/ccFds0fs.o(.text+0x2ac1):/root/makedumpfile/makedumpfile.c:992: undefined reference to `dwarf_formref'
/tmp/ccFds0fs.o(.text+0x2ada):/root/makedumpfile/makedumpfile.c:995: undefined reference to `dwarf_offdie'
/tmp/ccFds0fs.o(.text+0x2bd7): In function `get_data_array_length':/root/makedumpfile/makedumpfile.c:1014: undefined reference to `dwarf_tag'
/tmp/ccFds0fs.o(.text+0x2beb):/root/makedumpfile/makedumpfile.c:1025: undefined reference to `dwarf_child'
/tmp/ccFds0fs.o(.text+0x2bf4):/root/makedumpfile/makedumpfile.c:1027: undefined reference to `dwarf_tag'
/tmp/ccFds0fs.o(.text+0x2c04):/root/makedumpfile/makedumpfile.c:1030: undefined reference to dwarf_siblingof' /tmp/ccFds0fs.o(.text+0x2c21):/root/makedumpfile/makedumpfile.c:1035: undefined reference to dwarf_attr'
/tmp/ccFds0fs.o(.text+0x2c35):/root/makedumpfile/makedumpfile.c:1038: undefined reference to `dwarf_formudata'
/tmp/ccFds0fs.o(.text+0x2cd6): In function `check_array_type':/root/makedumpfile/makedumpfile.c:1059: undefined reference to `dwarf_tag'
/tmp/ccFds0fs.o(.text+0x2d15): In function `search_member':/root/makedumpfile/makedumpfile.c:1073: undefined reference to `dwarf_child'
/tmp/ccFds0fs.o(.text+0x2d2a):/root/makedumpfile/makedumpfile.c:1079: undefined reference to `dwarf_tag'
/tmp/ccFds0fs.o(.text+0x2d34):/root/makedumpfile/makedumpfile.c:1080: undefined reference to dwarf_diename' /tmp/ccFds0fs.o(.text+0x2d44):/root/makedumpfile/makedumpfile.c:1114: undefined reference to dwarf_siblingof'
/tmp/ccFds0fs.o(.text+0x2e07): In function `search_structure':/root/makedumpfile/makedumpfile.c:1164: undefined reference to `dwarf_tag'
/tmp/ccFds0fs.o(.text+0x2e11):/root/makedumpfile/makedumpfile.c:1165: undefined reference to dwarf_diename' /tmp/ccFds0fs.o(.text+0x2e21):/root/makedumpfile/makedumpfile.c:1177: undefined reference to dwarf_siblingof' /tmp/ccFds0fs.o(.text+0x2e8c):/root/makedumpfile/makedumpfile.c:1172: undefined reference to `dwarf_bytesize'
/tmp/ccFds0fs.o(.text+0x2ed8): In function `search_srcfile':/root/makedumpfile/makedumpfile.c:1219: undefined reference to `dwarf_tag'
/tmp/ccFds0fs.o(.text+0x2ee2):/root/makedumpfile/makedumpfile.c:1220: undefined reference to dwarf_diename' /tmp/ccFds0fs.o(.text+0x2ef2):/root/makedumpfile/makedumpfile.c:1231: undefined reference to dwarf_siblingof' /tmp/ccFds0fs.o(.text+0x2f3f):/root/makedumpfile/makedumpfile.c:1226: undefined reference to `dwarf_decl_file'
/tmp/ccFds0fs.o(.text+0x2f65): In function `search_symbol':/root/makedumpfile/makedumpfile.c:1255: undefined reference to `dwarf_tag'
/tmp/ccFds0fs.o(.text+0x2f70):/root/makedumpfile/makedumpfile.c:1256: undefined reference to dwarf_diename' /tmp/ccFds0fs.o(.text+0x2f84):/root/makedumpfile/makedumpfile.c:1262: undefined reference to dwarf_siblingof'
/tmp/ccFds0fs.o(.text+0x3048): In function `search_die_tree':/root/makedumpfile/makedumpfile.c:1294: undefined reference to `dwarf_child'
/tmp/ccFds0fs.o(.text+0x3155): In function `get_debug_info':/root/makedumpfile/makedumpfile.c:1337: undefined reference to `dwarf_begin_elf'
/tmp/ccFds0fs.o(.text+0x31ef):/root/makedumpfile/makedumpfile.c:1363: undefined reference to dwarf_nextcu' /tmp/ccFds0fs.o(.text+0x320b):/root/makedumpfile/makedumpfile.c:1366: undefined reference to dwarf_offdie' /tmp/ccFds0fs.o(.text+0x3242):/root/makedumpfile/makedumpfile.c:1378: undefined reference to `dwarf_end'
/tmp/ccFds0fs.o(.text+0xa082): In function `write_kdump_pages':/root/makedumpfile/makedumpfile.c:4102: undefined reference to `compressBound'
collect2: ld returned 1 exit status
The following is the PATH:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:
/usr/X11R6/bin:/opt/filer/bin:/root/bin:/usr/local/include/:/usr/local:/usr/local/include/elfutils
I have copied those files to /usr/local/include/elfutils
Any comments ??
Thanks
Seetharam
Quoted 60 lines
-----Original Message-----
From: [email protected]
Sent: Fri, 15 Jun 2007 16:45:57 +0900
To: [email protected]
Subject: Re: problem with elfutils-0.125 for makedumpfileHi Dharmosoth,
2007/06/14 06:27:18 -0800, Dharmosoth Seetharam <[email protected]>
Quoted 5 lines · 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.
Quoted 7 lines
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@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 makedumpfilemakedumpfile.c-static -ldw -lelf -lzQuoted 2 lines
makedumpfile.c: In function `write_kdump_pages':
makedumpfile.c:4102: warning: implicit declaration of function`compressBound'
Quoted 4 lines
/usr/local/bin/ld: invalid option -- Y
Tryld --help' orld --usage' for more information.
collect2: ld returned 64 exit status
make: *** [makedumpfile] Error 1I 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 #
Quoted 6 lines
If there are not any problems, I will add the above method to README file.
Thanks
Ken'ichi Ohmichi
____________________________________________________________
Listen & Record Music from Internet Radio - Get Free Radio & MP3 Player & Recorder Learn more at http://www.inbox.com/radio
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Hi Dharmosoth,
Thank you for the information.
Quoted 7 lines · Dharmosoth Seetharam
No, I tried with what you say but I am getting many error!!
I think this is the problem with the PATH (?).
[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
Quoted 7 lines
makedumpfile.c: In function `write_kdump_pages':
makedumpfile.c:4102: warning: implicit declaration of functioncompressBound' /tmp/ccwAfYOX.o(.text+0xa082): In functionwrite_kdump_pages':/root/makedumpfile/makedumpfile.c:4102: undefined reference to `compressBound'
collect2: ld returned 1 exit status
make: *** [makedumpfile] Error 1
[root@ssn258 makedumpfile]# 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 -lelf -lz
Quoted 50 lines
makedumpfile.c: In function `write_kdump_pages':
makedumpfile.c:4102: warning: implicit declaration of functioncompressBound' /tmp/ccFds0fs.o(.text+0x29f7): In functionget_data_member_location':/root/makedumpfile/makedumpfile.c:967: undefined reference todwarf_attr' /tmp/ccFds0fs.o(.text+0x2a1a):/root/makedumpfile/makedumpfile.c:970: undefined reference todwarf_getlocation' /tmp/ccFds0fs.o(.text+0x2a6f): In function `get_die_type':/root/makedumpfile/makedumpfile.c:984: undefined reference todwarf_dieoffset' /tmp/ccFds0fs.o(.text+0x2a7a):/root/makedumpfile/makedumpfile.c:984: undefined reference todwarf_cuoffset' /tmp/ccFds0fs.o(.text+0x2a8d):/root/makedumpfile/makedumpfile.c:989: undefined reference todwarf_attr' /tmp/ccFds0fs.o(.text+0x2ac1):/root/makedumpfile/makedumpfile.c:992: undefined reference todwarf_formref' /tmp/ccFds0fs.o(.text+0x2ada):/root/makedumpfile/makedumpfile.c:995: undefined reference todwarf_offdie' /tmp/ccFds0fs.o(.text+0x2bd7): In functionget_data_array_length':/root/makedumpfile/makedumpfile.c:1014: undefined reference todwarf_tag' /tmp/ccFds0fs.o(.text+0x2beb):/root/makedumpfile/makedumpfile.c:1025: undefined reference todwarf_child' /tmp/ccFds0fs.o(.text+0x2bf4):/root/makedumpfile/makedumpfile.c:1027: undefined reference todwarf_tag' /tmp/ccFds0fs.o(.text+0x2c04):/root/makedumpfile/makedumpfile.c:1030: undefined reference todwarf_siblingof' /tmp/ccFds0fs.o(.text+0x2c21):/root/makedumpfile/makedumpfile.c:1035: undefined reference todwarf_attr' /tmp/ccFds0fs.o(.text+0x2c35):/root/makedumpfile/makedumpfile.c:1038: undefined reference todwarf_formudata' /tmp/ccFds0fs.o(.text+0x2cd6): In function `check_array_type':/root/makedumpfile/makedumpfile.c:1059: undefined reference todwarf_tag' /tmp/ccFds0fs.o(.text+0x2d15): In functionsearch_member':/root/makedumpfile/makedumpfile.c:1073: undefined reference todwarf_child' /tmp/ccFds0fs.o(.text+0x2d2a):/root/makedumpfile/makedumpfile.c:1079: undefined reference todwarf_tag' /tmp/ccFds0fs.o(.text+0x2d34):/root/makedumpfile/makedumpfile.c:1080: undefined reference todwarf_diename' /tmp/ccFds0fs.o(.text+0x2d44):/root/makedumpfile/makedumpfile.c:1114: undefined reference todwarf_siblingof' /tmp/ccFds0fs.o(.text+0x2e07): In function `search_structure':/root/makedumpfile/makedumpfile.c:1164: undefined reference todwarf_tag' /tmp/ccFds0fs.o(.text+0x2e11):/root/makedumpfile/makedumpfile.c:1165: undefined reference todwarf_diename' /tmp/ccFds0fs.o(.text+0x2e21):/root/makedumpfile/makedumpfile.c:1177: undefined reference todwarf_siblingof' /tmp/ccFds0fs.o(.text+0x2e8c):/root/makedumpfile/makedumpfile.c:1172: undefined reference todwarf_bytesize' /tmp/ccFds0fs.o(.text+0x2ed8): In function `search_srcfile':/root/makedumpfile/makedumpfile.c:1219: undefined reference todwarf_tag' /tmp/ccFds0fs.o(.text+0x2ee2):/root/makedumpfile/makedumpfile.c:1220: undefined reference todwarf_diename' /tmp/ccFds0fs.o(.text+0x2ef2):/root/makedumpfile/makedumpfile.c:1231: undefined reference todwarf_siblingof' /tmp/ccFds0fs.o(.text+0x2f3f):/root/makedumpfile/makedumpfile.c:1226: undefined reference todwarf_decl_file' /tmp/ccFds0fs.o(.text+0x2f65): In function `search_symbol':/root/makedumpfile/makedumpfile.c:1255: undefined reference todwarf_tag' /tmp/ccFds0fs.o(.text+0x2f70):/root/makedumpfile/makedumpfile.c:1256: undefined reference todwarf_diename' /tmp/ccFds0fs.o(.text+0x2f84):/root/makedumpfile/makedumpfile.c:1262: undefined reference todwarf_siblingof' /tmp/ccFds0fs.o(.text+0x3048): In functionsearch_die_tree':/root/makedumpfile/makedumpfile.c:1294: undefined reference todwarf_child' /tmp/ccFds0fs.o(.text+0x3155): In functionget_debug_info':/root/makedumpfile/makedumpfile.c:1337: undefined reference todwarf_begin_elf' /tmp/ccFds0fs.o(.text+0x31ef):/root/makedumpfile/makedumpfile.c:1363: undefined reference todwarf_nextcu' /tmp/ccFds0fs.o(.text+0x320b):/root/makedumpfile/makedumpfile.c:1366: undefined reference todwarf_offdie' /tmp/ccFds0fs.o(.text+0x3242):/root/makedumpfile/makedumpfile.c:1378: undefined reference todwarf_end' /tmp/ccFds0fs.o(.text+0xa082): In function `write_kdump_pages':/root/makedumpfile/makedumpfile.c:4102: undefined reference to `compressBound'
collect2: ld returned 1 exit status
Quoted 6 lines
The following is the PATH:
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:
/usr/X11R6/bin:/opt/filer/bin:/root/bin:/usr/local/include/:/usr/local:/usr/local/include/elfutilsI have copied those files to
/usr/local/include/elfutils
Did you copy all files (libdw.h, dwarf.h, libelf.h, gelf.h, libelf.a, libdw.a, libasm.a, and libebl.a) to the paths I specified ?
Quoted 9 lines
Quoted 9 lines
# 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 you do it and get the above error, could you please change makedumpfile's Makefile like the following (-L/usr/local/lib/ is added) ?
And let me know the result.
CFLAGS = -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -L/usr/local/lib/ \
-DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(DATE)"'And I guess your system doesn't have zlib library. Could you check it also ?
Thanks
Ken'ichi Ohmichi
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec