Operating System - HP-UX
1753288 Members
5826 Online
108792 Solutions
New Discussion юеВ

Issue(s) with aCC/ld and 64 bits SharedLibs ?

 
Hamerlik Christophe
Occasional Advisor

Issue(s) with aCC/ld and 64 bits SharedLibs ?

Hi,

I'm trying to link a 64bits SharedLib with an other 64 bits Sharedlib (by using its internal name).

It works with 32 bits Shared lib, but not with 64 bits shared lib.

The problem occurrs during the link step and I get a message :
ld: Can't find dependent library ""

Isn't there any issue here ?

Many thanks,
Regards

Christophe
I tried but...
3 REPLIES 3
Steve Steel
Honored Contributor

Re: Issue(s) with aCC/ld and 64 bits SharedLibs ?

Hi


Increase maxfiles to solve it:

Use kernel regen or

ulimit -Sn nnn // to set size


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Hamerlik Christophe
Occasional Advisor

Re: Issue(s) with aCC/ld and 64 bits SharedLibs ?

Hi Steve,

First, thanks for your feed-backs.

I tried to increase the value of maxfiles, but... it does not help me and I still get the same error message from ld...

Isn't there any problem by calling external shared libs with their "internal name" for 64bits SharedLibs ?

Thanks,

Christophe
I tried but...
Steve Steel
Honored Contributor

Re: Issue(s) with aCC/ld and 64 bits SharedLibs ?

Create a shared library with an internal name:



ld -b -o libfoo1.1 foo1.o foo2.o +h libfoo1.1



On 32 bit, link a program with libfunc.sl but use the archive version of the C library. Specify the immediate binding mode together with the nonfatal modifier and allow verbose diagnostics to be displayed:



ld /usr/ccs/lib/crt0.o -B immediate -B nonfatal -B verbose \
program.o -L . -lfunc -a archive -lc



To do this on 64 bit:



ld -B immediate -B nonfatal -B verbose \
program.o -L . -lfunc -a archive -lc

Are you sur eof the library

Try the +compat option

see
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90655/B2355-90655_top.html&con=/hpux/onlinedocs/B2355-90655/00/00/53-con.html&toc=/hpux/onlinedocs/B2355-90655/00/00/53-toc.html&searchterms=ld&queryid=20020719-042347

http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90655/B2355-90655_top.html&con=/hpux/onlinedocs/B2355-90655/00/00/11-con.html&toc=/hpux/onlinedocs/B2355-90655/00/00/11-toc.html&searchterms=compat&queryid=20020719-042656


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)