[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>&nbsp;
<br>&nbsp;
<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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mon Sep 20 14:48:19 1999
--- src/lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc&nbsp;&nbsp;&nbsp; Mon Sep 20 14:47:17 1999
***************
*** 18,24 ****
&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include &lt;sysent.h>
&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp; endif //__sunos__
&nbsp;&nbsp;
! #&nbsp;&nbsp;&nbsp;&nbsp; if defined(__hpux__)
&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include &lt;unistd.h>
&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp; endif //__hpux__
&nbsp;&nbsp;
--- 18,24 ----
&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include &lt;sysent.h>
&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp; endif //__sunos__
&nbsp;&nbsp;
! #&nbsp;&nbsp;&nbsp;&nbsp; if defined(__hpux__) || defined(__irix__) || defined(__aix__)
&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include &lt;unistd.h>
&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp; endif //__hpux__
&nbsp;&nbsp;
</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mon Sep 20 11:29:28 1999
--- mk/platforms/powerpc_aix_4.3.mk&nbsp;&nbsp;&nbsp;&nbsp; Mon Sep 20 14:31:33 1999
***************
*** 39,45 ****
&nbsp; ############################################################################
&nbsp;&nbsp;
&nbsp; CXX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = xlC_r
! CXXDEBUGFLAGS&nbsp;&nbsp; = -O
&nbsp; CXXLINK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = xlC_r
&nbsp;&nbsp;
&nbsp; # Use C Set++ to compile your C source.
--- 39,45 ----
&nbsp; ############################################################################
&nbsp;&nbsp;
&nbsp; CXX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = xlC_r
! CXXDEBUGFLAGS&nbsp;&nbsp; = -O -qmaxmem=8192
&nbsp; CXXLINK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = xlC_r
&nbsp;&nbsp;
&nbsp; # Use C Set++ to compile your C source.
***************
*** 70,84 ****
&nbsp; #
&nbsp; # Notice that the version number 2.7 is hardwired in OMNIORB2_LIB.
&nbsp; #
! OMNIORB2_LIB = $(patsubst %,$(LibSharedSearchPattern),omniORB27) \
!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(patsubst %,$(LibSharedSearchPattern),omniDynamic27) \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(OMNITHREAD_LIB) $(SOCKET_LIB)
! lib_depend := $(patsubst %,$(LibSharedPattern),omniORB27) \
!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(patsubst %,$(LibSharedPattern),omniDynamic27)
&nbsp; OMNIORB2_LIB_DEPEND1 := $(GENERATE_LIB_DEPEND)
&nbsp; OMNIORB2_LIB_DEPEND = $(OMNIORB2_LIB_DEPEND1) $(OMNITHREAD_LIB_DEPEND)
&nbsp;&nbsp;
! OMNIORB2_LC_LIB = $(patsubst %,$(LibSharedSearchPattern),omniLC2)
&nbsp;&nbsp;
&nbsp; CorbaImplementation = OMNIORB2
&nbsp;&nbsp;
--- 70,84 ----
&nbsp; #
&nbsp; # Notice that the version number 2.7 is hardwired in OMNIORB2_LIB.
&nbsp; #
! OMNIORB2_LIB = $(patsubst %,$(LibSharedSearchPattern),omniORB28) \
!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(patsubst %,$(LibSharedSearchPattern),omniDynamic28) \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(OMNITHREAD_LIB) $(SOCKET_LIB)
! lib_depend := $(patsubst %,$(LibSharedPattern),omniORB28) \
!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(patsubst %,$(LibSharedPattern),omniDynamic28)
&nbsp; OMNIORB2_LIB_DEPEND1 := $(GENERATE_LIB_DEPEND)
&nbsp; OMNIORB2_LIB_DEPEND = $(OMNIORB2_LIB_DEPEND1) $(OMNITHREAD_LIB_DEPEND)
&nbsp;&nbsp;
! OMNIORB2_LC_LIB = $(patsubst %,$(LibSharedSearchPattern),omniLC3)
&nbsp;&nbsp;
&nbsp; CorbaImplementation = OMNIORB2
&nbsp;&nbsp;
***************
*** 87,93 ****
&nbsp; #
&nbsp; ThreadSystem = Posix
&nbsp;&nbsp;
! OMNITHREAD_POSIX_CPPFLAGS = -DNoNanoSleep -DPthreadDraftVersion=8
&nbsp; OMNITHREAD_CPPFLAGS = -I$(TOP)/include -D_REENTRANT -D_THREAD_SAFE
&nbsp; OMNITHREAD_LIB = -lomnithread2 -lpthreads
&nbsp; OMNITHREAD_STATIC_LIB = -lomnithread-ar -lpthreads-ar
--- 87,93 ----
&nbsp; #
&nbsp; ThreadSystem = Posix
&nbsp;&nbsp;
! OMNITHREAD_POSIX_CPPFLAGS = -DNoNanoSleep -DPthreadDraftVersion=10
&nbsp; OMNITHREAD_CPPFLAGS = -I$(TOP)/include -D_REENTRANT -D_THREAD_SAFE
&nbsp; OMNITHREAD_LIB = -lomnithread2 -lpthreads
&nbsp; OMNITHREAD_STATIC_LIB = -lomnithread-ar -lpthreads-ar
</pre>

<pre>
</pre>

<pre>--&nbsp;
| Rob Cecil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Senior Development Engineer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| rceci@adams.com&nbsp;&nbsp;&nbsp; | Product Development&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
| (734) 913-9351&nbsp;&nbsp;&nbsp;&nbsp; | Mechanical Dynamics, Inc. (www.adams.com)&nbsp;&nbsp; |
--------------------------------------------------------------------</pre>
&nbsp;</html>

--------------1FBAF4502C44A8AAC0151C35--