[Bug 201078] Re: libelf.h can't be included
Bug Watch Updater
201078 at bugs.launchpad.net
Fri Oct 27 00:07:56 UTC 2017
Launchpad has imported 14 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=377241.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.
------------------------------------------------------------------------
On 2007-11-12T08:18:49+00:00 Tom wrote:
Description of problem:
The libelf.h header now uses off64_t instead of off_t in various places, but it
does nothing to ensure that such a type is defined leading to failed compilation
of any code which uses libelf.h without defining _LARGEFILE64_SOURCE.
Version-Release number of selected component (if applicable):
elfutils-libelf-devel-0.130-3.fc8.x86_64
How reproducible:
Happens every time.
Steps to Reproduce:
1. Try and compile a C source file containing #include <libelf.h>
Actual results:
Compile fails.
Expected results:
Compile works.
Additional info:
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/0
------------------------------------------------------------------------
On 2007-11-12T08:32:55+00:00 Roland wrote:
Note that in prior versions, programs built without -D_FILE_OFFSET_BITS=64 on
32-bit machines were buggy if they used the Elf_Data type directly. So if you
want to work correctly with a variety of elfutils-devel versions, using that
setting is the best plan.
I will replace off64_t with loff_t in the header for the next version.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/1
------------------------------------------------------------------------
On 2007-12-19T03:10:15+00:00 Roland wrote:
*** Bug 426100 has been marked as a duplicate of this bug. ***
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/2
------------------------------------------------------------------------
On 2008-01-24T21:48:54+00:00 Fedora wrote:
elfutils-0.132-3.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update elfutils'
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/3
------------------------------------------------------------------------
On 2008-01-24T21:53:47+00:00 Fedora wrote:
elfutils-0.132-3.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update elfutils'
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/4
------------------------------------------------------------------------
On 2008-03-01T21:48:26+00:00 Fedora wrote:
elfutils-0.133-1.fc8 has been submitted as an update for Fedora 8
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/5
------------------------------------------------------------------------
On 2008-05-21T19:48:51+00:00 Fedora wrote:
elfutils-0.135-1.fc7 has been submitted as an update for Fedora 7
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/8
------------------------------------------------------------------------
On 2008-05-21T19:51:25+00:00 Fedora wrote:
elfutils-0.135-1.fc8 has been submitted as an update for Fedora 8
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/9
------------------------------------------------------------------------
On 2008-05-21T19:52:55+00:00 Fedora wrote:
elfutils-0.135-1.fc9 has been submitted as an update for Fedora 9
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/10
------------------------------------------------------------------------
On 2008-05-29T02:39:43+00:00 Fedora wrote:
elfutils-0.135-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update elfutils'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F7/FEDORA-2008-4457
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/11
------------------------------------------------------------------------
On 2008-07-30T20:08:25+00:00 Fedora wrote:
elfutils-0.135-1.fc9 has been pushed to the Fedora 9 stable repository.
If problems still persist, please make note of it in this bug report.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/12
------------------------------------------------------------------------
On 2008-07-30T20:11:37+00:00 Fedora wrote:
elfutils-0.135-1.fc8 has been pushed to the Fedora 8 stable repository.
If problems still persist, please make note of it in this bug report.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/13
------------------------------------------------------------------------
On 2008-11-26T08:20:28+00:00 Bug wrote:
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '8'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 8's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 8 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/14
------------------------------------------------------------------------
On 2008-11-26T08:45:31+00:00 Tom wrote:
This is fixed, so can be closed as such rather than as WONTFIX.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/comments/15
** Changed in: elfutils (Fedora)
Importance: Unknown => Low
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to elfutils in Ubuntu.
https://bugs.launchpad.net/bugs/201078
Title:
libelf.h can't be included
Status in elfutils package in Ubuntu:
Fix Released
Status in elfutils package in Fedora:
Fix Released
Bug description:
Binary package hint: libelf-dev
Hi!
I'm using Ubuntu hardy, with the us repositories, and the libelf-dev
package has a little bug in the current version (0.131-3) that (as far
as I've seen) is resolved in the 0.132 version.
I'm including the libelf.h file into one of my programs, and this is
the output:
In file included from /usr/include/gelf.h:53,
from lala.c:7:
/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’
make: *** [lala] Error 1
I've seen that the off64_t is not recognized since the compiler
doesn't define some macros. Anyways, in a FC8 forum they say that the
problem is resolved in the 0.132 version of the corresponding package
(elfutils in fedora). This can be seen here:
http://linux.derkeiler.com/Mailing-Lists/Fedora/2008-01/msg04001.html
My distro info is:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"
That's all. Hope this can be solved :D
Bye!
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/201078/+subscriptions
More information about the foundations-bugs
mailing list