DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6095>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6095

Build process does not follow Linux shared libs convention.

           Summary: Build process does not follow Linux shared libs
                    convention.
           Product: Xerces-C++
           Version: 1.6.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Build
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Those are described here
http://www.linuxdoc.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

For instance, the library must be called libname.so.soname (e.g
libxerces-c.so.1.6). Build process should set this soname too.

Here is a patch that does it

--- xerces-c-src1_6_0/src/Makefile.incl.orig    Sat Sep  1 13:32:53 2001
+++ xerces-c-src1_6_0/src/Makefile.incl Sat Sep  1 13:33:26 2001
@@ -244,8 +244,8 @@
 #=============== LINUX SPECIFIC OPTIONS =========================
 ifeq (${PLATFORM}, LINUX)
 PLATFORM_COMPILE_OPTIONS = -fPIC -D${PLATFORM} -D_REENTRANT
-MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC ${LDFLAGS}
-MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC ${LDFLAGS}
+MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC ${LDFLAGS}
-Wl,-soname,${SONAME}
+MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC ${LDFLAGS}
-Wl,-soname,${SONAME}
 ifeq (${TRANSCODER}, ICU)
     ALLLIBS = ${LIBS} -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -licuuc
-licudata -lc
 else

what is called SONAME here is the complete name of the libray (e.g
libxerces-c.so.1.6)

Note that if two releases have the same soname they must provide the SAME ABI.
Changing ABI between minor revisions is a PITA for distributions. If you can not
provide a stable ABI. A static lib should be built by default and not a shared
lib.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to