[omniORB] Problems with omniORB and AIX XLC 3.6.4 compiler

Craig Rodrigues rodrigc@mediaone.net
Wed, 14 Jul 1999 15:02:23 -0400


Hello,

I was testing omniORB 2.8.0 under AIX 4.2.1 the with IBM XLC 3.6.4 compiler.
IBM started changing the paths of some of its compiler files with 3.6,
so this caused certain things to break in the omniORB build process.

In the following files,
./src/lib/omnithread/sharedlib/dir.mk
./src/lib/omniORB2/orbcore/sharedlib/dir.mk
./src/lib/omniORB2/dynamic/sharedlib/dir.mk
./src/lib/omniORB2/lifecycle/sharedlib/dir.mk

Can you change the following sequence:
=================================================================
$(lib): $(OBJS)
        (set -x; \
        $(RM) $@; \
        /usr/lpp/xlC/bin/makeC++SharedLib_r \
             -o $(soname) $(IMPORT_LIBRARY_FLAGS) \
         $(filter-out $(LibSuffixPattern),$^) \
         -p 40; \
         ar cq $(lib) $(soname) ; \
         $(RM) $(soname) ; \
       )

endif
=================================================================

to:


=================================================================
PATH += :/usr/ibmcxx/bin:/usr/lpp/xlC/bin

$(lib): $(OBJS)
        (set -x; \
        $(RM) $@; \
        makeC++SharedLib_r \
             -o $(soname) $(IMPORT_LIBRARY_FLAGS) \
         $(filter-out $(LibSuffixPattern),$^) \
         -p 40; \
         ar cq $(lib) $(soname) ; \
         $(RM) $(soname) ; \
       )

endif
=================================================================

This change will work on both XLC 3.6.x and 3.1.x, since in the old
compiler, makeC++SharedLib_r is in /usr/lpp/xlC/bin, while in the
new compiler it is in /usr/ibmcxx/bin.

I think it is a stupid thing IBM did with paths, but I don't work
for IBM. :)

Cheers.
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net