<?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: Unable to load shared library gettext in php in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100010#M90884</link>
    <description>&amp;gt;what are the compiler and linker flags to do so&lt;BR /&gt;&amp;gt; ./configure CC='cc -m64' LD='ld -melfppc64'&lt;BR /&gt;&lt;BR /&gt;If you are using a real compiler you just use +DD64.  The gcc option is -mlp64.&lt;BR /&gt;The linker will automatically figure out the right thing.  But you should be using cc instead: LD='cc +DD64'&lt;BR /&gt;</description>
    <pubDate>Fri, 28 Mar 2008 07:30:52 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-03-28T07:30:52Z</dc:date>
    <item>
      <title>Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100002#M90876</link>
      <description>&lt;P&gt;I am using a HP-UX with apache version 2.0.58&lt;BR /&gt;and with php 5.2&lt;BR /&gt;&lt;BR /&gt;I compiled and installed the gettext extension&lt;BR /&gt;&lt;BR /&gt;On apache startup I get the warning&lt;BR /&gt;PHP Warning: PHP Startup: Unable to load dynamic library '/opt/hpws/apache/php/&lt;BR /&gt;lib/php/extensions/gettext.sl' - '/opt/hpws/apache/php/lib/php/extensions/gettex&lt;BR /&gt;t.sl' is not a valid load module: Bad magic number in Unknown on line 0&lt;BR /&gt;&lt;BR /&gt;Please help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved from HP-UX &amp;gt;&amp;nbsp;General to HP-UX &amp;gt; languages - HP Forumas Moderator&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 02:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100002#M90876</guid>
      <dc:creator>Harichand M V</dc:creator>
      <dc:date>2012-11-21T02:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100003#M90877</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Check that the files it is complaining about actually exist and have the correct file time.&lt;BR /&gt;&lt;BR /&gt;file filename.&lt;BR /&gt;&lt;BR /&gt;If possible compare size and type to a system that is working.&lt;BR /&gt;&lt;BR /&gt;The complaint seems to be either the library is inaccessible or invalid, I lean toward invalde based on the meaningful, magical error message.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 27 Mar 2008 13:05:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100003#M90877</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-03-27T13:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100004#M90878</link>
      <description>I have checked with the existence of the file gettext.sl&lt;BR /&gt;and the php.ini file.&lt;BR /&gt;I actually created the gettext.sl by following commands in the php-5.2.5/ext/gettext directory.&lt;BR /&gt;&lt;BR /&gt;I first copied config.sub,config.guess and ltmain.sh from /usr/local/share/libtool/config directory to gettext source directory.&lt;BR /&gt;&lt;BR /&gt;# phpize&lt;BR /&gt;# ./configure --enable-gettext --with-php-config=/opt/hpws/apache/php/bin/php-config&lt;BR /&gt;# make&lt;BR /&gt;# make install&lt;BR /&gt;# cd /opt/hpws/apache/php/lib/php/extensions&lt;BR /&gt;# mv no-debug-zts-20060613/gettext.so gettext.sl&lt;BR /&gt;# apachectl restart&lt;BR /&gt;&lt;BR /&gt;When I checked the error log of apache I got the above mensioned magic number error message&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100004#M90878</guid>
      <dc:creator>Harichand M V</dc:creator>
      <dc:date>2008-03-28T04:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100005#M90879</link>
      <description>I checked shared libraries with following commands&lt;BR /&gt;&lt;BR /&gt;# file libphp5.so&lt;BR /&gt;ELF-64 IA-64&lt;BR /&gt;# file gettext.sl&lt;BR /&gt;ELF-32 IA-64&lt;BR /&gt;&lt;BR /&gt;I think the mixing up of 32bit and 64bit libraries the root cause of problem.&lt;BR /&gt;&lt;BR /&gt;Can any body help with how i can build 64 bit&lt;BR /&gt;libraries?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 28 Mar 2008 05:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100005#M90879</guid>
      <dc:creator>Harichand M V</dc:creator>
      <dc:date>2008-03-28T05:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100006#M90880</link>
      <description>&amp;gt;I have checked with the existence of the file gettext.sl&lt;BR /&gt;&lt;BR /&gt;That's useless.  You also need to check what type of file it is.  Use a linker tool:&lt;BR /&gt;$ chatr gettext.sl&lt;BR /&gt;&lt;BR /&gt;You could have PA vs IPF conflicts.  Or +DD32 vs +DD64.  And it must be a shared lib.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;SEP: I lean toward invalid based on the meaningful, magical error message.&lt;BR /&gt;&lt;BR /&gt;Exactly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Mar 2008 06:23:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100006#M90880</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-28T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100007#M90881</link>
      <description>I got the following respone&lt;BR /&gt;&lt;BR /&gt;# chatr gettext.sl&lt;BR /&gt;&lt;BR /&gt;32-bit ELF shared library&lt;BR /&gt;shared library dynamic path search:&lt;BR /&gt;    LD_LIBRARY_PATH    enabled  first&lt;BR /&gt;    SHLIB_PATH         enabled  second&lt;BR /&gt;    embedded path      enabled  third  /usr/local/lib&lt;BR /&gt;internal name:&lt;BR /&gt;    gettext.so&lt;BR /&gt;shared library list:&lt;BR /&gt;    libintl.sl.1&lt;BR /&gt;    libc.so.1&lt;BR /&gt;shared library mapped private disabled&lt;BR /&gt;shared vtable support disabled&lt;BR /&gt;explicit unloading enabled&lt;BR /&gt;linkage table protection disabled&lt;BR /&gt;segments:&lt;BR /&gt;    index type     address      flags size&lt;BR /&gt;        7 text     04000000     z---c-    D (default)&lt;BR /&gt;        8 data     40010000     ---m--    D (default)&lt;BR /&gt;kernel assisted branch prediction enabled&lt;BR /&gt;lazy swap allocation for dynamic segments disabled&lt;BR /&gt;nulptr dereferences trap disabled&lt;BR /&gt;address space model: default&lt;BR /&gt;caliper dynamic instrumentation disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and for libphp5.so&lt;BR /&gt;&lt;BR /&gt;#chatr libphp5.so&lt;BR /&gt;/opt/hpws/apache/modules/libphp5.so:&lt;BR /&gt;         64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first&lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  /lib&lt;BR /&gt;         internal name:&lt;BR /&gt;             libphp5.so&lt;BR /&gt;         shared library list:&lt;BR /&gt;             libm.so.1&lt;BR /&gt;             libnsl.so.1&lt;BR /&gt;             libc.so.1&lt;BR /&gt;         shared library mapped private disabled&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled&lt;BR /&gt;         linkage table protection disabled&lt;BR /&gt;         segments:&lt;BR /&gt;             index type     address      flags size&lt;BR /&gt;                 6 text 4000000000000000 z---c-    D (default)&lt;BR /&gt;                 7 data 6000000000000000 ---m--    D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation for dynamic segments disabled&lt;BR /&gt;         nulptr dereferences trap disabled&lt;BR /&gt;         address space model: default&lt;BR /&gt;         caliper dynamic instrumentation disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can libphp5.so load the shared library gettext.sl??&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Mar 2008 06:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100007#M90881</guid>
      <dc:creator>Harichand M V</dc:creator>
      <dc:date>2008-03-28T06:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100008#M90882</link>
      <description># chatr gettext.sl&lt;BR /&gt;32-bit ELF shared library&lt;BR /&gt;#chatr libphp5.so&lt;BR /&gt;64-bit ELF shared library&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Can libphp5.so load the shared library gettext.sl??&lt;BR /&gt;&lt;BR /&gt;No.  An application can either be 32 bit or 64 bit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I compiled and installed the gettext extension&lt;BR /&gt;&lt;BR /&gt;You will have to port? and compile this to 64 bit.</description>
      <pubDate>Fri, 28 Mar 2008 07:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100008#M90882</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-28T07:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100009#M90883</link>
      <description>How can I compile the gettext source to generate a 64 bit shared library.&lt;BR /&gt;&lt;BR /&gt;ie what are the compiler and linker flags to do  so&lt;BR /&gt;&lt;BR /&gt;I tried&lt;BR /&gt;# ./configure CC='cc -m64' LD='ld -melfppc64'&lt;BR /&gt;# make&lt;BR /&gt;# make install&lt;BR /&gt;&lt;BR /&gt;Still I am getting a 32 bit library..</description>
      <pubDate>Fri, 28 Mar 2008 07:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100009#M90883</guid>
      <dc:creator>Harichand M V</dc:creator>
      <dc:date>2008-03-28T07:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100010#M90884</link>
      <description>&amp;gt;what are the compiler and linker flags to do so&lt;BR /&gt;&amp;gt; ./configure CC='cc -m64' LD='ld -melfppc64'&lt;BR /&gt;&lt;BR /&gt;If you are using a real compiler you just use +DD64.  The gcc option is -mlp64.&lt;BR /&gt;The linker will automatically figure out the right thing.  But you should be using cc instead: LD='cc +DD64'&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Mar 2008 07:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100010#M90884</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-28T07:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100011#M90885</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Problem is that when i try to compile gettext php extension as 64 bit elf i get error that 64 bit gettext library not found.&lt;BR /&gt;&lt;BR /&gt;So i think i should install gettext library as  64 bit.&lt;BR /&gt;How can this be done.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 28 Mar 2008 08:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100011#M90885</guid>
      <dc:creator>Harichand M V</dc:creator>
      <dc:date>2008-03-28T08:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100012#M90886</link>
      <description>?So i think i should install gettext library as 64 bit.  How can this be done?&lt;BR /&gt;&lt;BR /&gt;Does it exist at the porting center?  If not, you will have to build and port it yourself.&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Mar 2008 08:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100012#M90886</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-28T08:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load shared library gettext in php</title>
      <link>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100013#M90887</link>
      <description>I have found that i have to compile it as a 64 bit library&lt;BR /&gt;&lt;BR /&gt;Thanks to all</description>
      <pubDate>Sun, 30 Mar 2008 08:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/unable-to-load-shared-library-gettext-in-php/m-p/5100013#M90887</guid>
      <dc:creator>Harichand M V</dc:creator>
      <dc:date>2008-03-30T08:56:48Z</dc:date>
    </item>
  </channel>
</rss>

