Operating System - HP-UX
1752419 Members
6221 Online
108788 Solutions
New Discussion юеВ

Re: Make: Cannot open procob.mk. Stop.

 
Ian Lochray
Respected Contributor

Re: Make: Cannot open procob.mk. Stop.

As Yogeeraj said, make sure that $SHLIB_PATH - includes $ORACLE_HOME/lib, but not $ORACLE_HOME/lib64. Currently it only contains the COBOL shared libraries.
Engo Armand-Blaise
Frequent Advisor

Re: Make: Cannot open procob.mk. Stop.

I've done the same but there is no change on it :

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH

LPATH=/usr/lib:/opt/cobol/cobdir ; export LPATH
SHLIB_PATH=/opt/cobol/cobdir/coblib:$ORACLE_HOME/lib; export SHLIB_PATH
PATH=$PATH:/usr/bin:/usr/ccs/bin:/opt/cobol ; export PATH
PATH=$PATH:/opt/cobol/bin:/opt/cobol/bin ; export PATH
PATH=$PATH:$LPATH:$SHLIB_PATH ; export PATH
PATH=$PATH:$ORACLE_HOME/precomp/demo/procob ; export PATH
PATH=$PATH:$ORACLE_HOME/precomp/lib ; export PATH

Ian Lochray
Respected Contributor

Re: Make: Cannot open procob.mk. Stop.

Have you got ORACLE_HOME set correctly in your environment? Also, do an ls -l $ORACLE_HOME/lib/libwtc8.sl to check it is present and readable.
Ian Lochray
Respected Contributor

Re: Make: Cannot open procob.mk. Stop.

Can you cd to $ORACLE_HOME/bin and do a
chatr procob18 | more

The output should show that SHLIB_PATH is enabled e.g.

procob18:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
Engo Armand-Blaise
Frequent Advisor

Re: Make: Cannot open procob.mk. Stop.

This what I have :

$ echo $ORACLE_HOME
/cyborg/app/oracle/product/817
$ l -ltr $ORACLE_HOME/lib/libwtc8.sl
-rwxr-xr-x 1 oracle dba 12288 Aug 25 2000 /cyborg/app/oracle/pro
duct/817/lib/libwtc8.sl
==============================================

Must I obliged to re-install the precompiler or not?
Engo Armand-Blaise
Frequent Advisor

Re: Make: Cannot open procob.mk. Stop.

ls -ltr procob18
-rwxr-xr-x 1 oracle dba 11751424 Aug 25 2000 procob18
cyb_hpux [ /cyborg/app/oracle/product/817/bin ] $ chatr procob18|more
chatr(warning): dl_header_ext.size != sizeof(dl_header_ext). Please update your
version of the linker.
procob18:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
shared library list:
dynamic /project/hpux/817/src_000811_cunnitha/lib//libclntsh.sl.8
.0
dynamic /project/hpux/817/src_000811_cunnitha/lib//libwtc8.sl
dynamic /usr/lib/librt.2
dynamic /usr/lib/libpthread.1
dynamic /usr/lib/libnss_dns.1
dynamic /usr/lib/libdld.2
dynamic /usr/lib/libm.2
dynamic /usr/lib/libc.2 ........
============================================

Please assist me.

Engo.
Ian Lochray
Respected Contributor

Re: Make: Cannot open procob.mk. Stop.

Try relinking procob18. To do this log on as oracle, cp $ORACLE_HOME/bin/procob18 $ORACLE_HOME/bin/procob18.bak, cd $ORACLE_HOME/precomp/lib, make -f ins_precomp.mk procob18.
Engo Armand-Blaise
Frequent Advisor

Re: Make: Cannot open procob.mk. Stop.

This is what I have when trying to relink "procob18" :
make -f ins_precomp.mk
procob18
Linking procob18
/usr/ccs/bin/ld: Can't find library: "clntsh"
*** Error exit code 1

Stop.
Ian Lochray
Respected Contributor

Re: Make: Cannot open procob.mk. Stop.

This seems to be very similar to your original problem - libraries in $ORACLE_HOME/lib are not being picked up. Let's have a look at the link command being used.
DO the same as before except, take a copy of ins_precomp.mak and edit the copy. FInd the line that starts "$(LOC_PROCOB18):" and delete the following line "$(SILENT)$(ECHO) "Linking $@"; \". You can then relink procob18 specifying the new file instead of ins_precomp.mak. This will show you the link command being used which should tell us where it is all going wrong.
Can you please post the output along with the output of:
echo $ORACLE_HOME
env | grep LIB
ls -l $ORACLE_HOME/lib
Engo Armand-Blaise
Frequent Advisor

Re: Make: Cannot open procob.mk. Stop.