<?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: Exec format error when loading a .so module into Apache in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333047#M189434</link>
    <description>Ranganath,&lt;BR /&gt;I tried the workaround, but still got the same results.&lt;BR /&gt;I had already tried to compile Apache with -lcl option, but gave it up due to some other problems, I will try this again. However, I thought that's what the "--enable-shared=max --enable-module=most" option on the configure was supposed to do.&lt;BR /&gt;&lt;BR /&gt;Thanks for your assistance, I'll let you know if it works. In the meantime, if you have any other suggetions, I'd appreciate it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patricia.&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Jul 2004 12:07:46 GMT</pubDate>
    <dc:creator>Patricia Cordeiro</dc:creator>
    <dc:date>2004-07-16T12:07:46Z</dc:date>
    <item>
      <title>Exec format error when loading a .so module into Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333045#M189432</link>
      <description>Hi,&lt;BR /&gt;I'm installing SAP Content Server on a HP-UX server. SAP's Content Server requires 64-Bit Apache, so I downloaded Apache's source and compile it using 64-bit gcc as follows:&lt;BR /&gt;&lt;BR /&gt;export PATH=$PATH:/usr/lib/pa20_64:/usr/local/pa64/bin&lt;BR /&gt;export CFLAGS="+DA2.0W -Ae"&lt;BR /&gt;&lt;BR /&gt;./configure --prefix=/opt/sdccs/apache --enable-shared=max --enable-module=most&lt;BR /&gt;make&lt;BR /&gt;make install&lt;BR /&gt;&lt;BR /&gt;After that, I installed SAP Content Server, wich altered Apache's original httpd.conf file with one wich would load a shared module called mod_sapcs.so (also a 64-bit shared object). &lt;BR /&gt;&lt;BR /&gt;With Apache's original httpd.conf, httpd daemon starts without problem, but with the httpd.conf I get the error:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/pa20_64/dld.sl: Cannot dlopen load module '/usr/lib/pa20_64/libcl.2' be&lt;BR /&gt;cause it contains thread specific data.&lt;BR /&gt;Syntax error on line 205 of /opt/sdccs/apache/etc/httpd.conf:&lt;BR /&gt;Cannot load /opt/sdccs/apache/libexec/mod_sapcs.so into server: Exec format erro&lt;BR /&gt;r&lt;BR /&gt;./apachectl start: httpd could not be started&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patricia.</description>
      <pubDate>Thu, 15 Jul 2004 18:01:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333045#M189432</guid>
      <dc:creator>Patricia Cordeiro</dc:creator>
      <dc:date>2004-07-15T18:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error when loading a .so module into Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333046#M189433</link>
      <description>shared libraries which contain thread local storage cannot be dynamically loaded by programs (with dlopen/shl_load) - i guess that is documented in the dlopen/shl_load man pages.&lt;BR /&gt;&lt;BR /&gt;a workaround is to either link the program with this shared library or to use LD_PRELOAD or LD_PRELOAD_ONCE so that this shared library is loaded at program startup.&lt;BR /&gt;&lt;BR /&gt;the first approach requires that you modify the makefile (include -lcl in the link line) and relink httpd.&lt;BR /&gt;&lt;BR /&gt;for the second approach, you can simply set LD_PRELOAD=/usr/lib/pa20_64/libcl.2 (or LD_PRELOAD_ONCE=/usr/lib/pa20_64/libcl.2) in the shell where the httpd is to be started. both are expected to contain a colon-delimited list of shared library paths, so if they are already set, you just need to add libcl.2 at the right position : e.g. if mod_sapcs.so is dlopen'ing libcl.2 and mod_sapcs.so is also being preloaded, you need libcl.2 before mod_sapcs.so in LD_PRELOAD. i guess you can arrive at the working sequence by trial and error.</description>
      <pubDate>Fri, 16 Jul 2004 01:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333046#M189433</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2004-07-16T01:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error when loading a .so module into Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333047#M189434</link>
      <description>Ranganath,&lt;BR /&gt;I tried the workaround, but still got the same results.&lt;BR /&gt;I had already tried to compile Apache with -lcl option, but gave it up due to some other problems, I will try this again. However, I thought that's what the "--enable-shared=max --enable-module=most" option on the configure was supposed to do.&lt;BR /&gt;&lt;BR /&gt;Thanks for your assistance, I'll let you know if it works. In the meantime, if you have any other suggetions, I'd appreciate it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patricia.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jul 2004 12:07:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333047#M189434</guid>
      <dc:creator>Patricia Cordeiro</dc:creator>
      <dc:date>2004-07-16T12:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error when loading a .so module into Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333048#M189435</link>
      <description>please make sure you have the latest linker/loader patches installed - PHSS_30965 (11.00) or PHSS_30966 (11.11).</description>
      <pubDate>Fri, 16 Jul 2004 13:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333048#M189435</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2004-07-16T13:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exec format error when loading a .so module into Apache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333049#M189436</link>
      <description>Hi,&lt;BR /&gt;I recompiled Apache (again) with the -lcl option, and it's working properly.&lt;BR /&gt;&lt;BR /&gt;Thanks for your assistance.&lt;BR /&gt;Patricia</description>
      <pubDate>Fri, 23 Jul 2004 16:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exec-format-error-when-loading-a-so-module-into-apache/m-p/3333049#M189436</guid>
      <dc:creator>Patricia Cordeiro</dc:creator>
      <dc:date>2004-07-23T16:56:46Z</dc:date>
    </item>
  </channel>
</rss>

