<div dir="ltr">Which version of stunnel ?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 27 Nov 2019 at 11:56, Somchai Smythe <<a href="mailto:buraphalinuxserver@gmail.com">buraphalinuxserver@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How do I fix this?<br>
<br>
gcc -DHAVE_CONFIG_H -I. -I/usr/kerberos/include -I/usr/include<br>
-DLIBDIR='"/usr/lib/stunnel"' -DCONFDIR='"/etc/stunnel"' -O3 -m64<br>
-march=x86-64 -mtune=generic -pipe -std=gnu17 -pthread -Wall -Wextra<br>
-Wpedantic -Wformat=2 -Wconversion -Wno-long-long<br>
-Wno-deprecated-declarations -fPIE -fstack-protector<br>
-D_FORTIFY_SOURCE=2 -MT stunnel-sthreads.o -MD -MP -MF<br>
.deps/stunnel-sthreads.Tpo -c -o stunnel-sthreads.o `test -f<br>
'sthreads.c' || echo './'`sthreads.c<br>
sthreads.c: In function 'thread_id_init':<br>
sthreads.c:116:5: warning: implicit declaration of function<br>
'CRYPTO_set_id_callback'; did you mean 'CRYPTO_set_locking_callback'?<br>
[-Wimplicit-function-declaration]<br>
116 | CRYPTO_set_id_callback(stunnel_thread_id);<br>
| ^~~~~~~~~~~~~~~~~~~~~~<br>
| CRYPTO_set_locking_callback<br>
<br>
...<br>
<br>
libtool: link: ( cd ".libs" && rm -f "<a href="http://libstunnel.la" rel="noreferrer" target="_blank">libstunnel.la</a>" && ln -s<br>
"../<a href="http://libstunnel.la" rel="noreferrer" target="_blank">libstunnel.la</a>" "<a href="http://libstunnel.la" rel="noreferrer" target="_blank">libstunnel.la</a>" )<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
stunnel-sthreads.o: in function `sthreads_init':<br>
sthreads.c:(.text+0xb0): undefined reference to `CRYPTO_set_id_callback'<br>
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:<br>
stunnel-sthreads.o: in function `thread_id_init':<br>
sthreads.c:(.text+0x3a): undefined reference to `CRYPTO_set_id_callback'<br>
collect2: error: ld returned 1 exit status<br>
make[2]: *** [Makefile:550: stunnel] Error 1<br>
<br>
I'm using openssl-1.1.1d if it matters.<br>
_______________________________________________<br>
stunnel-users mailing list<br>
<a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a><br>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" rel="noreferrer" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
</blockquote></div>