Problem:
Error occurs when creating an executable linked with Oracle 9.x compile using Server Express 4.0 on HP/UX 11.11 platform
Precompiling xxx005u.pco
cob -C IBMCOMP -C NESTCALL -t -x -o xxx005u xxx005u.cob -L/oracle/product/920/lib/ /oracle/product/920/precomp/lib/cobsqlintf.o -lclntsh 'cat /oracle/product/920/lib/ldflags' 'cat/oracle/product/920/lib/sysliblist' -lm -lpthread -lpthread* Ignored - NESTCALL
cob64: invalid symbol __iob in sidefile /opt/microfocus/cobol/lib/cobisym
*** Error exit code 1
Stop.
RXCPR/AAD:9i.T4.40.04
PTI=SP2
Resolution:
The error is the result of mismatched definition of environment variables for Server Express 4.0
COBDIR=/opt/microfocus/cobol - the default for Server Express 4.0
PATH set to include the bin directory of an earlier version of Server Express does not include the opt/microfocus/cobol/bin directory for Server Express 4.0
Make sure the following environment variables are defined for the correct version of Server Express
COBDIR=opt/microfocus/cobol
PATH=$COBDIR/bin:$PATH
SHLIB_PATH=$COBDIR/lib:$SHLIB_PATH
Remove all references to other versions of the COBOL product from these variables.