[omniORB] building the examples with gcc 3.2.1

Nathaniel Smith njs@pobox.com
Mon Dec 23 17:52:01 2002


On Fri, Dec 20, 2002 at 08:26:27PM -0800, Fred Cook wrote:
> Heinrich G?tzger wrote:
> 
> > On Mon, 16 Dec 2002, Fred Cook wrote:
> >
> > >
> > > Hi all
> > >
> > > Has any one successfully compiled/linked the omniORB-4.0.0 examples with
> > > gcc 3.2.1?  We have recently successfully built omniORB 4.0.0 with this
> > > compiler but the examples produce linker errors on all the omniORB
> > > stuff.
> >
> > Using gcc 3.2 on Linux worked fine for me for omniORB 4.0.0.
>
> We are having some rather odd problems with building the examples.  The boa
> is a good example.  I can build it if I make clean and do in all the *.d
> files, in other words if there is nothing in the dir besides the
> GNUmakefile.  If you do a make clean and leave in the dependencies files then
> linker errors abound.  Linker errors are a common theme here.  The echo
> examples cannot link at all.  The examples are acting as if the libs are
> missing when the *.d files are present.  gcc - 2.95 compiles and links
> everything with out a hitch.  gcc 3.2.1 will compile/link code that doesn't
> have any omniORB stuff.  Anybody have an idea on what is going on here.

It sounds like you might be hitting ABI incompatibility issues?  The
C++ ABI changed between gcc 2.95 and gcc 3.2, which means that C++
code compiled with 3.2 cannot link against C++ libraries compiled with
2.95, and vice versa.  So if you want to compile the examples with
3.2, you have to compile everything they link against else with 3.2
too.

-- Nathaniel

-- 
.i dei jitfa fanmo xatra

This email may be read aloud.