1

What is the shared library linking path search algorithm for HP-UX (IPF-64Bit ) used while compiling with aCC ?

I am trying to build a project but it looks like SHLIB_PATH environment variable is never used for library searching. I've to explicitly specify the library locations using -L option while building.

Cerberuz
  • 155
  • 2
  • 15

1 Answers1

0

There is actually no SHLIB_PATH on IA64 but on PA-RISC. You should use standard LD_LIBRARY_PATH. Works for me quite well on 11.23 and 11.31.

Michael-O
  • 18,123
  • 6
  • 55
  • 121
  • I tried setting LD_LIBRARY_PATH to locations of libs also, still not working. – Cerberuz Sep 16 '13 at 19:04
  • Can you find the shared lib manually? More overy, why don't you recompile it with IA64N? – Michael-O Sep 17 '13 at 13:17
  • As far as I know, you cannot link a PA-RISC lib to a IA64 binary. You can only run PA-RISC binaries on IA64. – Michael-O Sep 17 '13 at 14:17
  • The file has been created in correctly. `sl` has been used for PA-RISC files. `so` is the new standard. Did you read the manpages of `aCC` how it searches for libs? Where is the lib located exactly? – Michael-O Sep 17 '13 at 15:53
  • Lib is in a user created directory having full permission. I looked into man page of `ld` instead of `aCC` and it seems like setting `LPATH` is working. Though still i can't find the default library search path. – Cerberuz Sep 17 '13 at 18:53
  • I found some more info here http://www.filibeto.org/unix/hp-ux/lib/dev-tools/linker-lib-ug/linkerdifferencesiapa.htm#linktimedifferences Acc. to it `.sl` is supported for compatibility in IA64. – Cerberuz Sep 17 '13 at 19:12