Closed jwt27 closed 4 years ago
These functions/macros are defined in libctf/swap.h
which is only included if the host does not have byteswap.h
. Google says OSX does not have this, yet configure seems to find it anyway, and the one that is included is missing these functions. I'm guessing this is a problem with the build environment on travis.
Can anyone confirm this on a Mac? (pinging @TheFakeMontyOnTheRun)
Hold my beer ;-)
Didn't take long for it to manifest itself. I'm still on OSX Mojave, but I won't dare updating to Catalina :P
Alright, thanks for confirming. It seems that libctf
was introduced with binutils 2.33.1 so that explains why this problem didn't occur before.
I'm going to patch out the dependency on byteswap.h
, I don't see why it's necessary in the first place since all the necessary functions are already present in swap.h
.
According to travis-ci, objdump in recent versions of binutils fails to link on OSX:
Seems it's missing some dependency? A google search for
_bswap_identity_64
returns exactly zero results.