<div dir="ltr"><div>I searched all the docs I could find but I was unable to locate any statements regarding gcc compatibility for openssl 3.x. I'm having a problem cross-compiling for arm using gcc-4.4.5:</div><div><br></div><div><span style="font-family:monospace">rm -f libssl.so && \<br>        ln -s libssl.so.3 libssl.so<br>arm-linux-gnueabi-gcc  -Iinclude  -fPIC -pthread -Wall -O3 -DNDEBUG -DL_ENDIAN -DOPENSSL_NO_COMP -MMD -MF engines/capi-dso-e_capi.d.tmp -MT engines/capi-dso-e_capi.o -c -o engines/capi-dso-e_capi.o engines/e_capi.c<br>/workspace/XXXXXX/perl/bin/perl ./util/<a href="http://mkdef.pl">mkdef.pl</a> --ordinals util/engines.num  --name engines/capi --OS linux > engines/capi.ld<br>arm-linux-gnueabi-gcc -fPIC -pthread -Wall -O3 -L. -z defs -Wl,-znodelete -shared -Wl,-Bsymbolic   \<br>                -o engines/capi.so -Wl,--version-script=engines/capi.ld \<br>                engines/capi-dso-e_capi.o \<br>                -lcrypto -ldl -pthread<br>arm-linux-gnueabi-gcc: defs: No such file or directory<br>gmake[5]: *** [engines/capi.so] Error 1</span></div><div><br></div><div>I found that gcc-4.9.2 works fine (odd, see below), as does the following patch:</div><div><br></div><div><span style="font-family:monospace">$ git diff Configurations/<a href="http://shared-info.pl">shared-info.pl</a> <br>diff --git a/Configurations/<a href="http://shared-info.pl">shared-info.pl</a> b/Configurations/<a href="http://shared-info.pl">shared-info.pl</a><br>index a673c7c..461ce3c 100644<br>--- a/Configurations/<a href="http://shared-info.pl">shared-info.pl</a><br>+++ b/Configurations/<a href="http://shared-info.pl">shared-info.pl</a><br>@@ -36,7 +36,7 @@ my %shared_info;<br>                 (grep /(?:^|\s)-fsanitize/,<br>                  @{$config{CFLAGS}}, @{$config{cflags}})<br>                 ? ''<br>-                : '-z defs',<br>+                : '-Wl,-z,defs',<br>         };<br>     },<br>     'bsd-gcc-shared' => sub { return $shared_info{'linux-shared'}; },</span></div><div><br></div><div>Although this works in gcc-4.9.2, it appears that the -z flag wasn't documented until gcc-5.5. All Google hits I get for "-z defs" take me to pages that show "-Wl,-z,defs" so it's curious that this particular option isn't being passed with -Wl like the others. Is there a minimum supported gcc version for openssl 3.x?<br></div><div><br></div><div><br></div><div>Thanks,</div><div>Tom.III</div><div><br></div></div>