Build failure on macOS 10.15

Bo Lindbergh 2bfjdsla52kztwejndzdstsxl9athp at
Sun Nov 29 04:59:12 UTC 2020

Summary: probing for a linker feature by running only the compilation step
doesn't work.

make outputs:
> ../libtool --mode=link gcc -fPIE -pie -Wl,-z,relro -Wl,-z,now -o setproctitle.lo reallocarray.lo argparse.lo buffer.lo cleanfrom.lo clientactive.lo clientlib.lo commands.lo concat.lo conffile.lo confparse.lo daemonize.lo date.lo dbz.lo defdist.lo dispatch.lo fdflag.lo fdlimit.lo getfqdn.lo getmodaddr.lo hash.lo hashtab.lo headers.lo hex.lo innconf.lo inndcomm.lo list.lo localopen.lo lockfile.lo makedir.lo md5.lo messageid.lo messages.lo mmap.lo network.lo network-innbind.lo newsuser.lo nntp.lo numbers.lo qio.lo radix32.lo readin.lo remopen.lo reservedfd.lo resource.lo sendarticle.lo sendpass.lo sequence.lo timer.lo tst.lo uwildmat.lo vector.lo wire.lo xfopena.lo xmalloc.lo xsignal.lo xwrite.lo  \
> 	    -rpath /usr/local/news/lib -version-info 6:1:0
> libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libinn.6.dylib  .libs/setproctitle.o .libs/reallocarray.o .libs/argparse.o .libs/buffer.o .libs/cleanfrom.o .libs/clientactive.o .libs/clientlib.o .libs/commands.o .libs/concat.o .libs/conffile.o .libs/confparse.o .libs/daemonize.o .libs/date.o .libs/dbz.o .libs/defdist.o .libs/dispatch.o .libs/fdflag.o .libs/fdlimit.o .libs/getfqdn.o .libs/getmodaddr.o .libs/hash.o .libs/hashtab.o .libs/headers.o .libs/hex.o .libs/innconf.o .libs/inndcomm.o .libs/list.o .libs/localopen.o .libs/lockfile.o .libs/makedir.o .libs/md5.o .libs/messageid.o .libs/messages.o .libs/mmap.o .libs/network.o .libs/network-innbind.o .libs/newsuser.o .libs/nntp.o .libs/numbers.o .libs/qio.o .libs/radix32.o .libs/readin.o .libs/remopen.o .libs/reservedfd.o .libs/resource.o .libs/sendarticle.o .libs/sendpass.o .libs/sequence.o .libs/timer.o .libs/tst.o .libs/uwildmat.o .libs/vector.o .libs/wire.o .libs/xfopena.o .libs/xmalloc.o .libs/xsignal.o .libs/xwrite.o    -Wl,-z -Wl,relro -Wl,-z -Wl,now   -install_name  /usr/local/news/lib/libinn.6.dylib -compatibility_version 7 -current_version 7.1 -Wl,-single_module
> ld: unknown option: -z
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[1]: *** [] Error 1
> make: *** [all-lib] Error 2

config.log contains:
> configure:30703: checking if gcc supports -Wl,-z,relro
> configure:30728: gcc -c -Wno-error=all -Os -g -fPIE -fstack-protector-strong -Wl,-z,relro  conftest.c >&5
> clang: warning: -Wl,-z,relro: 'linker' input unused [-Wunused-command-line-argument]
> configure:30728: $? = 0
> configure:30737: result: yes
> configure:30743: checking if gcc supports -Wl,-z,now
> configure:30768: gcc -c -Wno-error=all -Os -g -fPIE -fstack-protector-strong -Wl,-z,now  conftest.c >&5
> clang: warning: -Wl,-z,now: 'linker' input unused [-Wunused-command-line-argument]
> configure:30768: $? = 0
> configure:30777: result: yes

More information about the inn-workers mailing list