[omniORB] omniORB build enviroment

David Byron dbyron@coactive.com
Fri, 6 Jul 2001 11:51:33 -0700


> > omni/mk/platforms/i586_linux_2.0_glibc2.1.mk
> > 	-- commented out BuildSharedLibrary = 1 and added a
> > BuildSharedLibrary = 0
> 
> Why do that?  Shared libraries are normally better, and I'm not even
> sure it works if you set BuildSharedLibrary to 0. (Part of the reason
> a new build system would be a good idea.)  Even if you do want to use
> static libraries, you might as well build the shared ones, and tell
> the linker of your program to use the static versions.

My target doesn't support shared libraries yet, and may never.  I'll set it
back to the defaults (shared) and see how it goes.

> > 	-- uncommented PYTHON = line and set to /usr/bin/python
> 
> That's right.
> 
> > 	-- uncommented CPP = line and set to /usr/local/bin/cpp
> > 	-- uncommented include of unix.mk
> > 	-- uncommented AR = line
> 
> I'm confused now. None of those things are commented out in the first
> place.

You're right.  My notes were busted.

> [...]
> > ../../../../bin/i586_linux_2.0_glibc2.1/omkdepend: warning:  (from
> > idlpython.cc) idlpython.cc: 308: #    error "omniidl 
> requires Python 1.5.2
> > or higher" 
> ../../../../bin/i586_linux_2.0_glibc2.1/omkdepend: warning:
> > (from idlexpr.cc) /usr/include/bits/mathdef.h: 20: # error 
> "Never use
> > <bits/mathdef.h> directly; include <math.h> instead"
> 
> The warnings from omkdepend are totally spurious. It just fails to
> understand some things about defines. They are not a problem at all,
> and the build should continue happily after that.

OK, I guess, but these are scary looking warnings, like this one:

../../../../bin/i586_linux_2.0_glibc2.1/omkdepend: warning:  (from
idlpython.cc)
 idlpython.cc: 308: #    error "omniidl requires Python 1.5.2 or higher"

This was definitely a problem the first time round, but I installed the
omnipython-i586_linux_2.0_glibc2.1.tar.gz from the omniORB ftp site, so I
don't understand why I'm still seeing this message.

I did a chmod on bin/i586_linux_2.0_glibc2.1/omnipython to make it
executable.

I'm currently stuck on:

../../../bin/i586_linux_2.0_glibc2.1/omniidl -bcxx -Wba
-p../../../src/lib/omniORB2  -ComniORB3 ../../../idl/Naming.idl
make[2]: ../../../bin/i586_linux_2.0_glibc2.1/omniidl: Command not found

omniidl is there, and is executable, but somehow it's giving me grief.  When
I run it directly (from a bash), I get a no such file or directory message.
When I run it like this (since the first line is /bin/sh):

$ /bin/sh omniidl

I get command not found for the empty lines of the file and a syntax error
for the case statement.

Any ideas?

Thanks much for your help.

-DB