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 <<a href=3D"mailto:[email protected]">buraph= [email protected]</a>> 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'"/usr/lib/stunnel"' -DCONFDIR=3D'"/e= tc/stunnel"'=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> '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_call= back'?<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 ".libs" && rm -f "<a href=3D"htt= p://libstunnel.la" rel=3D"noreferrer" target=3D"_blank">libstunnel.la</a>&q= uot; && ln -s<br> "../<a href=3D"http://libstunnel.la" rel=3D"noreferrer" target=3D"_bla= nk">libstunnel.la</a>" "<a href=3D"http://libstunnel.la" rel=3D"n= oreferrer" target=3D"_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=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==--