[omniORB] Compile error on UNIX : SOLVED !

Frédéric Prin frederic.prin@silvaco.com
Thu, 20 Sep 2001 15:50:31 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_10F6_01C141EB.FA7E0F50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Sorry to be noisy !

1) I merge the include, bin and lib directories of both python1.5.2 and =
omniorb and=20
2) make PYTHON var env point on the executable python interpreter rather =
than the installation dir.


Remarks for improvment:
-----------------------------------
The second point is a misunderstanding of myself but the first is not =
realy well documented because the installation text file says :

...
Alternatively, on Solaris, Linux, IRIX and HPUX (and Windows, but
  this is README.unix!) you can download a minimal version of Python
  which contains just the functionality required by omniidl. Download
  it from

    ftp://ftp.uk.research.att.com/pub/omniORB/python/

  Unpack the archive at the top of the omniORB tree. It places files
  in the bin, lib and include directories.
...

1) the ftp site does not respond...
2) If I unpack my donwloaded gzip, tared archive in the omni root dir, =
it will create an Python1.5.2 dir and then files are not merged with the =
OmniORB ones.

Best regards

| Fr=E9d=E9ric Prin - Senior software engineer
| Tel 04 56 38 10 33
| S I L V A C O    G . R E . C E

  ----- Original Message -----=20
  From: Fr=E9d=E9ric Prin=20
  To: omniorb-list@uk.research.att.com=20
  Sent: Thursday, September 20, 2001 12:56 PM
  Subject: [omniORB] Compile error on UNIX=20


  Hi everybody,

  I'm a new user of OmniORB.
  I've to compile OmniORB on 3 platforms : Windows NT4, Unix SunOs5.7 =
and Linux RH7.1

  I succeed with Windows NT4

  I fail, for few days, on UNIX. I have the following error at compile =
time :
  =
-------------------------------------------------------------------------=
------------------------------
  gnumake export
  making export in src/tool...
  gnumake[1]: Entering directory =
`/home/fredp/BenchCORBA/OmniORB/omni/src/tool'
  making export in src/tool/omkdepend...
  ...
  gnumake[3]: Entering directory =
`/home/fredp/BenchCORBA/OmniORB/omni/src/tool/omniidl/cxx'
  gnumake[3]: execvp: /home/fredp/local/Python1.5.2/include: Permission =
denied
  gnumake[3]: execvp: /home/fredp/local/Python1.5.2/include: Permission =
denied
  ...
  gnumake[4]: Leaving directory =
`/home/fredp/BenchCORBA/OmniORB/omni/src/tool/omniidl/cxx/cccp'
  CC -c -O2 -g  -Kpic -DIDLMODULE_VERSION=3D"\"0x2301\"" -I/include =
-DPYTHON_INCLUDE=3D"<python/Python.h>" -I.  -I../../../../include =
-D__sparc__ -D__sunos__ -D__OSVERSION__=3D5 -o idlpython.o idlpython.cc
  "idlpython.cc", line 150: Error: Could not open include file =
<python/Python.h>.
  ...
  Compilation aborted, too many Error messages.
  gnumake[3]: *** [idlpython.o] Error 1
  gnumake[3]: Leaving directory =
`/home/fredp/BenchCORBA/OmniORB/omni/src/tool/omniidl/cxx'
  gnumake[2]: *** [export] Error 2
  gnumake[2]: Leaving directory =
`/home/fredp/BenchCORBA/OmniORB/omni/src/tool/omniidl'
  gnumake[1]: *** [export] Error 2
  gnumake[1]: Leaving directory =
`/home/fredp/BenchCORBA/OmniORB/omni/src/tool'
  gnumake: *** [export] Error 2
  =
-------------------------------------------------------------------------=
------------------------------

  Of course I have compiled with success, Python 1.5.2 (that I found at =
http://www.python.org/ftp/python/src/py152.tgz, because the ftp site =
ftp.uk.research.att.com doen't respond)
  The Python self test programs runs fine.

  and I've modified the file ./config/config.mk to uncomment : platform =
=3D sun4_sosV_5.7
  then I have modified the file ./mk/platforms/sun4_sosV_5.7.mk : PYTHON =
=3D /home/fredp/local/Python1.5.2 (or even =
/home/fredp/local/Python1.5.2/bin and include, but the errors still =
remains)
  and then in ./src typed : gnumake export

  I do not see -I/home/fredp/local/Python1.5.2/include appear in the CC =
command line !!!!

  Please tell me what's wrong ?
  I must have miss something, somewhere !

  My env :
  ----------
  I use OmniORB version 3_0_4.
  >uname -a
  SunOS thabor 5.7 Generic_106541-01 sun4u sparc SUNW,Ultra-60
  =20
  >CC -V
  CC: Sun WorkShop 6 update 1 C++ 5.2 2000/09/11


  Thanks for your response


  | Fr=E9d=E9ric Prin - Senior software engineer
  | Tel 04 56 38 10 33
  | S I L V A C O    G . R E . C E


------=_NextPart_000_10F6_01C141EB.FA7E0F50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Sorry to be noisy !</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1) I merge the include, bin and lib =
directories of=20
both python1.5.2 and omniorb and </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2) make PYTHON var env point on the =
executable=20
python interpreter rather than the installation dir.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Remarks for improvment:</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>-----------------------------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The second point is a misunderstanding =
of myself=20
but the first is not realy well documented because the installation text =
file=20
says :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Alternatively, on Solaris, Linux, IRIX =
and HPUX=20
(and Windows, but<BR>&nbsp; this is README.unix!) you can download a =
minimal=20
version of Python<BR>&nbsp; which contains just the functionality =
required by=20
omniidl. Download<BR>&nbsp; it from</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <A=20
href=3D"ftp://ftp.uk.research.att.com/pub/omniORB/python/">ftp://ftp.uk.r=
esearch.att.com/pub/omniORB/python/</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; Unpack the archive at the top of =
the omniORB=20
tree. It places files<BR>&nbsp; in the bin, lib and include=20
directories.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1) the ftp site does not =
respond...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2) If I unpack my donwloaded gzip, =
tared archive in=20
the omni root dir, it will create an Python1.5.2 dir and then files are =
not=20
merged with the OmniORB ones.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>| Fr=E9d=E9ric Prin - Senior software engineer<BR>| Tel 04 56 38 10 =
33<BR>| S I=20
L V A C O&nbsp;&nbsp;&nbsp; G . R E . C E<BR></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:frederic.prin@silvaco.com"=20
  title=3Dfrederic.prin@silvaco.com>Fr=E9d=E9ric Prin</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:omniorb-list@uk.research.att.com"=20
  =
