[omniORB] omniORB 3.0.1 is released.

Mark Borges mdb@jimi.nwest.attws.com
21 Aug 2000 13:54:01 -0700


Not sure if this is the preferred/proper fix or not, but I thought I'd
pass it along anyway, at least to server as a datapoint.

Adding in "-fPIC" to CXXFLAGS during the compilation phase of the
modules located in

   omni/src/lib/omniORB2/dynamic

yields a libomniDynamic3.a that, when linked against libCOS3.so.0,
does not give any relocation errors.

Also, in the category of "minor nits", I see this warning,

  ../../../../bin/sun4_sosV_5.6/omkdepend: warning:  (from
  common/pyMarshal.cc) common/pyMarshal.cc : 249: #    error "omniidl
  requires Python 1.5.2 or higher"

even though,

  $ python
  Python 1.5.2 (#1, Nov 11 1999, 11:56:47)  [GCC 2.95.2 19991024 (release)] on sunos5
  Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam

is the only python I have installed on this machine.

>> On 21 Aug 2000 11:46:16 -0700,
>> Mark Borges(mb) wrote:
>> On Fri, 18 Aug 2000 17:44:03 +0100,
>> Sai-Lai Lo(SL) wrote:

SL> 2. A stub library of COS (common object services) IDLs is added. This is in
SL> preparation for a soon-to-be released COS service.

mb> Trying to build omniORB-3.0.1 under Solaris-2.6/gcc-2.95.2, I'm
mb> encountering a slew of error messages at the linking stage for
mb> libCOS3.so.0.1, typified by

mb> ==============================
mb> + g++ -shared -Wl,-h,libCOS3.so.0 -o shared/libCOS3.so.0.1 -L../../../lib/sun4_sosV_5.6 shared/TimeBaseSK.o shared/CosTimeSK.o shared/CosEventCommSK.o shared/CosEventChannelAdminSK.o shared/CosTypedEventCommSK.o shared/CosTypedEventChannelAdminSK.o shared/CosTimerEventSK.o shared/CosNotificationSK.o shared/CosNotifyCommSK.o shared/CosNotifyFilterSK.o shared/CosNotifyChannelAdminSK.o shared/CosTypedNotifyCommSK.o shared/CosTypedNotifyChannelAdminSK.o shared/AttNotifyChannelAdminSK.o shared/CosLifeCycleSK.o -lomniORB3 -lomniDynamic3 -ltcpwrapGK -lomnithread -lpthread -lposix4 -lsocket -lnsl 
mb> Text relocation remains                 	referenced
mb>     against symbol		    offset	in file
mb> omni_thread_init                    0x34      	../../../lib/sun4_sosV_5.6/libomniDynamic3.a(constants.o)
mb> omni_thread_init                    0x38      	../../../lib/sun4_sosV_5.6/libomniDynamic3.a(constants.o)

mb> [elided]

mb> ld: fatal: relocations remain against allocatable but non-writable sections
mb> collect2: ld returned 1 exit status
mb> make[2]: *** [shared/libCOS3.so.0.1] Error 1
mb> make[1]: *** [export] Error 2
mb> make: *** [export] Error 2
mb> ==============================

mb> To my (untrained) eye, this looks suspiciously like a PIC issue (note
mb> that a libomniDynamic3.so library was *not* built, nor was -fPIC
mb> passed as a command line switch when building the modules for
mb> libomniDynamic3.a).

-- 
 -mb-