<?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 Problem Porting DCE Threaded Code to POSIX Threaded Code in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-porting-dce-threaded-code-to-posix-threaded-code/m-p/2679100#M723153</link>
    <description>I'm having difficulty with this port. The code changes were fairly straight forward but the programs are acting up. I always run into a problem with the first pthread_* call. In one case it is a pthread_once that never executes the initialization function. In another it is a bus error (core dump) as soon as I run the pthread_attr_init function. Does anyone have any suggestions on what to consider (includes, paths, libraries...)? &lt;BR /&gt;&lt;BR /&gt;we are using a DCE cell and here is a typical compile: &lt;BR /&gt;&lt;BR /&gt;/usr/bin/cc -I../util -I/usr/include -I/usr/include/dce -I/usr/include/reentrant -Aa -D_POSIX_SOURCE -D_HPUX_SOURCE -D_REENTRANT -D_POSIX_D10_THREADS +z &lt;BR /&gt;-v -g -c signal.c &lt;BR /&gt;&lt;BR /&gt;Here is a build for a shared library: &lt;BR /&gt;&lt;BR /&gt;ld +h libwgutil.sl -b -E -L/usr/local/lib -L. -L/wgtest/ctp/lib -L/wgtest/phoenix/sys/shared/lib -L/orahome/app/oracle/product/8.1.7/lib -L/usr/local/li &lt;BR /&gt;b -ldcekt -lpthread -o libwgutil.sl attribute.o buffer.o condition.o config.o dispatcher.o environment.o llist.o reference.o signal.o &lt;BR /&gt;</description>
    <pubDate>Fri, 08 Mar 2002 18:22:06 GMT</pubDate>
    <dc:creator>Courtney Brown_1</dc:creator>
    <dc:date>2002-03-08T18:22:06Z</dc:date>
    <item>
      <title>Problem Porting DCE Threaded Code to POSIX Threaded Code</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-porting-dce-threaded-code-to-posix-threaded-code/m-p/2679100#M723153</link>
      <description>I'm having difficulty with this port. The code changes were fairly straight forward but the programs are acting up. I always run into a problem with the first pthread_* call. In one case it is a pthread_once that never executes the initialization function. In another it is a bus error (core dump) as soon as I run the pthread_attr_init function. Does anyone have any suggestions on what to consider (includes, paths, libraries...)? &lt;BR /&gt;&lt;BR /&gt;we are using a DCE cell and here is a typical compile: &lt;BR /&gt;&lt;BR /&gt;/usr/bin/cc -I../util -I/usr/include -I/usr/include/dce -I/usr/include/reentrant -Aa -D_POSIX_SOURCE -D_HPUX_SOURCE -D_REENTRANT -D_POSIX_D10_THREADS +z &lt;BR /&gt;-v -g -c signal.c &lt;BR /&gt;&lt;BR /&gt;Here is a build for a shared library: &lt;BR /&gt;&lt;BR /&gt;ld +h libwgutil.sl -b -E -L/usr/local/lib -L. -L/wgtest/ctp/lib -L/wgtest/phoenix/sys/shared/lib -L/orahome/app/oracle/product/8.1.7/lib -L/usr/local/li &lt;BR /&gt;b -ldcekt -lpthread -o libwgutil.sl attribute.o buffer.o condition.o config.o dispatcher.o environment.o llist.o reference.o signal.o &lt;BR /&gt;</description>
      <pubDate>Fri, 08 Mar 2002 18:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-porting-dce-threaded-code-to-posix-threaded-code/m-p/2679100#M723153</guid>
      <dc:creator>Courtney Brown_1</dc:creator>
      <dc:date>2002-03-08T18:22:06Z</dc:date>
    </item>
  </channel>
</rss>

