Operating System - HP-UX
1752701 Members
5222 Online
108789 Solutions
New Discussion юеВ

Re: Error in invoking target 'ioracle_all_no_orclihsodbc' of makefile ...

 
Muhammad Ahmad
Frequent Advisor

Error in invoking target 'ioracle_all_no_orclihsodbc' of makefile ...

Hi,

1. #uname -r
HPUX, B.11.23
2. #getconf KERNEL_BITS
64
3. #cmviewcl

CLUSTER STATUS
mycluster up

NODE STATUS STATE
NodeA up running

PACKAGE STATUS STATE AUTO_RUN NODE
my_pkg up running enabled NodeA

NODE STATUS STATE
NodeB up running


i want to configure another package on newly presented devices.

i don't want to halt my running package.

running package Oracle user details are:

#id oracle
uid=2001(oracle) gid=1001(oinstall) groups=1002(dba),1003(oper)

newly added user for the next oracle installation for the 2nd package configuration details are:

#id ora
uid=2003(ora) gid=1001(oinstall) groups=1002(appdba),1003(appoper)

the problem arises during 'Linking Oracle Database', when OUI was Linking RDBMS executables:

Error invoking target 'ioracle all_no_orclihsodbc' of makefile '/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'

Relevant log file details are given below:

INFO: `if [ -f /opt/aCC/bin/aCC ]; then echo '/opt/aCC/bin/aCC'; else echo 'cc'; fi ` -Wl,+s -Wl,+n -o /app/oracle/product/10.2.0/db_1/rdbms/lib/extproc32 -L/app/oracle/product/10.2.0/db_1/rdbms/lib32/ -L/app/oracle/product/10.2.0/db_1/lib32/ -o /app/oracle/product/10.2.0/db_1/rdbms/lib/extproc32 /app/oracle/product/10.2.0/db_1/rdbms/lib32/hormc.o /app/oracle/product/10.2.0/db_1/rdbms/lib32/defopt.o /app/oracle/product/10.2.0/db_1/rdbms/lib32/homts.o -lagtsh `cat /app/oracle/product/10.2.0/db_1/lib32/ldflags
INFO: ` -lpls10 -lplp10 -lclntsh -lnls10 -lcore10 -lxml10 -lunls10 `cat /app/oracle/product/10.2.0/db_1/lib32/sysliblist` -lm

INFO: /usr/ccs/bin/ld: Can't find library: "clntsh"

INFO:
Stop.

INFO: *** Error exit code 1

INFO:
Stop.

INFO: *** Error exit code 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'ioracle all_no_orcl ihsodbc' of makefile '/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/oracle/app/oraInventory/logs/installActions2008-01-28_01-45-30PM.log' for details.


Any Suggestions / recommendations will be highly obligded,

Regards,


Muhammad Ahmad











5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Error in invoking target 'ioracle_all_no_orclihsodbc' of makefile ...

Shalom Muhammad,

Please relink oracle and see that your serviceguard package script has the correct SHLIB_PATH variable set.

This commonly comes from a failed link of the oracle binaries or a major installation problem such as running out of space while running the oracle universal installer.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Muhammad Ahmad
Frequent Advisor

Re: Error in invoking target 'ioracle_all_no_orclihsodbc' of makefile ...

Thanks for your response,

Please Note some of facts:

My user's profile contains:

LD_LIBRARY_PATH=/app/oracle/product/10.2.0/db_1/lib; export LD_LIBRARY_PATH

SHLIB_PATH=/app/oracle/product/10.2.0/db_1/lib32; export SHLIB_PATH

The following files exists:

$ll /app/oracle/product/10.2.0/db_1/lib/libcl*

-rw-rw---- 1 app oinstall 7378474 Jul 4 2005 libclient10.a
lrwxrwx--- 1 app oinstall 17 Jan 29 15:39 libclntsh.sl -> libclntsh.sl.10.1
-rwxrwx--- 1 app oinstall 18950200 Jan 29 15:31 libclntsh.sl.10.1
-rwxrwx--- 1 app oinstall 18950184 Jan 29 15:32 libclntsh_nopthread.sl
-rw-rw---- 1 app oinstall 0 Aug 15 2005 libclntst10.a
-rw-rw---- 1 app oinstall 11964892 Aug 12 2005 libclsr10.a
-r-xr-xr-x 1 app oinstall 39960 Aug 17 2005 libclsra10.sl
-rw-rw---- 1 app oinstall 1352830 Jun 29 2005 libclsrx10.a


Waiting for the response,

Regards,




Dennis Handly
Acclaimed Contributor

Re: Error in invoking target 'ioracle_all_no_orclihsodbc' of makefile ...

>cc -Wl,+s -Wl,+n
-L/app/oracle/product/10.2.0/db_1/rdbms/lib32/ -L/app/oracle/product/10.2.0/db_1/lib32/
`cat .../ldflags` ... -lclntsh ...
`cat .../sysliblist` -lm
ld: Can't find library: "clntsh"

This link line is broken because it doesn't have -L/app/oracle/product/10.2.0/db_1/lib.
It isn't one of the above two -L. It isn't in the file ldflags. And it is too late to be in the file sysliblist, since it's after the -lclntsh.

(That's assuming that .../db_1/lib isn't linked to .../db_1/lib32.)

>SEP: has the correct SHLIB_PATH variable set.

ld doesn't look at SHLIB_PATH or LD_LIBRARY_PATH when linking.
Muhammad Ahmad
Frequent Advisor

Re: Error in invoking target 'ioracle_all_no_orclihsodbc' of makefile ...

Dear Dennis Handly,

Any Suggested Solution?
Dennis Handly
Acclaimed Contributor

Re: Error in invoking target 'ioracle_all_no_orclihsodbc' of makefile ...

>Any Suggested Solution?

I thought is obvious. You need to add -L/app/oracle/product/10.2.0/db_1/lib to your link line.
If you have no clue what/where that is, you need to ask your makefile provider (Oracle?) how to fix it.

Or possibly put that in the file "ldflags".

What's in these two directories?
/app/oracle/product/10.2.0/db_1/lib/
/app/oracle/product/10.2.0/db_1/lib32/