I appreciate your patience, Bill.
Contents of the linker_options is:
/Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a
-L/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/.
-R/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/.
-L/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/
-R/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/
-L/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib//server
-R/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib//server
/Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/_Debug/module.a
modules/_Image_TIFF/dummy.o
/Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/_Stdio/module.a
/Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/_math/module.a
/Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/system/module.a
I've tried building Gmp from scratch, downloading and running `make install`.
And the output ends with:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /usr/local/lib/libgmp.a(mp_clz_tab.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /usr/local/lib/libgmp.a(obprintf.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /usr/local/lib/libgmp.a(obvprintf.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /usr/local/lib/libgmp.a(obprntffuns.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib:
file: /usr/local/lib/libgmp.a(repl-vsnprintf.o) has no symbols
If I run strings on the first file in the above list and grep "gmpz", many are
present:
___gmpz_legendre
___gmpz_abs
___gmpz_add
___gmpz_add_ui
___gmpz_addmul
___gmpz_submul
...abridged
___gmpz_urandomb
___gmpz_urandomm
___gmpz_xor
ls -la /usr/local/lib/ | grep gmp
-rwxr-xr-x 1 mikekilmer staff 576K Mar 9 16:28 libgmp.10.dylib*
-rw-r--r-- 1 mikekilmer staff 960K Mar 9 16:28 libgmp.a
lrwxr-xr-x 1 mikekilmer staff 15B Mar 9 16:28 libgmp.dylib@ ->
libgmp.10.dylib
-rwxr-xr-x 1 mikekilmer staff 1.1K Mar 9 16:28 libgmp.la*
Tried reinstalling via Homebrew with -s flag to compile from source.
Saw this: ./configure --enable-cxx --with-pic --build=westmere-apple-darwin22
(Had to `brew link --overwrite gmp`)
Side note:
$ Unexpected '.la' files:
/usr/local/lib/libgmp.la <http://libgmp.la/>
Which I imagine is from the non-brew build and can be deleted.
Still getting same build error:
Undefined symbols for architecture x86_64:
"___gmp_set_memory_functions", referenced from:
_pike_module_Gmp_init in module.a(mpz_glue.o)
Confirmed ("it's *in* there"):
$ strings /usr/local/lib/libgmp.a | grep ___gmp_set_memory_functions
___gmp_set_memory_functions
Scratching my head. It's like the symbol is there but _pike_module_Gmp_init
can't recognize/access it.