cobol & libraries on 11i v2
i'm trying to compile some app between microfocus cobol (4.0sp2), sybase
SDK 15.0 on HP-UX 11i v2.
i have a few problems with libraries. i have set LD_LIBRARY_PATH and
SHLIB_PATH with all the paths (microfocus & sybase one + /usr/lib), in
/etc/profile and in $COBDIR/etc/cob*.cfg (Ldefaultpath)
$ cob -x -o app1 app1.cbl -lsybcobct -lsybct -lsybtcl -lsybcs -lsybcomn
-lsybintl -lsybunic -lcl -lm -lBSD -ldld
ld: (Warning) Ignoring +allowunsats. The option is currently not
supported in a 32-bit PA link.
ld: Can't find library: "sybcobct"
bash-3.00$ COBMODE=32 cob -x -o app1 app1.cbl -lsybcobct -lsybct
-lsybtcl -lsybcs -lsybcomn -lsybintl -lsybunic -lcl -lm -lBSD -ldld
ld: Can't find library: "sybcobct"
bash-3.00$ ls /opt/sybase/OCS-15_0/lib/libsybcobct*
/opt/sybase/OCS-15_0/lib/libsybcobct.a
/opt/sybase/OCS-15_0/lib/libsybcobct_r.a
bash-3.00$ pwd
/opt/sybase/OCS-15_0/sample/esqlcob
bash-3.00$ SYBPLATFORM=hpux make
cob -x example1.cbl -L/opt/sybase/OCS-15_0/lib -lsybcobct -lsybct
-lsybtcl -lsybcs -lsybcomn -lsybintl -lsybunic -lcl -lm -lBSD -ldld -o
example1
ld: (Warning) Ignoring +allowunsats. The option is currently not
supported in a 32-bit PA link.
ld: Can't find library: "BSD"
*** Error exit code 1
Stop.
bash-3.00$ ls /usr/lib/libBSD*
/usr/lib/libBSD.a
bash-3.00$ COBMODE=32 cob -x -o app1 app1.cbl -lsybct -lsybtcl -lsybcs
-lsybcomn -lsybintl -lsybunic -lcl -lm -lBSD -ldld
ld: Can't find library: "sybct"
bash-3.00$ ls /opt/sybase/OCS-15_0/lib/libsybct*
/opt/sybase/OCS-15_0/lib/libsybct.a
/opt/sybase/OCS-15_0/lib/libsybct.sl
/opt/sybase/OCS-15_0/lib/libsybct64.a
/opt/sybase/OCS-15_0/lib/libsybct64.sl
/opt/sybase/OCS-15_0/lib/libsybct_r.a
/opt/sybase/OCS-15_0/lib/libsybct_r.sl
/opt/sybase/OCS-15_0/lib/libsybct_r64.a
/opt/sybase/OCS-15_0/lib/libsybct_r64.sl
bash-3.00$ COBMODE=32 cob -x -o app1 app1.cbl -lcl -lm -lBSD -ldld
ld: Can't open /opt/langtools/lib/crt0.o
ld: No such file or directory
bash-3.00$ COBMODE=32 cob -x -o app1 app1.cbl -lsybunic -lcl -lm -lBSD
-ldld -L /opt/sybase/OCS-15_0/lib
ld: Can't find library: "sybunic"
someone has ideas about this ?
app works on hpux 11.00, and older setup.
thanks a lot
Bye |