[omniORB] Problems building omniORB3 on SunOS 5.6

Richard.Turner@aculab.com Richard.Turner@aculab.com
Wed, 10 Jan 2001 17:17:14 -0000


Hi

This is my first time with omniORB so bear with me if this is obvious ...

I'm running gcc 2.95.2 and GNU make 3.76.1 under SunOS 5.6
(Generic_105181-05 kernel).

I've downloaded the 3.0.2 source code and the minimal python 1.5.2 material
(omnipython-sun4_sosV_5_6_tar.gz) and made the right (well, hopefully right)
changes to config/config.mk, mk/unix.mk and mk/platforms/sun4_sosV_5.6.mk.
These now define platform as sun4_sosV_5.6, MKDIRHIER as mkdir -p, PYTHON as
$(ABSTOP)/$(BINDIR)/omnipython and all the CXX... macros as necessary for
using gcc/g++.

I do a make export in the src directory.

All appears to be well until I get to here ...

../../../../bin/sun4_sosV_5.6/omkdepend -D__cplusplus -D__GNUG__ -D__GNUC__
-DIDLMODULE_VERSION="0x2301" -I/usr/local/src/richard/omni/include
-DPYTHON_INCLUDE=<python1.5/Python.h> -I. -I../../../../include -D__sparc__
-D__sunos__ -D__OSVERSION__=5 idlc.cc idlpython.cc idlconfig.cc idldump.cc
idlvalidate.cc idlast.cc idlexpr.cc idlscope.cc idlrepoId.cc idltype.cc
idlutil.cc idlerr.cc lex.yy.cc y.t
ab.cc
../../../../bin/sun4_sosV_5.6/omkdepend: warning:  (from idlpython.cc)
idlpython
.cc: 302: #    error "omniidl requires Python 1.5.2 or higher"

This looks suspicious already as omnipython claims that it _is_ 1.5.2 ...

$ ./omnipython
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import exceptions' failed; use -v for traceback
Warning!  Falling back to string-based exceptions
'import site' failed; use -v for traceback
Python 1.5.2 (#3, Feb 17 2000, 12:43:07)  [GCC 2.95 19990728 (release)] on
sunos 5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>

The build continues but eventally collapses at ...

make[2]: Entering directory `/usr/local/src/richard/omni/src/lib/omniORB2'
+ mkdir -p omniORB3
../../../bin/sun4_sosV_5.6/omniidl -bcxx -Wba -p../../../src/lib/omniORB2
-ComniORB3 ../../../idl/Naming.idl
Segmentation Fault
make[2]: *** [omniORB3/Naming.hh] Error 139
make[2]: Leaving directory `/usr/local/src/richard/omni/src/lib/omniORB2'

I've been through the FAQ and trawled the mailing list archive but I haven't
had much luck in finding a cause or cure for this problem. I've since tried
downloading the latest source snapshot (omniORB3-20010110_tar.gz) but this
fails in exactly the same way.

Help - can anyone enlighten me?

Thanks,
Richard Turner.
richard.turner@aculab.com