Link to home
Start Free TrialLog in
Avatar of ams42870
ams42870

asked on

cob32: error opening: cobsqlintf.o

I am trying to link a COBOL program that uses Oracle.  Everything is good up until it tries to link the object.  I get the following below:

cob -C IBMCOMP -C NESTCALL  -t -x -a -o ./R9004 R9004.cbl -L/oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/ /oracle/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/cobslqintf.o -lclntsh `cat /oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/ldflags`   `cat /oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/sysliblist` -laio  -lposix4  -lm  -lthread
* Ignored  - NESTCALL
*1502-U
Open fail : 'R9004.cbl'
cob32: error(s) in compilation: R9004.cbl
*** Error code 16
make: Fatal error: Command failed for target `build'
Current working directory /pssource/ps11gtest/workarea/cobol/pa
*** Error code 1
make: Fatal error: Command failed for target `R9004'
/usr/ccs/bin/make -f cobol.mk build COBS=R9004.cbl EXE=R9004
cob -C IBMCOMP -C NESTCALL  -t -x -a -o ./R9004 R9004.cbl -L/oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/ /oracle/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/cobslqintf.o -lclntsh `cat /oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/ldflags`   `cat /oracle/app/oracle/product/11.2.0.3/dbhome_2/lib/sysliblist` -laio  -lposix4  -lm  -lthread
* Ignored  - NESTCALL
cob32: error opening: /oracle/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/cobslqintf.o
*** Error code 1
make: Fatal error: Command failed for target `build'
Current working directory /pssource/ps11gtest/workarea/cobol/pa
*** Error code 1
make: Fatal error: Command failed for target `R9004'
rm: R9004.sdb: No such file or directory
rm: R9004.trc: No such file or directory

Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

WOW, haven't seen COBOL since the early 90's!!!  That brings back some memories...

>>cob32: error opening: /oracle/app/oracle/product/11.2.0.3/dbhome_1/precomp/lib/cobslqintf.o

Does that file exist?
Does the user trying the compile have access to it?

If the file doesn't exist, did you install Pro*COBOL (or whatever they call it these days)?
Avatar of ams42870

ASKER

Yes the file exists .  And I will check the owner on that file.
ASKER CERTIFIED SOLUTION
Avatar of Mark Geerlings
Mark Geerlings
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial