f8 can include libelf.h file?

dexter ddmbox2 at yahoo.co.uk
Fri Jan 25 12:07:31 UTC 2008


On Sun January 20 2008 04:28:20 Liu Xin wrote:
> Hi, Community,
>
> #uname -a
> Linux localhost.localdomain 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:36 EST
> 2007 x86_64 x86_64 x86_64 GNU/Linux
>
> my processor is laptop intel merom 5470.
>
> and i simply can include <libelf.h>
>
> if did, error will
>
> ////
> In file included from hello.c:3:
> /usr/include/libelf.h:98: error: expected specifier-qualifier-list before
> ‘off64_t’ /usr/include/libelf.h:160: error: expected
> specifier-qualifier-list before ‘off64_t’ /usr/include/libelf.h:201: error:
> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_update’
> /usr/include/libelf.h:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘elf_getbase’ /usr/include/libelf.h:305: error:
> expected declaration specifiers or ‘...’ before ‘off64_t’
> /usr/include/libelf.h:317: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘elf_getaroff’
>
> any pointers?
> Hi, Community,
>
> #uname -a
> Linux localhost.localdomain 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:36 EST
> 2007 x86_64 x86_64 x86_64 GNU/Linux
>
> my processor is laptop intel merom 5470.
>
> and i simply can include <libelf.h>
>
> if did, error will
>
> ////
> In file included from hello.c:3:
> /usr/include/libelf.h:98: error: expected specifier-qualifier-list before
> ‘off64_t’ /usr/include/libelf.h:160: error: expected
> specifier-qualifier-list before ‘off64_t’ /usr/include/libelf.h:201: error:
> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_update’
> /usr/include/libelf.h:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘elf_getbase’ /usr/include/libelf.h:305: error:
> expected declaration specifiers or ‘...’ before ‘off64_t’
> /usr/include/libelf.h:317: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘elf_getaroff’
>
> any pointers?
> Hi, Community,
>
> #uname -a
> Linux localhost.localdomain 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:36 EST
> 2007 x86_64 x86_64 x86_64 GNU/Linux
>
> my processor is laptop intel merom 5470.
>
> and i simply can include <libelf.h>
>
> if did, error will
>
> ////
> In file included from hello.c:3:
> /usr/include/libelf.h:98: error: expected specifier-qualifier-list before
> ‘off64_t’ /usr/include/libelf.h:160: error: expected
> specifier-qualifier-list before ‘off64_t’ /usr/include/libelf.h:201: error:
> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_update’
> /usr/include/libelf.h:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘elf_getbase’ /usr/include/libelf.h:305: error:
> expected declaration specifiers or ‘...’ before ‘off64_t’
> /usr/include/libelf.h:317: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘elf_getaroff’
>
> any pointers?
> Hi, Community,
>
> #uname -a
> Linux localhost.localdomain 2.6.23.9-85.fc8 #1 SMP Fri Dec 7 15:49:36 EST
> 2007 x86_64 x86_64 x86_64 GNU/Linux
>
> my processor is laptop intel merom 5470.
>
> and i simply can include <libelf.h>
>
> if did, error will
>
> ////
> In file included from hello.c:3:
> /usr/include/libelf.h:98: error: expected specifier-qualifier-list before
> ‘off64_t’ /usr/include/libelf.h:160: error: expected
> specifier-qualifier-list before ‘off64_t’ /usr/include/libelf.h:201: error:
> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘elf_update’
> /usr/include/libelf.h:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘elf_getbase’ /usr/include/libelf.h:305: error:
> expected declaration specifiers or ‘...’ before ‘off64_t’
> /usr/include/libelf.h:317: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘elf_getaroff’
>
> any pointers?

Looks like the fix is in, update elfutils.

================================================================================
 elfutils-0.132-3.fc8 (FEDORA-2008-0928)
 A collection of utilities and DSOs to handle compiled objects
--------------------------------------------------------------------------------
Update Information:

This update fixes problems with the eu-readelf utility handling archive files.  
It also fixes problems with compiling against the <libelf.h> header file 
without using certain feature test macros.
--------------------------------------------------------------------------------
ChangeLog:

* Mon Jan 21 2008 Roland McGrath <roland at redhat.com> - 0.132-3
- Update to 0.132
  - libelf: Use loff_t instead of off64_t in libelf.h header. (#377241)
  - eu-readelf: Fix handling of ET_REL files in archives.
  - libcpu: Implement x86 and x86-64 disassembler.
  - libasm: Add interface for disassembler.
  - all programs: add debugging of branch prediction.
  - libelf: new function elf_scnshndx.
--------------------------------------------------------------------------------
References:

  [ 1 ] Bug #377241 - Compiles using libelf.h fail as off64_t is not defined
        https://bugzilla.redhat.com/show_bug.cgi?id=377241
--------------------------------------------------------------------------------

...dex






More information about the fedora-list mailing list