Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Oracle 10g (release1), AIX, Pro-COBOL, Problems building sample programs

Oracle 10g (release1), AIX, Pro-COBOL, Problems building sample programs

From: Quilpole <vishnu_at_magicinterface.com>
Date: Thu, 02 Feb 2006 10:50:55 -0500
Message-ID: <1694u1dru32fcnfubeh5rdmpkk5o27jcg7@4ax.com>


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/links
SRCE_LINK=
ORACLE_BASE=/apps/oracle
BANNER_HOME=/acs/banner
LC__FASTMSG=true

ORACLE_LPPROG=lpr
ORACLE_PATH=.:/home/oracle:/acs/banner/links:/acs/banner/admin: COBSUFX=
BANNER_ROOT=/acs
COBPATH=/home/oracle:/acs/banner/links:/acs/banner/general/exe LOGNAME=oracle
MAIL=/usr/spool/mail/oracle
HOSTNAME=p520_two
COBDIR=/usr/lpp/cobol
LOCPATH=/usr/lib/nls/loc
ORACLE_SID=TRNG2
PS1=($HOSTNAME:$PWD)#
USER=oracle
AUTHSTATE=compat
CLOBDATA_HOME=/u01/oradata/trng2
SHELL=/bin/ksh
ODMDIR=/etc/objrepos
HOME=/home/oracle
TERM=ansi
MAILMSG=[YOU HAVE NEW MAIL]
ORACLE_HOME=/apps/oracle/10g
COBPREF=
PWD=/apps/oracle/10g/precomp/demo/procob2 TZ=EST5EDT
ENV=/etc/environment
ORACLE_LPARGS=-Plp
DATAFILE_HOME=/u01/oradata/trng2
A__z=! LOGNAME
LIBPATH=/apps/oracle/10g/lib32:/apps/oracle/10g/network/lib32:/usr/lib:/usr/lpp/cobol/lib:/usr/lpp/cobol/coblib:/lib LD_LIBRARY_PATH=/apps/oracle/10g/lib32:/apps/oracle/10g/network/lib32:/usr/lib:/usr/lpp/cobol/lib:/usr/lpp/cobol/coblib NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US