<?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 libiomp5.so: undefined reference to 'pthread_atfork' compiling  in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/libiomp5-so-undefined-reference-to-pthread-atfork-compiling/m-p/786555#M2063</link>
    <description>Hi NDL, &lt;BR /&gt;&lt;BR /&gt;The version of libpthreadshould benot problem. Mineare even lower than your's: &lt;BR /&gt;libpthread-2.5.so libpthread.so.0&lt;BR /&gt;&lt;BR /&gt;Could you please go through the makefile to see if there are some place where -lpthreadis before -liomp5? &lt;BR /&gt;&lt;BR /&gt;I mean&lt;BR /&gt;for example,it will getundefined reference to `pthread_atfork', if the command line is like &lt;BR /&gt;&lt;BR /&gt;&amp;gt;g++ main.cpp -omain -ldl &lt;STRONG&gt;-lpthread&lt;/STRONG&gt; -L/opt/intel/ipp/lib/intel64 -lipps -lippcore -L/opt/intel/composerxe-2011.1.036/compiler/lib/intel64 -liomp5 &lt;BR /&gt;&lt;BR /&gt;fix it by&lt;BR /&gt;&lt;BR /&gt;&amp;gt;g++ main.cpp -omain -ldl -L/opt/intel/ipp/lib/intel64 -lipps -lippcore -L/opt/intel/composerxe-2011.1.036/compiler/lib/intel64 -liomp5 &lt;STRONG&gt;-lpthread&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying &lt;BR /&gt;</description>
    <pubDate>Fri, 02 Jul 2010 08:25:42 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2010-07-02T08:25:42Z</dc:date>
    <item>
      <title>libiomp5.so: undefined reference to 'pthread_atfork' compiling openssl on intel64/emt64</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/libiomp5-so-undefined-reference-to-pthread-atfork-compiling/m-p/786554#M2062</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am attempting to compile openssl using the patch to allow the openssl functions to link against the special crypto functions in ipp (so that I can leverage the built in AES instructions on my Westmere chip.) I've been following the guide here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/boosting-openssl-aes-encryption-with-intel-ipp/" target="_blank"&gt;http://software.intel.com/en-us/articles/boosting-openssl-aes-encryption-with-intel-ipp/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Everything is working great except that when I try to compile after patching openssl, at the step:&lt;BR /&gt;&lt;BR /&gt;./build_ssl_ipp_sh. openssl-0.9.8j linuxemt64&lt;BR /&gt;&lt;BR /&gt;I get the the following error:&lt;BR /&gt;&lt;BR /&gt;ar: creating ../libssl.a&lt;BR /&gt;/opt/intel/Compiler/11.1/072/lib/intel64/libiomp5.so: undefined reference to `pthread_atfork'&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;make[2]: *** [link_app.gnu] Error 1&lt;BR /&gt;make[1]: *** [openssl] Error 2&lt;BR /&gt;make: *** [build_apps] Error 1&lt;BR /&gt;/opt/intel/Compiler/11.1/072/lib/intel64/libiomp5.so: undefined reference to `pthread_atfork'&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;make[2]: *** [link_app.gnu] Error 1&lt;BR /&gt;make[1]: *** [bntest] Error 2&lt;BR /&gt;make: *** [tests] Error 2&lt;BR /&gt;&lt;BR /&gt;I've gone through the makefiles and tried changing -lpthread to -pthread, but that didn't solve the problem. Any help? I'm using the ipp that came with my Linux Intel Professional C++ Compiler Suite 11.1. Here is my $LD_LIBRARY_PATH:&lt;BR /&gt;&lt;BR /&gt;/opt/intel/Compiler/11.1/072/lib/intel64:/opt/intel/Compiler/11.1/072/ipp/em64t/sharedlib:/opt/intel/Compiler/11.1/072/mkl/lib/em64t:/opt/intel/Compiler/11.1/072/tbb/intel64/cc4.1.0_libc2.4_kernel2.6.16.21/lib:/lib64&lt;BR /&gt;&lt;BR /&gt;I've installed everything using the steps in the aforementioned link. Doing a search on this error, I see that others have run into the same problem-- though usually it is solved by adding -lpthread. What I'm wondering is if I have to add it anywhere else in the make process, but I can't figure out where because it's part of $LIBRARIES that seems to get pulled into everything for linking.&lt;BR /&gt;&lt;BR /&gt;The closest I found to a solution is:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/how-to-build-ipp-application-in-linux-environment/" target="_blank"&gt;http://software.intel.com/en-us/articles/how-to-build-ipp-application-in-linux-environment/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;but that didn't shed any light. I've confirmed that /lib64 indeed contains:&lt;BR /&gt;&lt;BR /&gt;libpthread-2.9.so&lt;BR /&gt;libpthread.so.0&lt;BR /&gt;&lt;BR /&gt;Do I need a newer version of libpthread?&lt;BR /&gt;&lt;BR /&gt;Thanks, any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;NDL&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Jul 2010 05:56:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/libiomp5-so-undefined-reference-to-pthread-atfork-compiling/m-p/786554#M2062</guid>
      <dc:creator>Nick_Lindberg</dc:creator>
      <dc:date>2010-07-02T05:56:47Z</dc:date>
    </item>
    <item>
      <title>libiomp5.so: undefined reference to 'pthread_atfork' compiling</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/libiomp5-so-undefined-reference-to-pthread-atfork-compiling/m-p/786555#M2063</link>
      <description>Hi NDL, &lt;BR /&gt;&lt;BR /&gt;The version of libpthreadshould benot problem. Mineare even lower than your's: &lt;BR /&gt;libpthread-2.5.so libpthread.so.0&lt;BR /&gt;&lt;BR /&gt;Could you please go through the makefile to see if there are some place where -lpthreadis before -liomp5? &lt;BR /&gt;&lt;BR /&gt;I mean&lt;BR /&gt;for example,it will getundefined reference to `pthread_atfork', if the command line is like &lt;BR /&gt;&lt;BR /&gt;&amp;gt;g++ main.cpp -omain -ldl &lt;STRONG&gt;-lpthread&lt;/STRONG&gt; -L/opt/intel/ipp/lib/intel64 -lipps -lippcore -L/opt/intel/composerxe-2011.1.036/compiler/lib/intel64 -liomp5 &lt;BR /&gt;&lt;BR /&gt;fix it by&lt;BR /&gt;&lt;BR /&gt;&amp;gt;g++ main.cpp -omain -ldl -L/opt/intel/ipp/lib/intel64 -lipps -lippcore -L/opt/intel/composerxe-2011.1.036/compiler/lib/intel64 -liomp5 &lt;STRONG&gt;-lpthread&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying &lt;BR /&gt;</description>
      <pubDate>Fri, 02 Jul 2010 08:25:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/libiomp5-so-undefined-reference-to-pthread-atfork-compiling/m-p/786555#M2063</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-07-02T08:25:42Z</dc:date>
    </item>
    <item>
      <title>libiomp5.so: undefined reference to 'pthread_atfork' compiling</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/libiomp5-so-undefined-reference-to-pthread-atfork-compiling/m-p/786556#M2064</link>
      <description>Ying,&lt;BR /&gt;&lt;BR /&gt;Yes, I've checked for that-- I will go double check again!&lt;BR /&gt;&lt;BR /&gt;Thanks for your response--&lt;BR /&gt;NDL</description>
      <pubDate>Fri, 02 Jul 2010 15:53:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/libiomp5-so-undefined-reference-to-pthread-atfork-compiling/m-p/786556#M2064</guid>
      <dc:creator>Nick_Lindberg</dc:creator>
      <dc:date>2010-07-02T15:53:15Z</dc:date>
    </item>
  </channel>
</rss>

