I added "-C" "-fPIC" and get this:
matt@mars:~/src/chicken-nng$ ck5 chicken-install -s
building nng
/home/matt/data/buildall/ck5.2/bin/csc -host -D compiling-extension -J -s -regenerate-import-libraries -setup-mode -I /home/matt/src/chicken-nng -C -I/home/matt/src/chicken-nng -C -fPIC -L -lnng src/nng.scm -o /home/matt/src/chicken-nng/nng.so
/usr/bin/ld: //usr/local/lib/libnng.a(nng.c.o): relocation R_X86_64_PC32 against symbol `nng_recvmsg' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Error: shell command terminated with non-zero exit status 256: 'gcc' '/home/matt/src/chicken-nng/nng.o' -o '/home/matt/src/chicken-nng/nng.so' -shared -lnng -L/home/matt/data/buildall/ck5.2/lib -Wl,-R/home/matt/data/buildall/ck5.2/lib -lchicken -lm -ldl
Error: shell command terminated with nonzero exit code
256
I'm wondering if my nng install is somehow broken? I compiled and ran the reqrep demo and it works fine.