Re: undefined reference to `CRYPTO_set_id_callback'

Flo Rance <[email protected]> Wed, 27 Nov 2019 14:49:50 +0100
Newsgroups gmane.network.stunnel.user
Message-ID <CAHogYcWm=JJBF2bbaNG0A4aVBn7sWX9mDTWxdEi8hbyLBCiacg@mail.gmail.com>
--===============5478397706347232078==
Content-Type: multipart/alternative; boundary="0000000000006f5134059854479c"

--0000000000006f5134059854479c
Content-Type: text/plain; charset="UTF-8"

Which version of stunnel ?

On Wed, 27 Nov 2019 at 11:56, Somchai Smythe <[email protected]>
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
> [email protected]
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
>

--0000000000006f5134059854479c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Which version of stunnel ?<br></div><br><div class=3D"gmai=
l_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, 27 Nov 2019 at 11:56=
, Somchai Smythe &lt;<a href=3D"mailto:[email protected]">buraph=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);padding-left:1ex">How do I fix this?<br>
<br>
gcc -DHAVE_CONFIG_H -I.=C2=A0 -I/usr/kerberos/include -I/usr/include<br>
-DLIBDIR=3D&#39;&quot;/usr/lib/stunnel&quot;&#39; -DCONFDIR=3D&#39;&quot;/e=
tc/stunnel&quot;&#39;=C2=A0 =C2=A0-O3 -m64<br>
-march=3Dx86-64 -mtune=3Dgeneric -pipe -std=3Dgnu17 -pthread -Wall -Wextra<=
br>
-Wpedantic -Wformat=3D2 -Wconversion -Wno-long-long<br>
-Wno-deprecated-declarations -fPIE -fstack-protector<br>
-D_FORTIFY_SOURCE=3D2 -MT stunnel-sthreads.o -MD -MP -MF<br>
.deps/stunnel-sthreads.Tpo -c -o stunnel-sthreads.o `test -f<br>
&#39;sthreads.c&#39; || echo &#39;./&#39;`sthreads.c<br>
sthreads.c: In function &#39;thread_id_init&#39;:<br>
sthreads.c:116:5: warning: implicit declaration of function<br>
&#39;CRYPTO_set_id_callback&#39;; did you mean &#39;CRYPTO_set_locking_call=
back&#39;?<br>
[-Wimplicit-function-declaration]<br>
=C2=A0 116 |=C2=A0 =C2=A0 =C2=A0CRYPTO_set_id_callback(stunnel_thread_id);<=
br>
=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~~~~~~~<br>
=C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0CRYPTO_set_locking_callback<br>
<br>
...<br>
<br>
libtool: link: ( cd &quot;.libs&quot; &amp;&amp; rm -f &quot;<a href=3D"htt=
p://libstunnel.la" rel=3D"noreferrer" target=3D"_blank">libstunnel.la</a>&q=
uot; &amp;&amp; ln -s<br>
&quot;../<a href=3D"http://libstunnel.la" rel=3D"noreferrer" target=3D"_bla=
nk">libstunnel.la</a>&quot; &quot;<a href=3D"http://libstunnel.la" rel=3D"n=
oreferrer" target=3D"_blank">libstunnel.la</a>&quot; )<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&#39;:<br>
sthreads.c:(.text+0xb0): undefined reference to `CRYPTO_set_id_callback&#39=
;<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&#39;:<br>
sthreads.c:(.text+0x3a): undefined reference to `CRYPTO_set_id_callback&#39=
;<br>
collect2: error: ld returned 1 exit status<br>
make[2]: *** [Makefile:550: stunnel] Error 1<br>
<br>
I&#39;m using openssl-1.1.1d if it matters.<br>
_______________________________________________<br>
stunnel-users mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">stunnel-user=
[email protected]</a><br>
<a href=3D"https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" =
rel=3D"noreferrer" target=3D"_blank">https://www.stunnel.org/cgi-bin/mailma=
n/listinfo/stunnel-users</a><br>
</blockquote></div>

--0000000000006f5134059854479c--

--===============5478397706347232078==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users

--===============5478397706347232078==--