Hi Ken'ich, On 07/19/2011 07:57 AM, Ken'ichi Ohmichi wrote: > > Hi Mahesh, > > On Fri, 15 Jul 2011 15:51:38 +0530 > Mahesh Jagannath Salgaonkar <mahesh at linux.vnet.ibm.com> wrote: >>> >>> On my machine (RHEL5 x86_64), I cannot compile makedumpfile with this patch. >>> I guess that it is due to old elfutils of my machine, and I am trying this >>> problem by newer elfutils. >>> >>> I'd like to get some hints, so can you tell me your environment ? >>> RHEL6 x86_64 ? >> >> Yes, I had tested these patches on RHEL6.0 and RHEl6.1 x86_64. As far as >> I know RHEL6.0 had elfutils-0.148. >> >> I did not try my patches on RHEL5 x86-64. Let me see if I can get a >> RHEL5 x86_64 box to verify. > > I can compile it with elfutils-0.137 and some compiling options on RHEL5. > We need the following change in Makefile. > > - $(CC) $(CFLAGS) $(OBJ_ARCH) -o $@ $< -static -ldw -lelf -lz > + $(CC) $(CFLAGS) $(OBJ_ARCH) -o $@ $< -static -ldw -lbz2 -lebl -ldl -lelf -lz > > > By the way, do you have any documents/samples for dwfl_XXXX functions ? > I'd like to see them for reviewing this patch. As far as I know there is no formal documentation available for dwfl_xxxx functions apart from 'elfutils/libdwfl/libdwfl.h' from elfutils sources. In fact the elfutils itself lacks the Documentation part for most of it's APIs. I used 'elfutils/libdwfl/libdwfl.h' from elfutils sources as a reference which has neat explanation for each dwfl_xxx() functions. Apart from libdwfl.h I also used to go through actual function implementations available under elfutils sources. Thanks, -Mahesh.