[stunnel-users] undefined reference to `CRYPTO_set_id_callback'

Flo Rance trourance at gmail.com
Wed Nov 27 14:49:50 CET 2019


Which version of stunnel ?

On Wed, 27 Nov 2019 at 11:56, Somchai Smythe <buraphalinuxserver at gmail.com>
wrote:

> 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.
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at stunnel.org
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20191127/6d099e08/attachment.htm>


More information about the stunnel-users mailing list