<div dir="ltr"><div>If I understand correctly, CRYPTO_set_id_callback has been deprecated since version 1.0</div><div><br></div><div>So you don't use the right version of openssl or deprecated code is compiled in (OPENSSL_NO_DEPRECATED is not set).<br></div><div><br></div><div>#if OPENSSL_VERSION_NUMBER<0x10000000L || !defined(OPENSSL_NO_DEPRECATED)<br> CRYPTO_set_id_callback(stunnel_thread_id);<br>#endif</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 28 Nov 2019 at 05:13, 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">Version 5.56 of stunnel, but I got the same error on 5.55. I didn't<br>
report it for 5.55 since 5.56 came out and I had hoped that would fix<br>
it.<br>
<br>
The configure line was this:<br>
CC=gcc \<br>
CFLAGS='-O3 -m64 -march=x86-64 -mtune=generic -pipe -std=gnu17' \<br>
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var<br>
--mandir=/usr/man --disable-libwrap --with-pic<br>
<br>
Then I did a make -j4. Should I avoid parallel builds?<br>
<br>
<br>
On 11/27/19, Flo Rance <<a href="mailto:trourance@gmail.com" target="_blank">trourance@gmail.com</a>> wrote:<br>
> Which version of stunnel ?<br>
><br>
> On Wed, 27 Nov 2019 at 11:56, Somchai Smythe <<a href="mailto:buraphalinuxserver@gmail.com" target="_blank">buraphalinuxserver@gmail.com</a>><br>
> wrote:<br>
><br>
>> 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>
>><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>
>><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>
>><br>
><br>
</blockquote></div>