[Dwarf-Discuss] error building libdwarf

David Anderson davea42@earthlink.net
Wed Sep 29 15:51:25 GMT 2010


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





More information about the Dwarf-discuss mailing list