[omniORB] 2.8.0pre2 build issues on AIX 4.3
Gary D. Duzan
gdd0@gte.com
Mon, 20 Sep 1999 12:46:22 -0400
In Message <37E66222.12CD326F@adams.com> ,
Rob Cecil <rceci@master.adams.com> wrote:
=>Hello,
=>
=>AIX 4.3.2 / name xlC 3.6.6 compiler:
=>
=>Changes to powerpc_aix_4.2.mk (should a new powerpc_aix_4.3.mk be created?)
=>
=>
=>
=>*** mk/platforms/powerpc_aix_4.2.mk.orig Mon Sep 20 11:29:28 1999
=>--- mk/platforms/powerpc_aix_4.2.mk Mon Sep 20 12:04:47 1999
=>***************
=>*** 38,44 ****
=> # Using xlC_r
#
=> ###########################################################################
#
=>
=>! CXX = xlC_r
=> CXXDEBUGFLAGS = -O
=> CXXLINK = xlC_r
=>
=>--- 38,44 ----
=> # Using xlC_r
#
=> ###########################################################################
#
=>
=>! CXX = xlC_r -qmaxmem=8192
=> CXXDEBUGFLAGS = -O
=> CXXLINK = xlC_r
=>
=>***************
=>*** 87,93 ****
=> #
=> ThreadSystem = Posix
=>
=>! OMNITHREAD_POSIX_CPPFLAGS = -DNoNanoSleep -DPthreadDraftVersion=8
=> OMNITHREAD_CPPFLAGS = -I$(TOP)/include -D_REENTRANT -D_THREAD_SAFE
=> OMNITHREAD_LIB = -lomnithread2 -lpthreads
=> OMNITHREAD_STATIC_LIB = -lomnithread-ar -lpthreads-ar
=>--- 87,93 ----
=> #
=> ThreadSystem = Posix
=>
=>! OMNITHREAD_POSIX_CPPFLAGS = -DNoNanoSleep -DPthreadDraftVersion=8 -D_AIX_PT
HREADS_D7
=> OMNITHREAD_CPPFLAGS = -I$(TOP)/include -D_REENTRANT -D_THREAD_SAFE
=> OMNITHREAD_LIB = -lomnithread2 -lpthreads
=> OMNITHREAD_STATIC_LIB = -lomnithread-ar -lpthreads-ar
=>
Yes, that should mostly work. It might be better to simply set
PthreadDraftVersion to 10, which would be more appropriate for AIX 4.3
=>
=>Remaining build issue:
=>
=>make[2]: Leaving directory `/tmp/omniORB_280pre2/src/tool/omniidl2'
=>make[1]: Leaving directory `/tmp/omniORB_280pre2/src/tool'
=>making export in src/lib...
=>make[1]: Entering directory `/tmp/omniORB_280pre2/src/lib'
=>making export in src/lib/omnithread...
=>make[2]: Entering directory `/tmp/omniORB_280pre2/src/lib/omnithread'
=>File libomnithread-ar.a hasn't changed.
=>making export in src/lib/omnithread/sharedlib...
=>make[3]: Entering directory `/tmp/omniORB_280pre2/src/lib/omnithread/sharedli
b'
=>make[3]: *** No rule to make target `libomnithread2.a.1', needed by `export'.
Stop.
=>make[3]: Leaving directory `/tmp/omniORB_280pre2/src/lib/omnithread/sharedlib
'
=>make[2]: *** [export] Error 2
=>make[2]: Leaving directory `/tmp/omniORB_280pre2/src/lib/omnithread'
=>make[1]: *** [export] Error 2
=>make[1]: Leaving directory `/tmp/omniORB_280pre2/src/lib'
=>make: *** [export] Error 2
This is because dir.mk checks the compiler against "xlC_r", so your
addition of the -qmaxmem parameter breaks the build. Try moving the
option from CXX to CXXDEBUGFLAGS and see if that works.
Gary Duzan
GTE Laboratories