[mapguide-internals] RE: Versioning for Linux so's

Trevor Wekel trevor_wekel at otxsystems.com
Thu Mar 25 08:31:50 EDT 2010


Ok.  So I have made the following changes on my local machine:

Change all shared libraries from .so.7.0.0 to -2.2.0.so, for example
libMgGeometry.so.7.0.0 has become libMgGeometry-2.2.0.so.  The facilitate
this change, I modified:
- the AC_INIT version in configure.in to 2.2.0
- changed -version-info 7:0:0 to -release $(PACKAGE_VERSION) in all of our
Makefile.am files

I have also modified --prefix in my build script to point to
/usr/local/mapguideopensource-2.2.0.  This should make side by side possible
on Linux.

There was one quirk.  On my SE Linux enabled CentOS 5.4 distribution, the
server would not start and displayed the following error

./mgserver: error while loading shared libraries:
/usr/local/mapguideopensource-2.2.0/lib/libMgRenderers-2.2.0.so: cannot
restore segment prot after reloc: Permission denied

After a quick Google, the following command line to reconfigure SE Linux
fixed the problem:

chcon -t texrel_shlib_t /usr/local/mapguideopensource-2.2.0/lib/*.so

I still have some more verification to do with the build.  Once I have
completed the verification, I will create a new task Ticket in Trac and
submit the changes.  It will probably go in around noon mountain time today.

-- 
View this message in context: http://n2.nabble.com/Versioning-for-Linux-so-s-tp4785840p4797285.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.


More information about the mapguide-internals mailing list