Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
Highlighted
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.