| Summary: | dev-libs/elfutils-0.131 libelf.h requires off64_t (-D_LARGEFILE64_SOURCE) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Ryan Hill (RETIRED) <rhill> |
| Component: | [OLD] Development | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | flameeyes, Martin.vGagern |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
config.log
config.log |
||
|
Description
Ryan Hill (RETIRED)
2008-01-06 01:38:50 UTC
Created attachment 140243 [details]
config.log
why is your libelf.h including linux/sys.h ? mine isnt: $ grep '#include' /usr/include/libelf.h #include <sys/types.h> #include <elf.h> Created attachment 140245 [details]
config.log
crap, wrong log. sorry.
off64_t only shows up when building with -D_LARGEFILE64_SOURCE ... wtf thought that was a good idea add this to the top of your libelf.h: #if !defined(_LARGEFILE64_SOURCE) && !defined(__off64_t_defined) # define _LARGEFILE64_SOURCE #endif and make sure things work nope, sorry. still getting the same error. do `sed -i 's:off64_t:__off64_t:'` on libelf.h ... that lets me build prelink I wonder how this was ever supposed to work on redhat.. I'd vote for doing the sed in a -r1 ebuild. *** Bug 204208 has been marked as a duplicate of this bug. *** yep, this works. there's another, separate, problem with inlining and -std=gnu99 but it can be fixed anytime. they may not have rebuilt prelink against newer libelf yet and thus didnt notice 0.131-r1 in the tree using __off64_t |