[stunnel-users] undefined reference to `CRYPTO_set_id_callback'
Somchai Smythe
buraphalinuxserver at gmail.com
Wed Nov 27 11:55:30 CET 2019
How do I fix this?
gcc -DHAVE_CONFIG_H -I. -I/usr/kerberos/include -I/usr/include
-DLIBDIR='"/usr/lib/stunnel"' -DCONFDIR='"/etc/stunnel"' -O3 -m64
-march=x86-64 -mtune=generic -pipe -std=gnu17 -pthread -Wall -Wextra
-Wpedantic -Wformat=2 -Wconversion -Wno-long-long
-Wno-deprecated-declarations -fPIE -fstack-protector
-D_FORTIFY_SOURCE=2 -MT stunnel-sthreads.o -MD -MP -MF
.deps/stunnel-sthreads.Tpo -c -o stunnel-sthreads.o `test -f
'sthreads.c' || echo './'`sthreads.c
sthreads.c: In function 'thread_id_init':
sthreads.c:116:5: warning: implicit declaration of function
'CRYPTO_set_id_callback'; did you mean 'CRYPTO_set_locking_callback'?
[-Wimplicit-function-declaration]
116 | CRYPTO_set_id_callback(stunnel_thread_id);
| ^~~~~~~~~~~~~~~~~~~~~~
| CRYPTO_set_locking_callback
...
libtool: link: ( cd ".libs" && rm -f "libstunnel.la" && ln -s
"../libstunnel.la" "libstunnel.la" )
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
stunnel-sthreads.o: in function `sthreads_init':
sthreads.c:(.text+0xb0): undefined reference to `CRYPTO_set_id_callback'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
stunnel-sthreads.o: in function `thread_id_init':
sthreads.c:(.text+0x3a): undefined reference to `CRYPTO_set_id_callback'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:550: stunnel] Error 1
I'm using openssl-1.1.1d if it matters.
More information about the stunnel-users
mailing list