<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Difficulty with shared objects in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033455#M757429</link>
    <description>&lt;BR /&gt;Hello Fred,&lt;BR /&gt;&lt;BR /&gt;I'm afraid I have little or nothing of value to add to the question itself but I just wanted to compliment you on an exemplary post. Very refreshing!&lt;BR /&gt;&lt;BR /&gt;All the details which seem relevant yet not too much. Not just one-line, man-page question, nor a book. Rigth in the middle.&lt;BR /&gt;And great attitude: &lt;BR /&gt;- Not assuming the system is broken.&lt;BR /&gt;- Assuming you need to provide more details.&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;As for the problem, I was going to suggest trace or truss, but you already did that.&lt;BR /&gt;&lt;BR /&gt;How about using ldd on all images in the chain? Maybe the primary image can be found (is allowed to be found!) but the secondary image which it relies on has a problem?!&lt;BR /&gt;&lt;BR /&gt;My swag for the underlying issue is protection/permission, as you already hint also. Those -s mode bits ?!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Mar 2007 17:53:29 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2007-03-12T17:53:29Z</dc:date>
    <item>
      <title>Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033454#M757428</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have used these forums for a while for help on a number of HP-UX related issues; this is my first time to actually post.  I'm a relative newcomer to HP-UX.&lt;BR /&gt;&lt;BR /&gt;System: IA64 B39010B running 11.23i (v2)&lt;BR /&gt;Compiler: aCC/cc A.06.13&lt;BR /&gt;&lt;BR /&gt;I am building a piece of software that integrates with OV8 &amp;amp; NNM 7.51.&lt;BR /&gt;&lt;BR /&gt;The executables and custom .so's build without problem.  The executables run.  However, when I trace the problem, shl_load or dlopen (i've used both) tell me it can't find the library.&lt;BR /&gt;&lt;BR /&gt;I compiled with +s, and had SHLIB_PATH and LD_LIBRARY_PATH populated with the path to the library.  I have verified that there are no typo's.  Chatr tells me that it will used LD_LIBRARY_PATH as its primary, and SHLIB_PATH as its seconday source for searching for .so's for the executable.  &lt;BR /&gt;&lt;BR /&gt;The exe actually takes the library name as a parameter, and i have put the full path in with the name.&lt;BR /&gt;&lt;BR /&gt;What am i doing wrong? &lt;BR /&gt;&lt;BR /&gt;If you need more info, let me know and I will post it.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;BR /&gt;&lt;BR /&gt;Fred</description>
      <pubDate>Mon, 12 Mar 2007 17:30:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033454#M757428</guid>
      <dc:creator>Fred Vogel</dc:creator>
      <dc:date>2007-03-12T17:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033455#M757429</link>
      <description>&lt;BR /&gt;Hello Fred,&lt;BR /&gt;&lt;BR /&gt;I'm afraid I have little or nothing of value to add to the question itself but I just wanted to compliment you on an exemplary post. Very refreshing!&lt;BR /&gt;&lt;BR /&gt;All the details which seem relevant yet not too much. Not just one-line, man-page question, nor a book. Rigth in the middle.&lt;BR /&gt;And great attitude: &lt;BR /&gt;- Not assuming the system is broken.&lt;BR /&gt;- Assuming you need to provide more details.&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;As for the problem, I was going to suggest trace or truss, but you already did that.&lt;BR /&gt;&lt;BR /&gt;How about using ldd on all images in the chain? Maybe the primary image can be found (is allowed to be found!) but the secondary image which it relies on has a problem?!&lt;BR /&gt;&lt;BR /&gt;My swag for the underlying issue is protection/permission, as you already hint also. Those -s mode bits ?!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2007 17:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033455#M757429</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-12T17:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033456#M757430</link>
      <description>&amp;gt;shl_load or dlopen tell me it can't find the library.  I compiled with +s, and had SHLIB_PATH ...&lt;BR /&gt;&lt;BR /&gt;shl_load will not look at SHLIB_PATH or LD_LIBRARY_PATH unless you OR in DYNAMIC_PATH.  I'm not sure about dlopen.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The exe actually takes the library name as a parameter, and i have put the full path in with the name.&lt;BR /&gt;&lt;BR /&gt;If you pass the full path, then my comment above isn't the issue.&lt;BR /&gt;&lt;BR /&gt;You may want to export LD_LIBRARY_PATH then invoke ldd on your shared lib.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Hein: I just wanted to compliment you on an exemplary post.&lt;BR /&gt;&lt;BR /&gt;The only problem is the subject.  These are shared libs not shared objects on HP-UX.  ;-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Hein: I was going to suggest trace or truss, but you already did that.&lt;BR /&gt;&lt;BR /&gt;I see no evidence of the use of tusc??&lt;BR /&gt;&lt;BR /&gt;You may want to use tusc on that ldd I mention above.  That would show you all of the opens it is doing to find your shlib.&lt;BR /&gt;&lt;BR /&gt;Note: +s is not honored for SUID applications.</description>
      <pubDate>Mon, 12 Mar 2007 22:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033456#M757430</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-12T22:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033457#M757431</link>
      <description>Thank you both for responding.  Sorry for the delay in response.&lt;BR /&gt;&lt;BR /&gt;As I mentioned I'm fairly new to working in the HP-UX environment.  As such there are a lot of tools I don't know about.&lt;BR /&gt;&lt;BR /&gt;For example, I had never heard of tusc. I also had not known to use the -r option for LDD.&lt;BR /&gt;&lt;BR /&gt;As a result of this, I have been able to find problems and fix them.  &lt;BR /&gt;&lt;BR /&gt;I am still having a problem buiding one library.  It says there are like 400+ unsat symbols.  Most of these are things that would be define in headers, like _getrlimit64 and __thread_getspecific.  &lt;BR /&gt;&lt;BR /&gt;I do not understand why these are not being picked up.  Can you assist with this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Fred</description>
      <pubDate>Thu, 15 Mar 2007 09:54:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033457#M757431</guid>
      <dc:creator>Fred Vogel</dc:creator>
      <dc:date>2007-03-15T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033458#M757432</link>
      <description>Also, forgot to ask; what are +s bits?&lt;BR /&gt;&lt;BR /&gt;I would like to clarify what I meant by trace in my first post.  I crawled throuh it on the WDB.&lt;BR /&gt;&lt;BR /&gt;Thank you once again.&lt;BR /&gt;&lt;BR /&gt;Fred</description>
      <pubDate>Thu, 15 Mar 2007 10:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033458#M757432</guid>
      <dc:creator>Fred Vogel</dc:creator>
      <dc:date>2007-03-15T10:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033459#M757433</link>
      <description>&amp;gt;I am still having a problem buiding one library. It says there are like 400+ unsat symbols. Most of these are things that would be define in headers, like _getrlimit64 and __thread_getspecific.&lt;BR /&gt;&lt;BR /&gt;You ignore those and assume they are defined in libc and libpthread.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I do not understand why these are not being picked up.&lt;BR /&gt;&lt;BR /&gt;Typically shared libs don't need dependent libs if the executable has them already.  In particular you should never add -lc to a shared lib.  If you add it, then use ldd -r, and nothing is left, you're fine.  Then you can then remove -lc.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;what are +s bits?&lt;BR /&gt;&lt;BR /&gt;When you link with +s, you tell dld it can can look at SHLIB_PATH to find runtime libs.&lt;BR /&gt;&lt;BR /&gt;You haven't assigned any points yet.  Please read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Thu, 15 Mar 2007 21:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033459#M757433</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-15T21:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033460#M757434</link>
      <description>Fair enough, I have read the guidelines and assigned points.  I have been too busy today to follow-up on your last suggestion.  I'm pretty sure I know what is going to happen; but when I run it I will post what it says rather than what I think it is going to say.&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;BR /&gt;&lt;BR /&gt;Fred</description>
      <pubDate>Fri, 16 Mar 2007 14:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033460#M757434</guid>
      <dc:creator>Fred Vogel</dc:creator>
      <dc:date>2007-03-16T14:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033461#M757435</link>
      <description>&amp;gt;read the guidelines and assigned points&lt;BR /&gt;&lt;BR /&gt;I don't see any evidence of that??&lt;BR /&gt;&lt;BR /&gt;&amp;gt;what are +s bits?&lt;BR /&gt;&lt;BR /&gt;Ah, Hein said: Those -s mode bits?&lt;BR /&gt;He may be talking about SUID bits?  These cause the SHLIB_PATH to be ignored, as a security feature.</description>
      <pubDate>Fri, 16 Mar 2007 22:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033461#M757435</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-16T22:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033462#M757436</link>
      <description>Ok...i didn't see the submit points button and they did not get submitted.  Thank you for your help.  I'm going to close this thread and then create a new thread with a more specific question, when i figure out what that will be.</description>
      <pubDate>Mon, 19 Mar 2007 15:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033462#M757436</guid>
      <dc:creator>Fred Vogel</dc:creator>
      <dc:date>2007-03-19T15:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty with shared objects</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033463#M757437</link>
      <description>Per previous response</description>
      <pubDate>Mon, 19 Mar 2007 15:57:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difficulty-with-shared-objects/m-p/5033463#M757437</guid>
      <dc:creator>Fred Vogel</dc:creator>
      <dc:date>2007-03-19T15:57:53Z</dc:date>
    </item>
  </channel>
</rss>

