The shared library path for compiling the sample programs must include $COBDIR/lib and $SYBASE/$SYBASE_OCS/lib. The path must also include $COBDIR/bin and $SYBASE/bin.
To enable the HP sample programs, you must change line 113 in sybopts.sh in the $SYBASE/$SYBASE_OCS/sample/esqlcob directory to:
nthread_hpux) SYSLIBS=" -lpthread -lrt -lm -lcl -ldld "
You must also change line 71 in sybopts.sh in the $SYBASE/$SYBASE_OCS/sample/esqlcob directory to:
COBOL="cob -t -x -L${SYBLIB}" ;
The sample programs fail to run if you do not make these
changes.