[omniORB] HPUX/PA-RISC 64-bits porting

Bhatia, Neeraj (FMS Engineering) neeraj.bhatia at hp.com
Fri Apr 2 13:01:19 BST 2004


Hi Duncan,

You're right, but how do I make it work. To my knowledge, omniORB is not supported for HPUX/PA-RISC 64bits.

I am using the configure script to generate the build environment, followed by few changes to build/mk/beforeauto.mk file in aCC section:
1.  Replace +DAportable by +DA2.0W for CXXOPTIONS and COPTIONS
2.  Added IMPORT_LIBRARY_FLAGS += +DA2.0W 

I tried to debug:
lib/omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2420 -D__OMNIIDL_CXX_
_ ../idl/Naming.idl
Segmentation fault (core dumped)
(gdb) where
#0  0xc000000000270878 in strncpy () from /usr/lib/pa20_64/libc.2
#1  0x40000000000191e0 in make_definition ()
#2  0x4000000000008cbc in main ()

Is this function "make_definition" in cccp.c source file making an assumption about the size of a pointer to be 4 bytes?

Do I need to change config-hpux.h source file?

Thanks in advance for your support.

Regards,

Neeraj

-----Original Message-----
From: Duncan Grisby [mailto:duncan at grisby.org] 
Sent: Friday, April 02, 2004 10:43 AM
To: Bhatia, Neeraj (FMS Engineering)
Cc: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] HPUX/PA-RISC 64-bits porting 

On Thursday 25 March, "Bhatia, Neeraj (FMS Engineering)" wrote:

> Moving little ahead on HPUX/PA-RISC 64-bits porting, I've reached to
> a point where IDL compiler crashes, while trying to build
> Naming.idl.

[...]
> omniidl: Running front end
> sh: 28484 Memory fault(coredump)
> omniidl: Error running preprocessor

That looks like omnicpp, the C pre-processor has died. You can confirm
it by trying to run omnicpp on Naming.idl. Assuming it is omnicpp, the
problem is most likely that it was compiled with incorrect word
sizes.

Did you use the configure script?  If so, it should have worked. If
not, that's the problem, because config-hpux.h in
src/tool/omniidl/cxx/cccp/ hard-codes 32-bit word sizes for HPUX.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --


More information about the omniORB-list mailing list