Openssl Version 1.1.1b fails to compile on Solaris platform(Intel & Sparc)

Parth Patel parthpatel041991 at
Thu Mar 21 05:16:42 UTC 2019

Hi All,

We are trying to build OpenSSL version 1.1.1b on Solaris, but it fails with
following error: file format not recognized; treating as linker script
collect2: error: ld returned 1 exit status
gmake[2]: *** [] Error 1
gmake[1]: *** [all] Error 2

$ uname -a
SunOS 5.10 Generic_147147-26 sun4v sparc

This is happening because of the flags defined in

#### Solaris configurations
    "solaris-common" => {
        inherit_from     => [ "BASE_unix" ],
        template         => 1,
        lib_cppflags     => "-DFILIO_H",
        ex_libs          => add("-lsocket -lnsl -ldl"),
        dso_scheme       => "dlfcn",
        thread_scheme    => "pthreads",
        shared_target    => "self",
        shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)",
        shared_ldflag    => "-Wl,-Bsymbolic",
        shared_defflag   => "-Wl,-M,",
        shared_sonameflag=> "-Wl,-h,",

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,".
Couple of queries here:
1. Is it not a bug on Solaris with OpenSSL 1.1.1b version?
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)?

Any help would be greatly appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-users mailing list