[omniORB] 280pre2 - other build changes for AIX
Rob Cecil
rceci@master.adams.com
Mon, 20 Sep 1999 14:50:04 -0400
--------------1FBAF4502C44A8AAC0151C35
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello
Using xlC/xlc (cset++) version 3.6.6, the tools (xlC, makeC++SharedLib, etc.) are now
located in
/usr/ibmcxx/bin
not
/usr/lpp/xlc/bin
Please make changes for the location of the makeC++SharedLib_r utility to the appropriate
dir.mk 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
Also, I needed to un#define the HAS_Cplusplus_Const_Cast, line #142 of include/omniORB2/CORBA_sysdep.h
I don't believe this compiler yet supports const_cast ( or static_cast or dynamic_cast), but I could be mistaken.
Also, gethostname() is an compile issue, which required a change to gatekeeper.cc (combined with change from earlier post today):
*** src/lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc.orig Mon Sep 20 14:48:19 1999
--- src/lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc Mon Sep 20 14:47:17 1999
***************
*** 18,24 ****
# include <sysent.h>
# endif //__sunos__
! # if defined(__hpux__)
# include <unistd.h>
# endif //__hpux__
--- 18,24 ----
# include <sysent.h>
# endif //__sunos__
! # if defined(__hpux__) || defined(__irix__) || defined(__aix__)
# include <unistd.h>
# endif //__hpux__
Also, here are the diffs of the 4.2 makefile versus my final make file (powerpc_aix_4.3.mk):
*** mk/platforms/powerpc_aix_4.2.mk.orig Mon Sep 20 11:29:28 1999
--- mk/platforms/powerpc_aix_4.3.mk Mon Sep 20 14:31:33 1999
***************
*** 39,45 ****
############################################################################
CXX = xlC_r
! CXXDEBUGFLAGS = -O
CXXLINK = xlC_r
# Use C Set++ to compile your C source.
--- 39,45 ----
############################################################################
CXX = xlC_r
! CXXDEBUGFLAGS = -O -qmaxmem=8192
CXXLINK = xlC_r
# Use C Set++ to compile your C source.
***************
*** 70,84 ****
#
# Notice that the version number 2.7 is hardwired in OMNIORB2_LIB.
#
! OMNIORB2_LIB = $(patsubst %,$(LibSharedSearchPattern),omniORB27) \
! $(patsubst %,$(LibSharedSearchPattern),omniDynamic27) \
$(OMNITHREAD_LIB) $(SOCKET_LIB)
! lib_depend := $(patsubst %,$(LibSharedPattern),omniORB27) \
! $(patsubst %,$(LibSharedPattern),omniDynamic27)
OMNIORB2_LIB_DEPEND1 := $(GENERATE_LIB_DEPEND)
OMNIORB2_LIB_DEPEND = $(OMNIORB2_LIB_DEPEND1) $(OMNITHREAD_LIB_DEPEND)
! OMNIORB2_LC_LIB = $(patsubst %,$(LibSharedSearchPattern),omniLC2)
CorbaImplementation = OMNIORB2
--- 70,84 ----
#
# Notice that the version number 2.7 is hardwired in OMNIORB2_LIB.
#
! OMNIORB2_LIB = $(patsubst %,$(LibSharedSearchPattern),omniORB28) \
! $(patsubst %,$(LibSharedSearchPattern),omniDynamic28) \
$(OMNITHREAD_LIB) $(SOCKET_LIB)
! lib_depend := $(patsubst %,$(LibSharedPattern),omniORB28) \
! $(patsubst %,$(LibSharedPattern),omniDynamic28)
OMNIORB2_LIB_DEPEND1 := $(GENERATE_LIB_DEPEND)
OMNIORB2_LIB_DEPEND = $(OMNIORB2_LIB_DEPEND1) $(OMNITHREAD_LIB_DEPEND)
! OMNIORB2_LC_LIB = $(patsubst %,$(LibSharedSearchPattern),omniLC3)
CorbaImplementation = OMNIORB2
***************
*** 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=10
OMNITHREAD_CPPFLAGS = -I$(TOP)/include -D_REENTRANT -D_THREAD_SAFE
OMNITHREAD_LIB = -lomnithread2 -lpthreads
OMNITHREAD_STATIC_LIB = -lomnithread-ar -lpthreads-ar
--
| Rob Cecil | Senior Development Engineer |
| rceci@adams.com | Product Development |
| (734) 913-9351 | Mechanical Dynamics, Inc. (www.adams.com) |
--------------------------------------------------------------------
--------------1FBAF4502C44A8AAC0151C35
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello
<p>Using xlC/xlc (cset++) version 3.6.6, the tools (xlC, makeC++SharedLib,
etc.) are now located in
<p>/usr/ibmcxx/bin
<p>not
<p>/usr/lpp/xlc/bin
<p>Please make changes for the location of the makeC++SharedLib_r utility
to the appropriate dir.mk files:
<p>src/lib/omnithread/sharedlib/dir.mk
<br>src/lib/omniORB2/orbcore/sharedlib/dir.mk
<br>src/lib/omniORB2/dynamic/sharedlib/dir.mk
<br>src/lib/omniORB2/lifecycle/sharedlib/dir.mk
<br>
<br>
<pre>Also, I needed to un#define the HAS_Cplusplus_Const_Cast, line #142 of include/omniORB2/CORBA_sysdep.h</pre>
<pre>I don't believe this compiler yet supports const_cast ( or static_cast or dynamic_cast), but I could be mistaken.</pre>
<pre>Also, gethostname() is an compile issue, which required a change to gatekeeper.cc (combined with change from earlier post today):</pre>
<pre></pre>
<pre>*** src/lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc.orig Mon Sep 20 14:48:19 1999
--- src/lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc Mon Sep 20 14:47:17 1999
***************
*** 18,24 ****
# include <sysent.h>
# endif //__sunos__
! # if defined(__hpux__)
# include <unistd.h>
# endif //__hpux__
--- 18,24 ----
# include <sysent.h>
# endif //__sunos__
! # if defined(__hpux__) || defined(__irix__) || defined(__aix__)
# include <unistd.h>
# endif //__hpux__
</pre>
<pre>Also, here are the diffs of the 4.2 makefile versus my final make file (powerpc_aix_4.3.mk):</pre>
<pre></pre>
<pre></pre>
<pre>*** mk/platforms/powerpc_aix_4.2.mk.orig Mon Sep 20 11:29:28 1999
--- mk/platforms/powerpc_aix_4.3.mk Mon Sep 20 14:31:33 1999
***************
*** 39,45 ****
############################################################################
CXX = xlC_r
! CXXDEBUGFLAGS = -O
CXXLINK = xlC_r
# Use C Set++ to compile your C source.
--- 39,45 ----
############################################################################
CXX = xlC_r
! CXXDEBUGFLAGS = -O -qmaxmem=8192
CXXLINK = xlC_r
# Use C Set++ to compile your C source.
***************
*** 70,84 ****
#
# Notice that the version number 2.7 is hardwired in OMNIORB2_LIB.
#
! OMNIORB2_LIB = $(patsubst %,$(LibSharedSearchPattern),omniORB27) \
! $(patsubst %,$(LibSharedSearchPattern),omniDynamic27) \
$(OMNITHREAD_LIB) $(SOCKET_LIB)
! lib_depend := $(patsubst %,$(LibSharedPattern),omniORB27) \
! $(patsubst %,$(LibSharedPattern),omniDynamic27)
OMNIORB2_LIB_DEPEND1 := $(GENERATE_LIB_DEPEND)
OMNIORB2_LIB_DEPEND = $(OMNIORB2_LIB_DEPEND1) $(OMNITHREAD_LIB_DEPEND)
! OMNIORB2_LC_LIB = $(patsubst %,$(LibSharedSearchPattern),omniLC2)
CorbaImplementation = OMNIORB2
--- 70,84 ----
#
# Notice that the version number 2.7 is hardwired in OMNIORB2_LIB.
#
! OMNIORB2_LIB = $(patsubst %,$(LibSharedSearchPattern),omniORB28) \
! $(patsubst %,$(LibSharedSearchPattern),omniDynamic28) \
$(OMNITHREAD_LIB) $(SOCKET_LIB)
! lib_depend := $(patsubst %,$(LibSharedPattern),omniORB28) \
! $(patsubst %,$(LibSharedPattern),omniDynamic28)
OMNIORB2_LIB_DEPEND1 := $(GENERATE_LIB_DEPEND)
OMNIORB2_LIB_DEPEND = $(OMNIORB2_LIB_DEPEND1) $(OMNITHREAD_LIB_DEPEND)
! OMNIORB2_LC_LIB = $(patsubst %,$(LibSharedSearchPattern),omniLC3)
CorbaImplementation = OMNIORB2
***************
*** 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=10
OMNITHREAD_CPPFLAGS = -I$(TOP)/include -D_REENTRANT -D_THREAD_SAFE
OMNITHREAD_LIB = -lomnithread2 -lpthreads
OMNITHREAD_STATIC_LIB = -lomnithread-ar -lpthreads-ar
</pre>
<pre>
</pre>
<pre>--
| Rob Cecil | Senior Development Engineer |
| rceci@adams.com | Product Development |
| (734) 913-9351 | Mechanical Dynamics, Inc. (www.adams.com) |
--------------------------------------------------------------------</pre>
</html>
--------------1FBAF4502C44A8AAC0151C35--