[omniORB] omniORB-4.0.0 gcc-3.1 solaris 8
Thomas Lockhart
lockhart@fourpalms.org
Tue Feb 4 13:43:01 2003
> I am trying to compile omniORB-4.0.0, my O.S. is Solaris 8 and I am
> using gcc-3.1. I have the environment variable LD_LIBRARY_PATH set.
Set to what? That isn't your problem below though so it may be just fine.
> I was using python version 2.1.1 but I was getting errors; then I
> installed omnipython version 1.5.2 for Sun...
Do you mean "python", not "omnipython"? I'm not a python version expert,
but I have been having good luck with python 2.2, and would think that
2.1 is preferable to 1.5.
> g++ -c -O2 -Wall -Wno-unused -fexceptions
> -DIDLMODULE_VERSION="\"0x2420\"" -I/include
> -DPYTHON_INCLUDE="<python/Python.h>" -fPIC -I.
> -I../../../../../src/tool/omniidl/cxx -I../../../../include
> -I../../../../../include -D__OSVERSION__=5 -D__sunos__ -D__sparc__ -o
> idlpython.o ../../../../../src/tool/omniidl/cxx/idlpython.cc
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:172:24:
> python/Python.h: No such file or directory
Here is the same line on my x86 Linux box:
g++ -c -O2 -Wall -Wno-unused -fexceptions
-DIDLMODULE_VERSION="\"0x2420\"" -I/usr/include
-DPYTHON_INCLUDE="<python2.2/Python.h>" -fPIC -I. -I.
-I../../../../include -I../../../../include -D__OSVERSION__=2
-D__linux__ -D__x86__ -o idlpython.o idlpython.cc
> I have the LD_LIBRARY_PATH set (including the place where th Python.h
> file is located); I also set the PYTHONPATH
Neither will help you in this failure. It looks like your include path
for the directory containing your python installation is not correct. In
my python installation, the include files are under
/usr/include/python2.2, which is reflected in the first "-I" command
line argument to the compiler. In your case, it is pointing at
"/include" and the system would require that /include/python/Python.h
exist. I'll guess that the path must be different on your machine.
autoconf may have gotten it wrong, or ??
hth
- Tom