1753427 Members
4763 Online
108793 Solutions
New Discussion юеВ

Ia64 linker problem

 
Mehdi_1
Regular Advisor

Ia64 linker problem

Hi

I am trying to compile "pango-1.0.5" program in order to port gtk+2 on hpux-Ia64 platform. The program compiles fine on parisc-11.00 systems, But on ia64 (11.20) it gives the errror below.

ld: Can't find dependent library "./.libs/libpango-1.0.so"

This seems a easy problem, but in fact it is the problem with dynamic loading on the library above. The above library has been drag in to the link line through another library.

I 've change the dynamic loading in configure as shown below:

ia64*)
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
;;

But the program still fails to load the library.

Any idea is highly appreciated.

Thanks
4 REPLIES 4
Dietmar Konermann
Honored Contributor

Re: Ia64 linker problem

Maybe you need to specify the search path to the library explicitely with the -L option?

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Mehdi_1
Regular Advisor

Re: Ia64 linker problem

Hi

Thanks,
But that doesn't work. I 've add the full path to :
LDFLAGS, LIBRARY_PATH and LD_LIBRARY_PATH, But it still the same problem.
Steve Steel
Honored Contributor

Re: Ia64 linker problem

Hi

try to use +b path_list with libraries specified with the -l library or -l:library options.)


Regards

Steve Steel

Quote of the moment
-------------------
"We are drowning in information but starved for knowledge."
-- John Naisbitt
If you want truly to understand something, try to change it. (Kurt Lewin)
Mehdi_1
Regular Advisor

Re: Ia64 linker problem

I feel I need to explian the problem a bit more in details.

Suppose I got libA.sl, Then I build libB.sl:

ld $(some flages) -o libB.sl $(OBJECTS) ./.libs/libA.sl $(LIBS)

Then I try to build a binary:

gcc $(some flages) -o $(binary) $(object-files) -L$(full path)/libB.sl $(LIBS)

ld: Can't find dependent library "./.libs/libA.sl"

One obvious solution would be to use the full path to libA.sl when I am building libB.sl. But the process is done thruogh "libtool", and I can't find the in libtool to change that.

Thanks