<?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: problem using posix_threads in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164857#M456933</link>
    <description>&amp;gt;Even though that I send a integer from the pthread_exit&lt;BR /&gt;&lt;BR /&gt;No, you send a void* to pthread_exit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;pthread_join receive this as an integer&lt;BR /&gt;&lt;BR /&gt;No, it receives it as a void*.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;it seams that the type is somewhat long anyway?&lt;BR /&gt;&lt;BR /&gt;long and void* have the same size.</description>
    <pubDate>Fri, 20 Mar 2009 10:30:01 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-03-20T10:30:01Z</dc:date>
    <item>
      <title>problem using posix_threads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164854#M456930</link>
      <description>The error I got when I compile the code are:&lt;BR /&gt;&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_Unwind_SetIP" in file /usr/lib/hpux64/libCsup.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_Unwind_SetGR" in file /usr/lib/hpux64/libCsup.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_Unwind_GetIP" in file /usr/lib/hpux64/libCsup.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_Unwind_GetGR" in file /usr/lib/hpux64/libCsup.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_get_rsebs" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_Unwind_RaiseException" in file /usr/lib/hpux64/libCsup.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_get_cfm" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_get_frs" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_set_rsebs" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_get_grs" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_set_frs" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_set_grs" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_Unwind_GetRegionStart" in file /usr/lib/hpux64/libCsup.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_get_um" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_get_ar" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_get_cr" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_set_um" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_get_ip" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "__uc_set_ip" in file /usr/lib/hpux64/libunalign.so.1&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_Unwind_Resume" in file /usr/lib/hpux64/libApiDS64.sl&lt;BR /&gt;ld: (Warning) Unsatisfied symbol "_Unwind_GetLanguageSpecificData" in file /usr/lib/hpux64/libCsup.so.1&lt;BR /&gt;&lt;BR /&gt;And the compiling arguments I am using are:&lt;BR /&gt;&lt;BR /&gt;cc -o mysqlbackup $(FILES) $(INC) -lpthread -mt -D_REENTRANT -I. -O +DD64 +DSitanium2  /usr/lib/hpux64/libApiDS64.sl&lt;BR /&gt;&lt;BR /&gt;This works fine on none HP-UX systems, but on HP-UX, the function:&lt;BR /&gt;pthread_join( threads[loop*2], (void **) &amp;amp;rc[loop*2]);&lt;BR /&gt;&lt;BR /&gt;core dumps, and replacing this with:&lt;BR /&gt;&lt;BR /&gt;pthread_join( threads[loop*2+1], (void **) NULL);&lt;BR /&gt;&lt;BR /&gt;causes the TSM to have corrupted data...&lt;BR /&gt;&lt;BR /&gt;Please help me, I am stucked here.&lt;BR /&gt;&lt;BR /&gt;Regards Tomas</description>
      <pubDate>Thu, 19 Mar 2009 11:21:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164854#M456930</guid>
      <dc:creator>Make software boundle</dc:creator>
      <dc:date>2009-03-19T11:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem using posix_threads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164855#M456931</link>
      <description>&amp;gt;The error I got when I compile the code are:&lt;BR /&gt;&lt;BR /&gt;These are link errors, not compile.  This indicates you haven't read how to mix C with aC++ shlibs:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/14487/distributing.htm#linking" target="_blank"&gt;http://docs.hp.com/en/14487/distributing.htm#linking&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In particular, -lunwind is missing.  Or you should be linking with aCC.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;And the compiling arguments I am using are:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/hpux64/libApiDS64.sl should be replaced by just -lApiDS64.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;on HP-UX, the function core dumps:&lt;BR /&gt;pthread_join(threads[loop*2], (void**)&amp;amp;rc[loop*2]);&lt;BR /&gt;&lt;BR /&gt;What is the type of rc?  It better be a void*  or long array/pointer.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;replacing this with:&lt;BR /&gt;pthread_join(threads[loop*2+1], (void**)NULL);&lt;BR /&gt;&lt;BR /&gt;I'm not sure why you are using loop*2+1?&lt;BR /&gt;It is ok that value_ptr is NULL.</description>
      <pubDate>Fri, 20 Mar 2009 02:41:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164855#M456931</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-20T02:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem using posix_threads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164856#M456932</link>
      <description>Thanks Dennis,&lt;BR /&gt;&lt;BR /&gt;I changed the linking to what you mentioned, which removed the errors above.&lt;BR /&gt;And also the "hint" you gaved me with the "join" problems is now solved.&lt;BR /&gt;&lt;BR /&gt;Even though that I send a integer from the pthread_exit, and that the pthread_join recieve this as an integer, it seams that the type is somewhat long anyway?&lt;BR /&gt;Maybee I should have put some castings in the exit and join.&lt;BR /&gt;&lt;BR /&gt;Anyway I changed the recieving "rc[]" from an integer type to a long which solved that part.&lt;BR /&gt;&lt;BR /&gt;Now the remaining problem looks more as a ibm TSM related problem.&lt;BR /&gt;&lt;BR /&gt;Many many thanks</description>
      <pubDate>Fri, 20 Mar 2009 06:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164856#M456932</guid>
      <dc:creator>Make software boundle</dc:creator>
      <dc:date>2009-03-20T06:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem using posix_threads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164857#M456933</link>
      <description>&amp;gt;Even though that I send a integer from the pthread_exit&lt;BR /&gt;&lt;BR /&gt;No, you send a void* to pthread_exit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;pthread_join receive this as an integer&lt;BR /&gt;&lt;BR /&gt;No, it receives it as a void*.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;it seams that the type is somewhat long anyway?&lt;BR /&gt;&lt;BR /&gt;long and void* have the same size.</description>
      <pubDate>Fri, 20 Mar 2009 10:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164857#M456933</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-20T10:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem using posix_threads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164858#M456934</link>
      <description>Everything work now after the last casting corrections in the code.&lt;BR /&gt;Many thanks.</description>
      <pubDate>Fri, 20 Mar 2009 13:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164858#M456934</guid>
      <dc:creator>Make software boundle</dc:creator>
      <dc:date>2009-03-20T13:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem using posix_threads</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164859#M456935</link>
      <description>&amp;gt;Everything work now&lt;BR /&gt;&lt;BR /&gt;If you are happy with your answers, please read the following about reopening threads and assigning points:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#41" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#41&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Fri, 20 Mar 2009 18:48:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-using-posix-threads/m-p/5164859#M456935</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-20T18:48:29Z</dc:date>
    </item>
  </channel>
</rss>

