SUMMARY: How to get shlib version number? (SOLVED)

Nikola Milutinovic <[email protected]>
Newsgroups gmane.os.tru64.managers
Message-ID <[email protected]>
Hi all.

Thanks to Chris Adams <[email protected]> and Steve VanDevender 
<[email protected]>, who responded.

Chris nailed it: "odump -D | grep IVERSION".

This revealed a funny thing: IVERSION: "::0.9.8" - definitely a muckery 
in the Makefile. I have identified the culprit, ./Makefile.shlib, which 
also had one other ommision, resulting in an error message on my system. 
I'll send the patch file to openssl.org, but for all of you here, I'm 
also attaching it to this message.

Nix.

P.S. Since attachments are not allowed, I'm pasting it here

*** Makefile.shared_ORIG	Fri Nov 25 12:50:29 2005
--- Makefile.shared	Fri Nov 25 09:08:07 2005
***************
*** 275,281 ****
  		NOALLSYMSFLAGS='-none'; \
  		SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared"; \
  		if [ -n "$$SHLIB_HIST" ]; then \
! 			SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \
  		fi; \
  	fi; \
  	$(LINK_SO_O)
--- 275,281 ----
  		NOALLSYMSFLAGS='-none'; \
  		SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared"; \
  		if [ -n "$$SHLIB_HIST" ]; then \
! 			SHAREDFLAGS="$$SHAREDFLAGS -set_version $$SHLIB_HIST"; \
  		fi; \
  	fi; \
  	$(LINK_SO_O)
***************
*** 296,302 ****
  		NOALLSYMSFLAGS='-none'; \
  		SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared"; \
  		if [ -n "$$SHLIB_HIST" ]; then \
! 			SHAREDFLAGS="$$SHAREDFLAGS -set_version \"$$SHLIB_HIST\""; \
  		fi; \
  	fi; \
  	$(LINK_SO_A)
--- 296,302 ----
  		NOALLSYMSFLAGS='-none'; \
  		SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared"; \
  		if [ -n "$$SHLIB_HIST" ]; then \
! 			SHAREDFLAGS="$$SHAREDFLAGS -set_version $$SHLIB_HIST"; \
  		fi; \
  	fi; \
  	$(LINK_SO_A)
***************
*** 538,544 ****
  	expr $(PLATFORM) : '.*ia64' > /dev/null && SHLIB=lib$(LIBNAME).so; \
  	$(SYMLINK_SO)
  # The following lines means those specific architectures do no symlinks
! symlink.cygwin symlib.alpha-osf1 symlink.tru64 symlink.tru64-rpath:
  
  # Compatibility targets
  link_o.bsd-gcc-shared link_o.linux-shared link_o.gnu-shared: link_o.gnu
--- 538,544 ----
  	expr $(PLATFORM) : '.*ia64' > /dev/null && SHLIB=lib$(LIBNAME).so; \
  	$(SYMLINK_SO)
  # The following lines means those specific architectures do no symlinks
! symlink.cygwin symlink.alpha-osf1 symlink.tru64 symlink.tru64-rpath:
  
  # Compatibility targets
  link_o.bsd-gcc-shared link_o.linux-shared link_o.gnu-shared: link_o.gnu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.