Hide Forgot
For the next version of elfutils, commit 725aad5d2f8b7 added a call to be64toh(3), but neglects to autoconf-detect/assert its presence, leading to build failures on older libc's.
Even very old glibc have bswap_64, so maybe the simplest (untested) fix would be something like: #ifndef be64toh #include <byteswap.h> #if __BYTE_ORDER == __LITTLE_ENDIAN #define be64toh(x) bswap_64 (x) #else #define be64toh(x) (x) #endif #endif
You can do that on the portability branch. Just observe style with space after # for nested directives.
Tested and committed to the portable branch: commit 878fd6e6184d791ff81cbd6d18fe8d968d3d843e Author: Mark Wielaard <mjw> Date: Wed Jul 20 14:59:02 2011 +0200 Add fallback for be64toh if not defined.