- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Pro*C Error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 03:40 AM
тАО01-28-2009 03:40 AM
When we try to compile and link a pro*c file we get the below error. Can any one highlight what might be causing the error ?
Operating System: HP-UX Itanium 11.31
Database: 10.2.0.4
Pro*C compiler version: pro*C/C++: Release 10.2.0.4.0
C/C++ Version: HP C/aC++ for Integrity Servers B3910B A.06.17 [Mar 4 2008]
/home/builddir $ make build_plc_barts
/opt/ansic/bin/cc -o plc_barts assign_plc_chan.o init_plc_devices.o plc_barts.o queue_plc4
ld: Mismatched ABI (not an ELF file) for -lclntsh, found /lib/hpux64/libclntsh.so
Fatal error.
*** Error exit code 1
/home/builddir $ make build_get_plc_data
Making Object files for get_plc_data.c
/opt/ansic/bin/cc -c +DD64 -I. -I../lib -I/u01/dba/oracle/product/10.2.0/precomp/public c
/opt/ansic/bin/cc -o get_plc_data get_plc_data.o -L/lib/hpux64 -L/u01/dba/oracle/product/14
ld: Unsatisfied symbol "sqlcx2t" in file get_plc_data.o
ld: Unsatisfied symbol "main" in file
2 errors.
*** Error exit code 1 (ignored)
/bin/rm -f get_plc_data.o
The make file has the following
# C compiler flags
CFLAGS= +DD64
LFLAGS= -L/lib/hpux64 -L/u01/dba/oracle/product/10.2.0/lib -lclntsh +DD64
# C compiler include directories
IFLAGS= -I. -I../lib $(PRECOMPPUBLIC) -I/u01/dba/oracle/product/10.2.0/precomp/public
build_get_plc_data: get_plc_data.o
-$(CC) -o get_plc_data get_plc_data.o $(LFLAGS)
$(RM) get_plc_data.o
If required we can upload the complete make file.
Thanks,
Dhivya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 05:09 AM
тАО01-28-2009 05:09 AM
Re: Pro*C Error
What does "file /lib/hpux64/libclntsh.so" show?
cc -o get_plc_data get_plc_data.o -L/lib/hpux64 -L/u01/dba/oracle/product/14
>-L/lib/hpux64
This path is incorrect, remove it since it is the default. You also are missing +DD64.
I don't see any -l options to specify the shlibs?
LFLAGS= -L/lib/hpux64 ...
Remove this -L.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 07:31 PM
тАО01-28-2009 07:31 PM
Re: Pro*C Error
file /lib/hpux64/libclntsh.so shows
ELF-64 shared object file - IA64
We get the below after removing /lib/hpux64 and removing -L from the LFLAGS
/opt/ansic/bin/cc -c +DD64 -I. -I../lib -I/u01/dba/oracle/product/1012ias/precomp/public plc_barts.c
/opt/ansic/bin/cc -o plc_barts assign_plc_chan.o init_plc_devices.o plc_barts.o queue_plc_read.o read_plc_ast.o translate4
ld: Mismatched ABI for -lclntsh, found /usr/lib/hpux64/libclntsh.so
Fatal error.
*** Error exit code 1
Thanks,
Dhivya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 08:22 PM
тАО01-28-2009 08:22 PM
Re: Pro*C Error
So you need a 64 bit application.
>cc -c +DD64 plc_barts.c
>cc -o plc_barts assign_plc_chan.o init_plc_devices.o plc_barts.o queue_plc_read.o read_plc_ast.o translate4
ld: Mismatched ABI for -lclntsh
What does file(1) show for each object file:
assign_plc_chan.o init_plc_devices.o plc_barts.o queue_plc_read.o read_plc_ast.o
To get a list of each linker input you can use "-Wl,-t".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 09:10 PM
тАО01-28-2009 09:10 PM
Re: Pro*C Error
init_plc_devices.o: ELF-32 relocatable object file - IA64
plc_barts.o: ELF-64 relocatable object file - IA64
queue_plc_read.o: ELF-32 relocatable object file - IA64
read_plc_ast.o: ELF-32 relocatable object file - IA64
It seems that C files uses 32 bit compiler.
All the files refers to /lib.
Please let us know what can be done.
Thanks,
Dhivya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 09:32 PM
тАО01-28-2009 09:32 PM
Re: Pro*C Error
You need to find their makefiles and make sure CFLAGS has +DD64.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 10:28 PM
тАО01-28-2009 10:28 PM
Re: Pro*C Error
Appreciate your immediate response.
We are very new to Pro*C and your suggestions are really useful for us.
We have deleted all the object files and created again with +DD64 in the make files.
Now we get C specific errors.
We have a lot of programs. Few programs throw errors and few throuws warnings.
For instance, We get an error saying "Argument was incompatible with formal parameter".
Also we got an error "Cannot load upload_trim_program.o" . We gave 777 permissions to the file and tried compiling it again. It threw an error saying "Execute Permission denied".
Please help.
Thanks,
Dhivya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 11:00 PM
тАО01-28-2009 11:00 PM
Re: Pro*C Error
(I know very little about Pro*c.)
>Now we get C specific errors.
Then you need to stop and use the 32 bit version of libclntsh. Going to 64 bit requires porting work.
>We get an error saying "Argument was incompatible with formal parameter".
This is likely an error you would have to fix if you had to port.
>we got an error "Cannot load upload_trim_program.o". We gave 777 permissions to the file and tried compiling it again. It threw an error saying "Execute Permission denied".
Who is giving the error? Where are your error logs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 12:36 AM
тАО01-29-2009 12:36 AM
Re: Pro*C Error
I modified the CFLAGS and LFLAGS to +DD32 and tried compiling.
Now i get an error saying ". Stop.nnot read or get /u01/dba/oracle/product/10.2.0/precomp/lib/env_precomp.mk"
Please suggest.
Thanks,
Dhivya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2009 01:34 AM
тАО01-29-2009 01:34 AM
Re: Pro*C Error
Is this before or after the previous errors?
Any other errors in your make output?
Does this env_precomp.mk file exist?