Operating System - HP-UX
1751819 Members
4937 Online
108782 Solutions
New Discussion юеВ

Re: gcc 3.3.3 link HPUX 11.11 ld: cannot find -l:libcl.sl

 
bruneau
Occasional Advisor

gcc 3.3.3 link HPUX 11.11 ld: cannot find -l:libcl.sl

Hello,

I've got gcc for PA-RISC 3.3.3 package size 11.iv1 parisc installed on a L1000
I also have ORACLE installed on this server :
version 9.2.0.1.0

If I compile with a cc compiler, everything is ok.
If I compile with 64 bit gcc compiler I've the following problem :
/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 -l:librt.sl,
-l:libnss_dns.1 and -l:libdld.sl



the compiler is
"rm -f *.lis && rm -f *.pc && /usr/local/pa64/bin/gcc"

the linker is
"/usr/local/pa64/bin/gcc "

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/local/pa64/lib

link option : -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:libcl.sl -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl -lm -lpthread
corresponding to :
-L$ORACLE_HOME/lib/ -lclntsh `cat $ORACL
E_HOME/lib/ldflags` `cat $ORACLE_HOME/lib/sysliblist` -lm -lpthread

the source files is written in C.

the same application with gcc version 3.2 20020708 (experimental) , oracle 8.1.7, HP 11.00 compile fine (installed on another server).

Could you explain me what I missed ?

Sincerely
Bernard

xbruneau
4 REPLIES 4
H.Merijn Brand (procura
Honored Contributor

Re: gcc 3.3.3 link HPUX 11.11 ld: cannot find -l:libcl.sl

Change that to

LD_LIBRARY_PATH=/usr/lib/pa20_64:$ORACLE_HOME/lib:/usr/local/pa64/lib

and try again

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Manish Srivastava
Trusted Contributor

Re: gcc 3.3.3 link HPUX 11.11 ld: cannot find -l:libcl.sl

Hi,

Can you do a file on the libraries to make sure that they are 64-bit libraries.


manish
H.Merijn Brand (procura
Honored Contributor

Re: gcc 3.3.3 link HPUX 11.11 ld: cannot find -l:libcl.sl

or add -L/usr/lib/pa20_64 to the loader flags ($LDFLAGS)

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
ranganath ramachandra
Esteemed Contributor

Re: gcc 3.3.3 link HPUX 11.11 ld: cannot find -l:libcl.sl

gcc is using the gnu ld. i doubt whether the gnu ld understands the -l:libname.sl syntax. you could probably change -l:librt.sl to -lrt etc and still get the gnu linker to link in only shared libraries.

with the hpux linker, the -l: format is used to override the default shared library lookup or forced archived library lookup when using the linker option "-a archive". if you have to do this i guess you will have to specify the full path for the library (or say -L/usr/lib/pa20_64 librt.sl?). so you need to change your link line.
 
--
ranga
[i work for hpe]

Accept or Kudo