title=3Domniorb-list@uk.research.att.com>omniorb-list@uk.research.att.com=
</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, September 20, =
2001 12:56=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [omniORB] Compile =
error on UNIX=20
  </DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi everybody,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I'm a new user of =
OmniORB.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I've to compile OmniORB on 3 =
platforms : Windows=20
  NT4, Unix SunOs5.7 and Linux RH7.1</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I succeed with Windows =
NT4</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I fail, for few days, on UNIX. I have =
the=20
  following error at compile time :</FONT></DIV>
  <DIV><FONT face=3DArial=20
  =
size=3D2>----------------------------------------------------------------=
---------------------------------------</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>gnumake export<BR>making export in=20
  src/tool...<BR>gnumake[1]: Entering directory=20
  `/home/fredp/BenchCORBA/OmniORB/omni/src/tool'<BR>making export in=20
  src/tool/omkdepend...<BR>...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>gnumake[3]: Entering directory=20
  =
`/home/fredp/BenchCORBA/OmniORB/omni/src/tool/omniidl/cxx'<BR><STRONG>gnu=
make[3]:=20
  execvp: /home/fredp/local/Python1.5.2/include: Permission=20
  denied<BR>gnumake[3]: execvp: /home/fredp/local/Python1.5.2/include:=20
  Permission denied<BR></STRONG>...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>gnumake[4]: Leaving directory=20
  `/home/fredp/BenchCORBA/OmniORB/omni/src/tool/omniidl/cxx/cccp'<BR>CC =
-c -O2=20
  -g&nbsp; -Kpic -DIDLMODULE_VERSION=3D"\"0x2301\"" <STRONG>-I/include=20
  </STRONG>-DPYTHON_INCLUDE<STRONG>=3D"&lt;python/Python.h&gt;</STRONG>" =
-I.&nbsp;=20
  -I../../../../include -D__sparc__ -D__sunos__ -D__OSVERSION__=3D5 -o =
idlpython.o=20
  idlpython.cc<BR>"idlpython.cc", line 150: Error: Could not open =
include file=20
  &lt;python/Python.h&gt;.<BR>...</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Compilation aborted, too many Error=20
  messages.<BR>gnumake[3]: *** [idlpython.o] Error 1<BR>gnumake[3]: =
Leaving=20
  directory=20
  =
`/home/fredp/BenchCORBA/OmniORB/omni/src/tool/omniidl/cxx'<BR>gnumake[2]:=
 ***=20
  [export] Error 2<BR>gnumake[2]: Leaving directory=20
  `/home/fredp/BenchCORBA/OmniORB/omni/src/tool/omniidl'<BR>gnumake[1]: =
***=20
  [export] Error 2<BR>gnumake[1]: Leaving directory=20
  `/home/fredp/BenchCORBA/OmniORB/omni/src/tool'<BR>gnumake: *** =
[export] Error=20
  2</FONT></DIV>
  <DIV><FONT face=3DArial=20
  =
size=3D2>----------------------------------------------------------------=
---------------------------------------</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Of course I have compiled with =
success, Python=20
  1.5.2 (that I found at <A=20
  =
href=3D"http://www.python.org/ftp/python/src/py152.tgz">http://www.python=
.org/ftp/python/src/py152.tgz</A>,=20
  because the ftp site <A=20
  href=3D"ftp://ftp.uk.research.att.com">ftp.uk.research.att.com</A> =
doen't=20
  respond)</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>The Python self test programs runs=20
  fine.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>and I've modified the file =
./config/config.mk to=20
  uncomment&nbsp;: platform =3D sun4_sosV_5.7</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>then I have modified the file=20
  ./mk/platforms/sun4_sosV_5.7.mk</FONT><FONT face=3DArial size=3D2> : =
PYTHON =3D=20
  /home/fredp/local/Python1.5.2 (or even =
/home/fredp/local/Python1.5.2/bin and=20
  include, but the errors still remains)</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>and then in ./src typed : gnumake=20
  export</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I do not see=20
  -I/home/fredp/local/Python1.5.2/include appear in the CC command line=20
  !!!!</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Please tell me what's wrong =
?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I must have miss something, somewhere =

  !</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>My env :</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>----------</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I use OmniORB version =
3_0_4.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&gt;uname -a<BR>SunOS thabor 5.7=20
  Generic_106541-01 sun4u sparc SUNW,Ultra-60</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&gt;CC -V<BR>CC: Sun WorkShop 6 =
update 1 C++ 5.2=20
  2000/09/11<BR></DIV></FONT>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks for your response</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>| Fr=E9d=E9ric Prin - Senior software =
engineer<BR>|=20
  Tel 04 56 38 10 33<BR>| S I L V A C O&nbsp;&nbsp;&nbsp; G . R E . C=20
  E<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_10F6_01C141EB.FA7E0F50--