I'm trying to rebuild an old research package (MONA Tool) in MacOS 15.3.2. It built and ran fine in MacOS14 but that build and any new build fails at runtime with the error:
~/Programming/mona-1.4 % mona
dyld[10180]: symbol not found in flat namespace '_guide'
zsh: abort mona
I went back through the ./configure output and found no glaring errors and the compile only contained some deprecation warnings for sprintf usage.
I'm at a loss on how to even start to debug this as the error is so cryptic. How would one figure out where _guide is being used and what dynamic library it is expected to be in?
guideis defined inFront/mona.cpp. But because this is C++, it will likely get mangled to something like__Z5guide. I also see that the project has the linker flags-flat_namespaceand-undefined suppresshardcoded, which sounds someone's desperate attempt to make compiler errors go away without understanding what they're doing. My first attempt would be to remove those flags, which will then probably lead to a bunch of compiler/linker errors, which may require (among others) a bunch ofextern "C" { ... }to fix.