[omniORB] Compile with gcc on HP-UX 11i v2 (IA64)

Eric McMillan eric_mcmillan at themcmillans.net
Tue Jul 18 09:39:09 BST 2006


HP-UX/Itanium requires an extension of .so instead of .sl.  You will need to
change beforemake.mk.in and src/tool/omniidl/cxx/dir.mk.  The dir.mk file
hard-codes the module name as _omniidlmodule.sl, while the beforemake file
determines all the other library extensions.

There is one other problem.  Configure doesn't check for a system supplied
alloca.h and, as a result, it defaults to the omniORB supplied one when
building omnicpp.  A quick and dirty fix is to edit acconfig.h after running
configure to add a #define HAVE_ALLOCA and a #include <alloca.h>.

I haven't tried building this with gcc/g++, but I've successfully built it
using HP's AnsiC and aCC compilers.  

Eric

-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of
lst_hoe01 at kwsoft.de
Sent: Tuesday, July 18, 2006 6:33 AM
To: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] Compile with gcc on HP-UX 11i v2 (IA64)

Zitat von Matej Kenda <matejken at gmail.com>:

> Hi Andreas,
>
>
>> omniidl: (The error was 'Failed to load
>> /var/install/omniORB-4.0.7/build/lib/_omniidlmodule.sl')
>
>
>
>
> Strange the file is there :
>>
>> #ll lib
>> total 2688
>> lrwxr-xr-x   1 root       sys             19 Jul 14 16:19
>> _omniidlmodule.sl -> _omniidlmodule.sl.1
>> lrwxr-xr-x   1 root       sys             21 Jul 14 16:19
>> _omniidlmodule.sl.1 -> _omniidlmodule.sl.1.0
>> -rwxr-xr-x   1 root       sys         966532 Jul 14 16:15
>> _omniidlmodule.sl.1.0
>>
>>
>
> Is this Python just too old or do miss something?
>
>
>
> I assume that you have created 64-bit _omniidlmodule.so in the compile
> process. If that is true, then the failure indicates that 32-bit Python
was
> not able to load 64-bit module: you will have to get or compile 64-bit
> Python as well.
>


The next one ...
I have fetched the source from Python.org and compiled it succesfully.

# /var/install/Python-2.4.3/python
Python 2.4.3 (#1, Jul 18 2006, 14:24:08)
[GCC 4.1.1] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>>

With this i tried a new build and get the following :

../../../../../src/tool/omniidl/cxx/idlpython.cc:1569: error: expected 
initializer before '*' token
../../../../../src/tool/omniidl/cxx/idlpython.cc:1579: error: 
'PyMethodDef' does not name a type
../../../../../src/tool/omniidl/cxx/idlpython.cc: In function 'void 
init_omniidl()':
../../../../../src/tool/omniidl/cxx/idlpython.cc:1596: error: 
'PyObject' was not declared in this scope
../../../../../src/tool/omniidl/cxx/idlpython.cc:1596: error: 'm' was 
not declared in this scope
../../../../../src/tool/omniidl/cxx/idlpython.cc:1596: error: 
'omniidl_methods' was not declared in this scope
../../../../../src/tool/omniidl/cxx/idlpython.cc:1596: error: 
'Py_InitModule' was not declared in this scope
../../../../../src/tool/omniidl/cxx/idlpython.cc:1598: error: 
'PyString_FromString' was not declared in this scope
../../../../../src/tool/omniidl/cxx/idlpython.cc:1598: error: 
'PyObject_SetAttrString' was not declared in this scope
gmake[4]: *** [idlpython.o] Error 1
gmake[4]: Leaving directory 
`/var/install/omniORB-4.0.7/build/src/tool/omniidl/cxx'
gmake[3]: *** [export] Error 1
gmake[3]: Leaving directory 
`/var/install/omniORB-4.0.7/build/src/tool/omniidl'
gmake[2]: *** [export] Error 1
gmake[2]: Leaving directory `/var/install/omniORB-4.0.7/build/src/tool'
gmake[1]: *** [export] Error 1
gmake[1]: Leaving directory `/var/install/omniORB-4.0.7/build/src'
gmake: *** [all] Error 1

Ayn hints if it is possible to build omniORB 4.0.7 at all on HP-UX with 
gcc/g++??

Thanxs & Regards

Andreas




_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list







More information about the omniORB-list mailing list