Closed mitchwagner closed 5 years ago
I think that core-tools/src/dgsh-elf.s
needs to be adjusted for macOS Mojave. You may try compiling into assembly (cc -S
) a small C program containing int force_include;
to see how it should be defined. Then add that definition to core-tools/src/dgsh-elf.s
. I'd appreciate a pull request.
The commit does what @dspinellis suggests. Since the data in the dgsh-elf.s
file are used to identify a dgsh program by means of checking whether it is linked with the dgsh library, more work is required for this to also work on MacOS. This work is under way for a while now in the osx-build
branch (so this is a known issue). In particular, check out dgsh_util.c. With this opportunity I'll try to push this work forward so that we can close this issue.
The issue should be resolved now. By the way, there is a more efficient implementation of parsing macho
files under way via mmap
instead of file read/seek operations. That said, besides performance the existing implementation should work fine.
@mitchwagner you can retry building. If everything looks good, we can close this issue.
Seems to work now.
Hi,
I was attempting to build dgsh on MacOS Mojave; I followed the build instructions for Debian/Ubuntu GNU/Linux, posted here: https://www.spinellis.gr/sw/dgsh/#debian
After making sure I installed all listed prerequisites, I ran:
This resulted in the following error during the make command: