<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi All,<br><br></div><div>We are trying to build OpenSSL version 1.1.1b on Solaris, but it fails with following error:</div><div><br></div><div>libcrypto.map: file format not recognized; treating as linker script</div><div>collect2: error: ld returned 1 exit status<br>gmake[2]: *** [libcrypto.so] Error 1<br>gmake[1]: *** [all] Error 2</div><div><br></div><div>$ uname -a<br>SunOS <a href="http://mh-vmss3fnpb32.enguk.acresso.com">mh-vmss3fnpb32.enguk.acresso.com</a> 5.10 Generic_147147-26 sun4v sparc sun4v<br><br></div><div><br></div><div>This is happening because of the flags defined in Configurations/10-main.conf:</div><div><br></div><div>#### Solaris configurations<br>    "solaris-common" => {<br>        inherit_from     => [ "BASE_unix" ],<br>        template         => 1,<br>        lib_cppflags     => "-DFILIO_H",<br>        ex_libs          => add("-lsocket -lnsl -ldl"),<br>        dso_scheme       => "dlfcn",<br>        thread_scheme    => "pthreads",<br>        shared_target    => "self",<br>        shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)",<br>        shared_ldflag    => "-Wl,-Bsymbolic",<br>        shared_defflag   => "-Wl,-M,",<br>        shared_sonameflag=> "-Wl,-h,",<br>    },<br><br></div><div>After changing the shared_defflag to "-Wl, -Map," it works fine. i.e "-Wl, -M" is not recognized on Solaris, it needs to be "-Wl, -Map,".<br></div><div>Couple of queries here:</div><div>1. Is it not a bug on Solaris with OpenSSL 1.1.1b version?</div><div>2. Can we modify 'Configurations/10-main.conf' in our local copy of OpenSSL which is used internally by our product?Will it cause any licensing problem(OpenSSL license and GPL)?<br><br></div><div>Any help would be greatly appreciated. <br></div><div><br></div><div>Regards,<br></div><div>Parth<br></div><div><br></div></div></div></div></div></div></div>