Problem on Pro*C compilation on HP-UX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Problem on Pro*C compilation on HP-UX
# 1  
Old 04-28-2009
Problem on Pro*C compilation on HP-UX

Hi,
This is my first post to this forum. I have been facing a strange compilation error message. When I try to make a pro*C file on HP-UX ( uname -a shows HP-UX aopc7449 B.11.11 U 9000/800 2416083493 unlimited-user license),
::: Linking...
/usr/ccs/bin/ld: profls.o: Not a valid object file (invalid system id)
*** Error exit code 1

Stop.
The same file was built perfectly OK with HP-UX (HP-UX awhq6392 B.11.00 U 9000/800 1714987616 unlimited-user license). HP-UX (from 11.00 to 11.11)and Oracle (from 9 to 10.2.0.4) were upgraded recently and now I am getting this error. Can you please suggest how to resolve the error completely ?
Thanks in advance,
Asutosh
# 2  
Old 04-28-2009
Further to my previous query, I would like to add that the compiler is cc, the pro*C flag are as below.
PROCFLAGS=dbms=native sqlcheck=semantics userid=${USERID} include=${INCDIR}
.pc.c:
@$(PROC) $(PROCFLAGS) iname=$*.pc

Sorry for missong in my oroginal thread.
Thnx
Asutosh
# 3  
Old 04-28-2009
This is supposed to be an object file: profls.o You need to rebuild it, or restore it from tape. It is corrupted.

You are using a makefile. It may "know" how to make profls.o if the source exists for it.
# 4  
Old 04-29-2009
Thank you for your response. Yes, it is an object file. The file is getting created by the makefile only from its source file. I am doing a clean make and the .o file is created, but the error is shown during final stage of linking. This is happening consistently and repeatedly. I can not make out why the .o file is getting generated corrupt everytime. But there was no issue before OS upgrade.

Thnx
Asutosh
# 5  
Old 04-29-2009
which cc?
Code:
 $ ll /usr/bin/cc
lr-xr-xr-t   1 root       sys             17 Aug 22  2001 /usr/bin/cc -> /opt/ansic/bin/cc

Usually oracle require also HP aC++ Compiler (product: B3913DB )from 11.11

You could try this evaluation:
Hewlett-Packard Co.
# 6  
Old 04-29-2009
Our Oracle makefile requires the ansi/cc version at a minimum. You would be getting hundreds of syntax errors if you were running against the old K & R compiler - unless your code is really old-fashioned. vbe is right

Can you get the good .o files from tape somewhere? AND. Are you positive the .o files are not also parked in a directory that gets scanned by the -I direcretive? Meaning the .o files could be ancient. And the linker uses them before ld's include path finds the new ones?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Problem in compilation.

Hi, I am executing the below mentioned code:- proc SQLCHECK=SEMANTICS iname=CDBInteractor.pc parse=none code=cpp cpp_suffix=cpp g++ -c main.cpp g++ -o pre_request_engine main.o -I/oracle/oracle/app/product/10g/precomp -L/oracle/oracle/app/product/10g/lib32 -lnsl -ldl And... (2 Replies)
Discussion started by: tushar_tus
2 Replies

2. Programming

C Compilation problem

Dear all I am new to C programming In response to the post cat get_time.c #include <stdlib.h> #include <sys/time.h> main() { struct timeval tv; struct timezone tz; struct tm *tm; gettimeofday(&tv, &tz); tm=localtime(&tv.tv_sec); printf("... (2 Replies)
Discussion started by: on9west
2 Replies

3. Programming

Compilation error when compiling Pro*C code

I'm running a query similar to the one that I'm describing below -: _______________________________ EXEC SQL INSERT INTO TABLE1 ( C1 ,C2 ,C3 ,C4 ) (SELECT DISTINCT B.V1 ,B.V2 ,( SELECT D.V3 FROM TABLE2 D WHERE D.V3 = C.V4) ,B.V4 FROM TABLE2 B ,TABLE3 C WHERE B.V3 = C.V4) ;... (1 Reply)
Discussion started by: maheshp
1 Replies

4. AIX

Pro C Compilation problem

Hi, I have AIX 5.3 and my code is written in proc . i am getting following error during compilation Please help?////..... :-d: Compiling with RMS cc -w -q32 -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 -c -q32... (0 Replies)
Discussion started by: ajaysahoo
0 Replies

5. Shell Programming and Scripting

Pro*c compilation error

Hi, Recently our codes have been migrated to new server, whenever we compile any pro*c programs we receive the following errorl. please help >> make -f lib_util.mk all CC= ucbcc 4Compiling lib_util ### command line files and options (expanded): ### -xO3 -DNULL=0 -v -o lib_util.o... (1 Reply)
Discussion started by: satvd
1 Replies

6. Programming

pro*c compilation error

Hi, Recently our codes have been migrated to new server, whenever we compile any pro*c programs we receive the following errorl. please help >> make -f lib_util.mk all CC= ucbcc 4Compiling lib_util ### command line files and options (expanded): ### -xO3 -DNULL=0 -v -o lib_util.o... (0 Replies)
Discussion started by: satvd
0 Replies

7. Programming

Compilation problem on HP-UX

Hi, Environment : HP-UX avalon B.11.11 U 9000/800 3547052374 unlimited-user license aCC version :aCC: HP ANSI C++ B3910B A.03.37 I need to find a way out of this errors.can anyone help me . $ aCC db.cc -I$ORACLE_HOME/rdbms/public -I/disk1/oracle/product/10.2.0.2/* Error (future)... (1 Reply)
Discussion started by: varuntayur
1 Replies

8. Programming

compilation problem

i have a class name 1.c in tht i am using function n wich has his body in 2.c and declaration in 2.h now how can i compile 1.c. ex; 1.c int main() { //some data n(10); //somedata } ***** 2.c int n(int k) { //some data } int main() { some data (2 Replies)
Discussion started by: phani_sree
2 Replies

9. Solaris

compilation problem

I am compiling a software named wine When i run make then at the end following error generated. DVAPI32_ -foversion.res version.rc ld.so.1: ../../tools/wrc/wrc: fatal: relocation error: file ../../tools/wrc/wrc: symbol wine_casemap_upper: referenced symbol not found *** Signal 9 make:... (0 Replies)
Discussion started by: mansoorulhaq
0 Replies

10. UNIX for Dummies Questions & Answers

domain logon problem - FreeBSD PDC w/ win2k pro and winxp pro

this is the seventh problem i'm having with samba. for some reason, i cannot logon to the domain. i've created user accounts... and i was able to establish a connection between the samba server (my PDC) and my workstations by logging in as "root." however now when i try to logon it gives... (5 Replies)
Discussion started by: xyyz
5 Replies
Login or Register to Ask a Question