[omniORB] Problems compiling omniORB 2.6.1 on AIX and HP-UX

Harald Karch Harald.Karch@t-online.de
Thu, 12 Nov 1998 22:21:04 +0100


Geoffrey Simpson wrote:

>
>
> The second problem we have is when compiling omniORB 2.6.1 on IMB AIX
> 4.1.4
> with the IBM C Set++ 3.1.4.  When we are making the omnithread
> libraries, we
> get the following errors when calling the makeC++SharedLib.  We have
> tried
> linking in the pthread libraries in with posix.o when compiling
> posix.cc,
> and also attempting to include the pthread libs with the making of the
>
> shared library, but to no avail.  We would appreciate any suggestions
> or
> help (or working binaries) with either or both platforms.
>
> (set -x; \
>         rm -f libomnithread2.a.0; \
>         /usr/lpp/xlC/bin/makeC++SharedLib -p 40 \
>              -o libomnithread.so.2.0 -L../../../../lib/powerpc_aix_4.2
> \
>          posix.o ; \
>          ar cq libomnithread2.a.0 libomnithread.so.2.0
> /usr/lib/libpthreads.a ; \
>          rm -f libomnithread.so.2.0 ; \
>        )
> + rm -f libomnithread2.a.0
> + /usr/lpp/xlC/bin/makeC++SharedLib -p 40 -o libomnithread.so.2.0
> -L../../../../lib/powerpc_aix_4.2 posix.o




Hallo Geoffrey

we have an AIX-4.2 machine and are also using the CSet++  compiler.

We have no problems by patching the Makefiles of all shared libraries in

the following way:

rm -f libomnithread2.a.0; \
 /usr/lpp/xlC/bin/makeC++SharedLib\
       -lC_r -lc_r -lpthreads -p 40 \    <------------
             -o libomnithread.so.2.0  \
         posix.o ; \
         ar cq libomnithread2.a.0 libomnithread.so.2.0;
         rm -f libomnithread.so.2.0 ; \



Hope this helps.
Please, let me know if you are running into other problems on the AIX.

Regards


Harald Karch
SoftConnection
New Service Opportunities
Tel:    +49 511 695379
e-mail: Harald.Karch@t-online.de