On Tue, 6 Sep 2022, BERTRAND Joël wrote:
Please forget. There is a bug in readline library that only occurs on NetBSD. I suppose pkgsrc readline is patched.
pkgsrc adds the `-fcommon' flag to the compiler to "merge" common external symbols. Outside pkgsrc, the default behaviour looks like `-fno-common'. To compile against a static readline library outside pkgsrc, add the `-fcommon' flag to CFLAGS, or better yet, configure readline like: $ CPPFLAGS=-DNEED_EXTERN_PC ./configure [...] -RVP
