Closed alxdrl closed 9 years ago
a disassembler with internationalized error messages ! ain't that great ?
I don't use homebrew on my OS X box, and I don't have any control over whatever crap GNU binutils (libbfd and libopcodes) links to.
I'll add some more complete dependency checks to the autoconf scripts and see if that helps -- apparently libz is another library required by binutils, but whose header files no longer ship by default.
Latest commit has fixes (and a wrapper script for configure) that allow opdis to build more readily on OS X with either MacPorts or HomeBrew.
I have not yet tested the resulting executable -- all that banging away at autoconf scripts has sapped my will.
There is still something funky, though: make check
works with the MacPorts build, but fails (running the tree test) with the HomeBrew build.
Can anyone using a mac confirm this fix? My macbook has been booted into Linux for over a month now.
I can confirm that configure.osx works out of the box here (homebrew on OSX 10.6) ; great !
Though the executable fails with some missing symbol :
$ opdis dyld: Symbol not found: __hex_value Referenced from: /usr/local/Cellar/opdis/HEAD/lib/libopdis.0.dylib Expected in: flat namespace in /usr/local/Cellar/opdis/HEAD/lib/libopdis.0.dylib
I might have a look someday, I'm currently focusing outside of opdis scope ATM and I'm not acquainted at all with OSX dynamic linking.
Thanks anyway !
I think I solved the problem. For whatever reason the LIB -liberty was not being set in the Makefile. Manually adding it to the LIB var fixes this.
This should all be fixed with the latest commits.
./configure fails with the following in config.log:
and others similar messages related to gettext symbols… I'm able to build opdis on my brewed macosx with the following commands:
./configure LDFLAGS="-lintl -largp -liberty -L/usr/local/opt/gettext/lib -L/usr/local/opt/argp-standalone/lib -L/usr/local/Cellar/binutils/2.22/lib/x86_64"
Don't know if you can do anything about it ?