- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- softlink problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 10:47 AM
тАО04-21-2009 10:47 AM
i have a soft link:
ls -l /usr/bin/cc
lr-xr-xr-x 1 root sys 15 Apr 21 14:02 /usr/bin/cc -> /opt/aCC/bin/cc
this should be linked to /opt/aCC/bin/aCC per oracle...
oracle support suggested i do the following:
(1) mv /opt/aCC/bin/cc /opt/aCC/bin/cc_org
(2) ln -s /usr/bin/cc /opt/aCC/bin/aCC ..
when i do this i get this error:
ln: /opt/aCC/bin/aCC exists
when i do another:
ls -l /usr/bin/cc
lr-xr-xr-x 1 root sys 15 Apr 21 14:02 /usr/bin/cc -> /opt/aCC/bin/cc
.. this is fairly confusing to me... if i did the "mv /opt/aCC/bin/cc /opt/aCC/bin/cc_org" which i assume is supposed to move the softlink, why is it still showing when i do an
ls - /usr/bin/cc... and why do i get the "already exists" error when executing
ln -s /usr/bin/cc /opt/aCC/bin/aCC ...
better yet what do i have to do the get the softlink /usr/bin/cc to point to /opt/aCC/bin/aCC ????
# mv /opt/aCC/bin/cc /opt/aCC/bin/cc_org
# ln -s /usr/bin/cc /opt/aCC/bin/aCC
ln: /opt/aCC/bin/aCC exists
# ls -l /usr/bin/cc
lr-xr-xr-x 1 root sys 15 Apr 21 14:02 /usr/bin/cc -> /opt/aCC/bin/cc
# ls -l /opt/aCC/bin/cc_org
-r-xr-xr-x 1 bin bin 985208 Jun 22 2007 /opt/aCC/bin/cc_org
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 11:28 AM
тАО04-21-2009 11:28 AM
SolutionYour command "mv /opt/aCC/bin/cc /opt/aCC/bin/cc_org" is moving the ORIGINAL executable and is NOT touching the link.
/usr/bin/cc is the soft link which is pointing to /opt/aCC/bin/cc.
The instructions from Oracle are backwards!
You need to do:
# rm /usr/bin/cc
# ln -s /opt/aCC/bin/aCC /usr/bin/cc
# ls -l /usr/bin/cc
This should now point to /opt/aCC/bin/aCC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 11:30 AM
тАО04-21-2009 11:30 AM
Re: softlink problem
if you need to create soft link /usr/bin/cc which points to /opt/aCC/bin/aCC ,the step (2) will be #ln -s /opt/aCC/bin/aCC /usr/bin/cc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 11:32 AM
тАО04-21-2009 11:32 AM
Re: softlink problem
Try using
# mv /opt/aCC/bin/cc /opt/aCC/bin/cc_org
# rm /usr/bin/cc
# ln -s /opt/aCC/bin/aCC /usr/bin/cc
Now when you do your "ls -l /usr/bin/cc" you should see Happy Information Listed. :-)
HP-Server-Literate since 1979
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 11:42 AM
тАО04-21-2009 11:42 AM
Re: softlink problem
Soft Links work IMO in a counter intuitive way.
To get it right and I frequently get the same error.
I cd to the directory I want the soft link
link -s path_to_executable localname
example
link -s /usr/bin/perl perl5
This saves me the trouble of saving my perl scripts and making changes when I migrate them from Linux to HP-UX
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2009 07:21 PM
тАО04-21-2009 07:21 PM
Re: softlink problem
Oracle is incorrect. cc must link to cc. Do NOT touch this symlink!
(What problem are you trying to solve?)
>Patrick: The instructions from Oracle are backwards!
Not just backwards but incorrect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 01:06 AM
тАО04-22-2009 01:06 AM
Re: softlink problem
Use swverify to check that everything is OK.
Second thing was already mentions: The support guy mixed source and destination... luckily he did not ask you to use the -f switch.
My 2 cents,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 02:48 AM
тАО04-22-2009 02:48 AM
Re: softlink problem
Actually it has nothing to do with the OS, just the HP C/aC++ compiler. I.e. where I want it to point. ;-)
>E.g. the kernel configuration of HP-UX 11.11 relies on that.
I thought 11.11 uses cc_bundled(1)? And this case is at least 11.23.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 03:56 AM
тАО04-22-2009 03:56 AM
Re: softlink problem
Dear Donald
regarding software link please read this and above thread also, because i don't want to mention the same thing again
In Unix, a file that points to another file or directory. It is used to allow a variety of sources to point to a common destination. The Windows 2000 counterpart is the "virtual directory." When URLs are redirected, it is called "URL mapping." A symbolic link is like a Windows shortcut, except that the link is an index entry in the Unix file system, whereas the shortcut is a regular Windows file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 04:47 AM
тАО04-22-2009 04:47 AM
Re: softlink problem
when installing an oracle patch or when trying to install a new oracle home i'm getting linking errors which oracle's doc-id 387101.1 was caused by the softlink /usr/bin/cc pointing to /opt/aCC/bin/cc instead of /opt/aCC/bin/aCC..
but chaning the softlink didn't help the problem... are you suggesting i set the softlink back to what it was originally ?
right now this is a priority 1 service request with oracle since they originally told me i needed to get the hp bundles up to date and that the linker problem would probably be fxed when i did that. they were wrong. this is the type of error i'm getting when trying to install a patch:
Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME=/u01/app/oracle/product/10.2.0"....'genclntsh: Failed to link libclntsh.so.10.1... have you run across a similiar problem ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 05:15 PM
тАО04-22-2009 05:15 PM
Re: softlink problem
This is broken, this isn't the cause. If there is a linking error, Oracle should change their use of cc to aCC, not fiddle with the aC++ installation. (Not sure if this is the cause but if you are linking aC++ applications, you must use aCC and not cc.)
>but changing the softlink didn't help the problem. are you suggesting I set the softlink back to what it was originally?
It if doesn't help, there is no need to change it. And yes, you must put it back.
>right now this is a priority 1 service request with oracle since they originally told me I needed to get the hp bundles up to date and that the linker problem would probably be fixed when i did that.
What type of linking problem, unsats?
>'genclntsh: Failed to link libclntsh.so.10.1. have you run across a similiar problem?
What is the ld error output?
>Sajjad: A symbolic link is like a Windows shortcut
A symlink is better than a shortcut since a shortcut can't be a directory in the middle of a windows path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2009 09:29 PM
тАО04-22-2009 09:29 PM
Re: softlink problem
I just checked, changing the link is absolutely useless, unless you want to upset swverify.
Since /opt/aCC/bin/cc is a hardlink to aCC, it should be exactly the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 03:21 AM
тАО04-23-2009 03:21 AM
Re: softlink problem
oracle@apollo$ make -f ins_rdbms.mk install
chmod 755 /u01/app/oracle/product/10.2.0.4/bin
rm -f oracle dbv tstshm maxmem orapwd dbfsize cursize genoci extproc extproc32 hsalloci hsots hsdepxa dgmgrl dumpsga mapsga osh sbttest expdp impdp imp exp sqlldr rman nid extjob extjobo genezi ikfod grdcscan /u01/app/oracle/product/10.2.0.4/rdbms/lib/ksms.s /u01/app/oracle/product/10.2.0.4/rdbms/lib/ksms.o
- Linking DB*Verify utility (dbv)
rm -f /u01/app/oracle/product/10.2.0.4/rdbms/lib/dbv
cc -Wl,+s -Wl,+n +DD64 -o /u01/app/oracle/product/10.2.0.4/rdbms/lib/dbv -L/u01/app/oracle/product/10.2.0.4/rdbms/lib/ -L/u01/app/oracle/product/10.2.0.4/lib/ /u01/app/oracle/product/10.2.0.4/rdbms/lib/s0kudbv.o /u01/app/oracle/product/10.2.0.4/rdbms/lib/defopt.o -ldbtools10 -lsnls10 -lunls10 -lnls10 -lclntsh `cat /u01/app/oracle/product/10.2.0.4/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /u01/app/oracle/product/10.2.0.4/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lmm -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /u01/app/oracle/product/10.2.0.4/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /u01/app/oracle/product/10.2.0.4/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /u01/app/oracle/product/10.2.0.4/lib/sysliblist` -lm `cat /u01/app/oracle/product/10.2.0.4/lib/sysliblist` -lm -lpthread -lpthread
ld: Mismatched ABI (not an ELF file) for -lclntsh, found /u01/app/oracle/product/10.2.0.4/lib//libclntsh.sl
Fatal error.
*** Error exit code 1
*****************************************
the file libclntsh.sl exists but it's empty
what does mismatched ABI mean ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 04:08 AM
тАО04-23-2009 04:08 AM
Re: softlink problem
A "Mismatched ABI (not an ELF file)" means that you are trying to mix 32-bit and 64-bit objects during linking. This is not allowed. The linker determines the "bitness" to use by the "bitness" of the first object.
In this case, it looks like '/u01/app/oracle/product/10.2.0.4/lib//libclntsh.sl' was erroneously selected.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 01:07 PM
тАО04-23-2009 01:07 PM
Re: softlink problem
ld: Mismatched ABI (not an ELF file) for -lclntsh, found /u01/app/oracle/product/10.2.0.4/lib//libclntsh.sl
What do you mean "manual" link?
What does file(1) show for that shlib? PA?
You need to add a -L path the only includes IPF shlibs.
Most likely this should be removed:
-L/u01/app/oracle/product/10.2.0.4/lib/
>JRF: A "Mismatched ABI (not an ELF file)" means that you are trying to mix 32-bit and 64-bit objects during linking.
Since this is Integrity, this isn't the issue. It is purely PA vs. IPF. And on Integrity, shlibs should end in .so.
>In this case, it looks like '/u01/app/oracle/product/10.2.0.4/lib//libclntsh.sl' was erroneously selected.
Yes.