openssl: [FreeBSD] ld: error: ./libssl.so: undefined reference to secure_getenv
Build is ok, but link error : (
./config --prefix=/usr --openssldir=/etc/pki/tls enable-ec_nistp_64_gcc_128 --system-ciphers-file=/etc/crypto-policies/back-ends/openssl.config zlib enable-camellia enable-seed enable-rfc3779 enable-sctp enable-cms enable-md2 enable-rc5 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers no-mdc2 no-ec2m no-sm2 no-sm4 shared -Wa,--noexecstack -DPURIFY -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong
Operating system: amd64-whatever-freebsd
...
ld: error: ./libssl.so: undefined reference to secure_getenv
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make[1]: stopped in /usr/home/zoujiaqing/rpmbuild/BUILD/openssl-1.1.1d
*** Error code 1
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (9 by maintainers)
I looks FreeBSD ports has this arg item: https://svnweb.freebsd.org/ports/head/security/openssl/Makefile?revision=521932&view=markup#l107
I need remove this arg item?
Oh, and why are you using enable-ec_nistp_64_gcc_128 ?