- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl...
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
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
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
06-08-2004 07:50 PM
06-08-2004 07:50 PM
link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
We have installed gcc 3.3.3 on HPUX 11.11 on a L1000.
Oracle 9.2.0.1.0 is also installed.
If we compile with cc everything is ok. while compiling with gcc, at link time we have the following message :
/usr/local/pa64/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.3/../../../../hppa64-hp-hpux11.11/bin/ld: cannot find -l:libcl.sl
It is the same with those librairies :
-l:librt.sl -l:libnss_dns.1 -l:libdld.sl
The link librairies are :
"-L$ORACLE_HOME/lib/ -lclntsh `cat $ORACL
E_HOME/lib/ldflags` -L/lib/pa64 `cat $ORACLE_HOME/lib/sysliblist` -lm -lpthread
This correspond to :
-L/home/oracle/app/oracle/product/9.2.0.1.0/lib/ -lclntsh -lnbeq9 -lnhost9 -lnus9 -lnldap9 -lldapclnt9 -lnsslb9 -lnoname9 -lntcp9 -lntcps9 -lnsslb9 -lntcp9 -lntns9 -L/lib/pa64 -l:libcl.sl -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl -lm -lpthread
The compiler is 64bit compiler :
/usr/local/pa64/bin/gcc
LD_LIBRARY_PATH is :
$ORACLE_HOME/lib:/usr/local/pa64/lib
also tried :
$ORACLE_HOME/lib:/lib/pa20_64
The same makefile was working on another HP server HPUX11.00 with oracle 8.1.7 and
gcc version 3.2 20020708 (experimental)
Thanks for your reply,
Sincerely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 08:25 PM
06-08-2004 08:25 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
Could you check on your system wich version of LIBCL patch you are running ?
# swlist -l patch | grep -i libcl
Kind regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2004 08:32 PM
06-08-2004 08:32 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
Just check whether the libraries you are linking to are 64-bit and check the LD_LIBRARY_PATH to have /usr/lib/pa20_64 in it.
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2004 06:50 PM
06-09-2004 06:50 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
-lcl should work, and link against libcl.sl
If I recall, 64 bit gcc on HP-UX uses the GNU linker, not HP linker, and it will most probably not understand the previous syntax.
Harri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:26 PM
06-10-2004 09:26 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=610057
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:40 PM
06-10-2004 09:40 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
Thanks for your replies.
swlist -l patch | grep -i libcl
answers :
PHSS_28303 1.0 LIBCL patch
I've tried :LD_LIBRARY_PATH=have /usr/lib/pa20_64
-l:libcl.sl worked ok for previous version of gcc/lib/libcl.sl: PA-RISC1.1 shared library -not stripped
-lcl works but how do i do to replace
-l:libnss_dns.1 ?
remark : gcc -print-file-name=libcl.sl
gives /lib/libcl.sl and
file lib/libcl.sl send
/lib/libcl.sl: PA-RISC1.1 shared library -not stripped
instead of
file /lib/pa20_64/libcl/lib/pa20_64/libcl.sl: ELF-64 shared object file - PA-RISC 2.0 (LP64).sl
It seems to link with 32bits librairies because the path of lib contains /lib and not /lib/pa20_64
How do I override path of lib for gcc 64 bits ?
Thanks again,
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2004 04:16 AM
06-12-2004 04:16 AM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
you dont see this problem in PA32 because there is no gnu linker for PA32, and it seems that you configured PA64 gcc to use the gnu linker.
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 03:34 AM
06-18-2004 03:34 AM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
Thanks for your reply, but what can i do for -l:libnss_dns.1 ?
-lnss_dns.1 doesn't work.
Good Bye.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 05:56 PM
06-18-2004 05:56 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 06:02 PM
06-18-2004 06:02 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2004 03:21 AM
06-25-2004 03:21 AM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
use -lnss_dns . not specifying the '.1' should not be a problem since there will be a symlink to libnss_dns.1 as libnss_dns.sl
I've tried -lnss_dns and unfortunently it doesn't work .
I've checked on all the server, there is only libnss_dns.1 and not libnss_dns.sl on it.
Do I require some other installation to install this library (libnss_dns.sl).
I saw some information on page
http://devrsrc1.external.hp.com/STK/impacts/i255.html
which explains libnss_dns.sl exists.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2004 04:38 PM
06-25-2004 04:38 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
so simply replace -l:libnss_dns with the full path name - /usr/lib/libnss_dns.1 .
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2004 05:12 PM
06-25-2004 05:12 PM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
i think what the devresource page says is that the porting kit provides you that library. the symbolic link that i mentioned is needed in a development environment so that you can pass things like -lnss_dns to the linker. in the runtime its not a problem since the loader looks for the library by the recorded internal name.
in case of the hpux linker, the workaround is -l:libnss_dns.1. however that does not work with the gnu linker so you need to specify the full path (or make a symbolic link /usr/lib/pa20_64/libnss_dns.sl yourself, to point tp libnss_dns.1).
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2004 01:59 AM
06-26-2004 01:59 AM
Re: link gcc 3.3.3 HPUX 11.11 ld: cannot find -l:libcl.sl
Just temporarily move GNU ld out of the way (rename it to Gld or so) and try again with HP's ld
Enjoy, Have FUN! H.Merijn