From:
openss...@openssl.org <
openss...@openssl.org> On Behalf Of Jeffrey Bromberger
Sent: Sunday, 5 April, 2026 21:05
> When I try to build 3,6,1 with tests enabled, I get this (unknown to me) error:
...
> /opt/local64/bin/gcc -fPIC -m64 -mcpu=ultrasparc -Wa,--noexecstack -mcpu=ultrasparc
> -Wl,-z,defs -shared -static-libgcc -shared -Wl,-Bsymbolic -mcpu=ultrasparc -lrt \
> -o test/p_minimal.so -Wl,--version-script=test/p_minimal.ld \
> test/p_minimal-dso-p_minimal.o \
> -lsocket -lnsl -ldl
> /opt/local64/lib/gcc/sparc64-sun-solaris2.8/4.7.4/../../../../sparc64-sun-solaris2.8/bin/ld:
> anonymous version tag cannot be combined with other version tags
> Anonymous Version Tag? And it's ld that is complaining, not the compiler!
Yes, according to the /Solaris Linker and Libraries Guide/ (1995) I happen to have lying around, ld does Solaris/SysV versiong, which involves embedding version symbols specified in a map file (being generated by GCC in this case) into the shared object.
As Viktor wrote, look at what's in test/p_minimal.ld. It should have entries that look something like this:
FOO_1.2 {
global:
foo;
} FOO_1.1;
FOO_1.1 {
global:
bar;
local:
*;
};
(or possibly something simpler, or much more complicated). That means "version 1.1 publishes symbol 'bar' as part of its interface, and version 1.2 inherits the 1.1 interface and adds symbol 'foo'". (I think that's right; it's been years since I looked at this stuff. People rarely use it directly; mostly they just use SVR4 library-name versioning, like having libfoo.so.1 symlinked as libfoo.so.)
You could also try adding -Wl,'-z noversion' (with the quotes) to the compilation command, to suppress versioning. The book mentions that as an option to ld.
There should be a utility named pvs(1) on the system which you can use to query version information in shared objects. You might see what it has to say about your libcrypto and libssl.
Michael Wojcik
================================
Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ Main Office Toll Free Number:
+1 855.577.4323
Contact Customer Support:
https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences -
http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy -
http://www.rocketsoftware.com/company/legal/privacy-policy
================================
This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you.