[omniORB] issues with solaris and egcs shared libraries with omniOrb 2.7.1

Guenther Grau Guenther.Grau@bk.bosch.de
Tue, 06 Apr 1999 23:20:40 +0200


Craig Brozefsky wrote:
[...]
> Is there a reason omniORB does not use automake/autoconf/libtool?
> Perhaps the win32 platform and other needs preclude the use of those
> tools, but they sure would make life easier for those of us trying to
> port omniORB.  If there is no reason not to use them, perhaps I could
> try and get omniORB autoconfigscated and libtoolized.

Sounds good to me. I don't know what the maintainers think about it,
though :-)

> With the omniORB binary package for sunos_5.6 built with SunProC I
> cannot build the examples using egcs (even after changing the
> platform/sunos_5.6.mk to use egcs) because when it tries to link there
> are many unresolvable symbols.  At this point I cannot tell if these
> are just issues with using egcs, or egcs with SunproC compiled
> libraries, or just the libraries themselves.

I think this is a problem of c++ (and the compilers involved).
In general I'd recommend NOT to mix libraries compiled with different
compilers. This works mostly for c-libs, but is not standardized for
c++.
Try building a simple app with egcs and do a ldd app. This will show
a couple of duplicate entries for libc.so for example. The resulting
binary will run, but it shows to me that mixing libs compiled with
different compilers doesn't work seamlessly, well, not with egcs on
solaris :-(

I suggest you compile omniORB with the compiler you want to use,
i.e. egcs (Be sure to get the latest egcs-1.1.2, as it containes
some bug fixes for sparc). Or get the professional C++ compiler
from sun, which is nice and fast, btw :-)

  Guenther