[Dwarf-Discuss] error building libdwarf

Neila Radhid neila.rachid@yahoo.fr
Wed Sep 29 22:11:24 GMT 2010


Hi,
Thanks a lot I build it succesfully, and I followed your instruction given to miriam
to install libdwarf , but it seems that sudo make install or sudo sh install doesn't work for dwarf and I've got this:
~/dwarf-20100808/dwarfdump$ sudo make install
cp dwarfdump /usr/local/bin/dwarfdump
cp ./dwarfdump.1 /usr/local/share/man/man1/dwarfdump.1
cp: cannot create regular file `/usr/local/share/man/man1/dwarfdump.1': No such file or directory

what I can do? thank you

--- En date de?: Mer 29.9.10, David Anderson <davea42 at earthlink.net> a ?crit?:

De: David Anderson <davea42 at earthlink.net>
Objet: Re: [Dwarf-Discuss] error building libdwarf
?: "Neila Radhid" <neila.rachid at yahoo.fr>, "dwarf-discuss at lists.dwarfstd.org" <dwarf-discuss at lists.dwarfstd.org>
Date: Mercredi 29 septembre 2010, 15h51

On 09/29/2010 02:27 AM, Neila Radhid wrote:
> Hi,
> I'm using ubuntu 10.04 and when I build libdwarf
> I get this message:
> gcc -g -O2 -I. -I.???-c -o dwarf_elf_access.o dwarf_elf_access.c
> dwarf_elf_access.c: In function ?dwarf_elf_object_access_internals_init?:
> dwarf_elf_access.c:146: warning: assignment makes pointer from integer without a cast
> dwarf_elf_access.c:177: warning: assignment makes pointer from integer without a cast
> dwarf_elf_access.c: In function ?dwarf_elf_object_access_get_section_info?:
> dwarf_elf_access.c:248: error: ?Elf_Scn? undeclared (first use in this function)
> 
...
> how can I fix it?
> Thanks
> 
> 

You need to install libelf-dev to get the headers.

? ? ???sudo apt-get install libelf-dev libelf1

Adding libelfg0 to that list of packages would be ok too.

David Anderson

-- I get up every morning determined to both change the world and have one hell of a good time. Sometimes this makes planning my day difficult.? -- E. B. White




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20100929/dbc95b0e/attachment.htm>



More information about the Dwarf-discuss mailing list