1836746 Members
2938 Online
110109 Solutions
New Discussion

Re: Compiling problem

 
Wendy_4
Frequent Advisor

Compiling problem

Hi,

We upgrate HP-UX 10.2 to HP-UX 11i, the C complie upgrate from HP C++ to HP aC++, OpenView from 6.1 to 6.2, OV development tool kil from 6.1 to 6.2.

When I compile the file, I got an error: "ld: Mismatched ABI (not an ELF file) for -lovw"

I go to /opt/OV/lib, use command: "file libovw.sl", the result is: "libovw.sl: PA-RISC1.1 shared library"

I use command "file" to see other libray we used in our system, the result is: "ELF-64 shared object file - PA-RISC 2.0 (LP64)"

Please tell me what I can do to fix this problem.

Thanks in advance,
Wendy Huang
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Compiling problem

Hi:

You are probably compiling on a machine that defaults to +DA2.0W architecture. Add either +DA1.1 or +DAportable to the compiler options and recompile your .c's. Man aCC for details.
If it ain't broke, I can fix that.
Wendy_4
Frequent Advisor

Re: Compiling problem

Thanks A,

We do use +DA2.0w mode to complie. Is there anybody know is there any patch for HP OV development tool kit to provide 64-bit library?

Thanks,
Wendy
A. Clay Stephenson
Acclaimed Contributor

Re: Compiling problem

Hi again:

I don't know of a 64-bit version of the library but unless you actually need the 64-bit address space (which would be unusual in an OV application), you can simply compile using +DAportable and your resulting 32-bit code will execute just fine in both the 32-bit and 64-bit worlds.

Regards, Clay
If it ain't broke, I can fix that.
Wendy_4
Frequent Advisor

Re: Compiling problem

Thanks Clay,

In our case, we need link 64-bit Oracle and other library alone with OV library, does +DAportable work for this case? Currently I chose to use all 32-bit library and with +DA1.0 mode. But I like to know if it is possible to use 64-bit library.

Thanks again,
Wendy
A. Clay Stephenson
Acclaimed Contributor

Re: Compiling problem

You are not going to able to link in that case. I suggest that you open a software call or post your question in the OpenView Forum to see if a library is available.

If it ain't broke, I can fix that.
Wendy_4
Frequent Advisor

Re: Compiling problem

Thanks,
Wendy