Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Oracle 10g (release1), AIX, Pro-COBOL, Problems building sample programs
I have an Oracle 10g (release 1) database running on an IBM p520
running AIX 5.3, with the appropriate MicroFocus COBOL compiler
installed.
I am trying to compile the first of the sample programs in the .../precomp/demo/procob2 directory.
The command I use (and the output I get) is as follows :-
# make -f demo_procob.mk sample1
/bin/make -f
/apps/oracle/10g/precomp/demo/procob2/demo_procob.mk build
COBS=sample1.cob EXE=sample1
cob -C IBMCOMP -C NESTCALL -x -t -o sample1 sample1.cob
-L/apps/oracle/10g/lib/ /apps/oracle/10g/precomp/lib/cobsqlintf.o
-lclntsh -lld -lm `cat /apps/oracle/10g/lib/sysliblist` -lm -lc_r
-lpthreads
Could not load program /usr/lpp/cobol/bin/rts32_t:
Dependent module libcobrts_t.2.so could not be loaded.
Could not load module libcobrts_t.2.so.
System error: No such file or directory
cob32: error(s) in compilation: sample1.cob
make: 1254-004 The error code from the last command is 255.
Stop.
make: 1254-004 The error code from the last command is 2.
When I check for the files mentioned (with the ls command) :-
# ls -l /usr/lpp/cobol/lib/libcobrts_t.2.so
-r-xr-xr-x 1 root system 1141066 Mar 20 2003
/usr/lpp/cobol/lib/libcobrts_t.2.so
# ls -l /usr/lpp/cobol/bin/rts32_t
-r-xr-xr-x 1 root system 3870 Mar 20 2003
/usr/lpp/cobol/bin/rts32_t
The output of an "env" command is as follows :-
_=/usr/bin/env
LANG=en_US
LOGIN=oracle
LINK_CNTRL=L_PTHREADS_D7
PATH=:/acs/banner/general/exe:/acs/banner/admin:/usr/bin:/etc:/usr/sbin:/usr/ucb
:/home/oracle/bin:/usr/bin/X11:/sbin:.:/usr/vacpp/bin:/usr/vac/bin:/usr/lpp/cobo
l/bin:drivers:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14_64 /jre/bin:/usr/java14_64/bin:/usr/java14/bin:/usr/java14/jre/bin:/usr/java131/bin :/usr/java131/jre/bin:/usr/local/bin:.:/apps/oracle/10g/bin:/acs/banner/linksSRCE_LINK=
ORACLE_BASE=/apps/oracle BANNER_HOME=/acs/banner LC__FASTMSG=true
I suspect that the problem is probably environmental, as I am able to build the MicroFocus demo programs with no problems. However, The LD_LIBRARY_PATH variable seems to be correct, and I'd thought this was where it should be looking for the "so" file, no?
Thanks in advance for any insights anybody might be able to offer. I'm a newbie in the Pro-COBOL world :)
Rich Woodland
Magic Interface, Ltd.
Received on Thu Feb 02 2006 - 09:50:55 CST