Operating System - HP-UX
1752793 Members
6123 Online
108789 Solutions
New Discussion юеВ

Re: Samba binaries give wrong dynamic library path

 
Main Group
Advisor

Samba binaries give wrong dynamic library path

We had an urgent need to build the latest Samba for HP-UX. I managed to get the source compiled, but when I did I found that the binaries weren't able to locate a library (libwbclient.sl.0) it had properly installed under /opt/samba/lib. However, the binaries did run properly when I executed the commands from the build tree (in source3). I ran chatr on the binaries and it showed the following entry under the shared library list:

dynamic ./bin/libwbclient.sl.0

which explains why it ran successfully from the build tree. I don't see anything in the configure options that would explain why it ended up this way. (For example: I included '--libdir=/opt/samba/lib' during the configuration, and have '--prefix=/opt/samba'.)

Does anybody know if I can change the above chatr entry with the chatr command so that the binaries will dynamically link to the correct library at run time?

Thank you.
2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: Samba binaries give wrong dynamic library path

>if I can change the above chatr entry with the chatr command

No, chatr(1) doesn't make changes like that, typically there is no extra space.
You need to relink it properly. The first step is to see what was on the link line.
Main Group
Advisor

Re: Samba binaries give wrong dynamic library path

Okay I'll give that a try. Thank you.