static linking with openssh 8.2p1
Closed this issue · 4 comments
gzpapp commented
Trying to link statically link openssh 8.2p1 using libxcrypt instead of glibc's crypt fails:
/pkg/bin/ld: /usr/lib/libcrypt.a(libcrypt_la-crypt-static.o): in function crypt': /home/gzp/build.base/libxcrypt/src/4.4.12/lib/crypt-static.c:29: multiple definition of
xcrypt'; openbsd-compat/libopenbsd-compat.a(xcrypt.o):/home/gzp/src/openssh-8.2p1/openbsd-compat/xcrypt.c:101: first defined here
Any way to fix this?
zackw commented
I think this is a bug in openssh, but some of our compatibility code may be
making it worse. Could you please send us the complete contents of
config.log from your openssh build?
gzpapp commented
Sorry for the delay.
Instead of attaching the old config.log, I was picking up your commit and made an errorless build with the new libcrypt.a.
I'm confirming, the problem solved, thanks.
zackw commented