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

From: Nikola Milutinovic (Nikola.Milutinovic@ev.co.yu)
Date: Fri Nov 25 2005 - 07:51:24 EST


Hi all.

Thanks to Chris Adams <cmadams@hiwaay.net> and Steve VanDevender
<stevev@hexadecimal.uoregon.edu>, 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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:26 EDT