<?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: DB starting error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298982#M337799</link>
    <description>&amp;gt;1. How can I check whether I have absolute path to SHLIB or Not?&lt;BR /&gt;&lt;BR /&gt;What is the -L path you pass to the compiler in your makefile?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;export LD_LIBRARY_PATH&lt;BR /&gt;&lt;BR /&gt;Useless for PA32, only SHLIB_PATH works.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. If I can't use +legacy_cpp on PA cc, then how can I set the CPP value then?&lt;BR /&gt;&lt;BR /&gt;Just -E is enough.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Regarding SHLIB path when I do an chatr on dld.sl&lt;BR /&gt;&lt;BR /&gt;It is useless to do it on dld.sl.  You must do it on your executable.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I am not able to enable SHLIB path here.&lt;BR /&gt;&lt;BR /&gt;To enable it on your executable, you link with "-Wl,+s".  Or you can use chatr(1).</description>
    <pubDate>Mon, 03 Nov 2008 11:03:03 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-11-03T11:03:03Z</dc:date>
    <item>
      <title>DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298977#M337794</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;I am having this peculiar problem that needs some troubleshooting&lt;BR /&gt;I hv installed gmake and are trying to compile some postgres code, please find the steps as below:&lt;BR /&gt;&lt;BR /&gt;ln -s /opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/CORE/libperl.so libperl.so &lt;BR /&gt;&lt;BR /&gt;cd /opt/pgsql/src &lt;BR /&gt;cd /opt/pgsql/src/postgresql-8.2.4&lt;BR /&gt;&lt;BR /&gt;export CC=cc&lt;BR /&gt;export CPP="cc -E +legacy_cpp"&lt;BR /&gt;export LIBS="-lkrb5 -lk5crypto -lcom_err"&lt;BR /&gt;export LDFLAGS="-Wl,+nodefaultrpath"&lt;BR /&gt;./configure --prefix=/opt/iexpress/postgresql --disable-rpath --with-perl --enable-integer-datetimes --with-openssl --libdir=/opt/iexpress/postgresql/lib/hpux32 --without-readline --without-zlib --without-docdir&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/gmake -f /opt/pgsql/src/postgresql-8.2.4/GNUmakefile all&lt;BR /&gt;/usr/local/bin/gmake -f /opt/pgsql/src/postgresql-8.2.4/GNUmakefile install&lt;BR /&gt;&lt;BR /&gt;su - postgres&lt;BR /&gt;/opt/iexpress/postgresql/bin/createlang --echo --dbname=vsm --username=postgres plperl &lt;BR /&gt;$ /opt/iexpress/postgresql/bin/createlang --echo --dbname=vsm --username=postgres plperl&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: ../../../src/interfaces/libpq/libpq.sl.5&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;Abort&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help me with this error. I checked the user rights and also the existence of /usr/lib/dld.sl and /opt/iexpress/postgresql/src/postgresql-8.2.4/src/interfaces/libpq/libpq.sl.5. They are all fine. Please help</description>
      <pubDate>Mon, 03 Nov 2008 08:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298977#M337794</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-03T08:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298978#M337795</link>
      <description>The first line is not the one given above&lt;BR /&gt;&lt;BR /&gt;ln -s /opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/CORE/libperl.sl libperl.sl</description>
      <pubDate>Mon, 03 Nov 2008 09:04:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298978#M337795</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-03T09:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298979#M337796</link>
      <description>dld.sl: Can't open shared library: ../../../src/interfaces/libpq/libpq.sl.5&lt;BR /&gt;&lt;BR /&gt;You don't have an absolute path to your shlib.&lt;BR /&gt;If you are going to use +nodefaultrpath and not +b, you might want to look to $ORIGIN for relative paths.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;export CPP="cc -E +legacy_cpp"&lt;BR /&gt;&lt;BR /&gt;You can't use +legacy_cpp on PA cc.</description>
      <pubDate>Mon, 03 Nov 2008 09:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298979#M337796</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-03T09:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298980#M337797</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Check that SHLIB_PATH is properly set and that ll libraries needed are on that path variable.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 03 Nov 2008 09:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298980#M337797</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-11-03T09:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298981#M337798</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. I have 2 questions.&lt;BR /&gt;&lt;BR /&gt;1. How can I check whether I have absolute path to SHLIB or Not? Because we have set this library path postgres .profile file&lt;BR /&gt;&lt;BR /&gt;export LD_LIBRARY_PATH=/opt/pgsql/lib/:/opt/pgsql/vsm-lib:/usr/lib:/opt/pgsql/lib/hpux32&lt;BR /&gt;export libdir=/opt/pgsql/lib&lt;BR /&gt;&lt;BR /&gt;2.If I can't use +legacy_cpp on PA cc, then how can I set the CPP value then? Any idea?&lt;BR /&gt;&lt;BR /&gt;Regarding SHLIB path when I do an chatr on dld.sl I get this value&lt;BR /&gt;&lt;BR /&gt; chatr /usr/lib/dld.sl&lt;BR /&gt;/usr/lib/dld.sl:&lt;BR /&gt;         shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     disabled  second&lt;BR /&gt;             embedded path  disabled  first  Not Defined&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         executable from stack: D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation disabled&lt;BR /&gt;         text segment locking disabled&lt;BR /&gt;         data segment locking disabled&lt;BR /&gt;         third quadrant private data space disabled&lt;BR /&gt;         fourth quadrant private data space disabled&lt;BR /&gt;         third quadrant global data space disabled&lt;BR /&gt;         data page size: D (default)&lt;BR /&gt;         instruction page size: D (default)&lt;BR /&gt;         nulptr references disabled&lt;BR /&gt;         shared library private mapping disabled&lt;BR /&gt;#&lt;BR /&gt; Please let me know as I am not able to enable SHLIB path here.</description>
      <pubDate>Mon, 03 Nov 2008 09:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298981#M337798</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-03T09:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298982#M337799</link>
      <description>&amp;gt;1. How can I check whether I have absolute path to SHLIB or Not?&lt;BR /&gt;&lt;BR /&gt;What is the -L path you pass to the compiler in your makefile?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;export LD_LIBRARY_PATH&lt;BR /&gt;&lt;BR /&gt;Useless for PA32, only SHLIB_PATH works.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. If I can't use +legacy_cpp on PA cc, then how can I set the CPP value then?&lt;BR /&gt;&lt;BR /&gt;Just -E is enough.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Regarding SHLIB path when I do an chatr on dld.sl&lt;BR /&gt;&lt;BR /&gt;It is useless to do it on dld.sl.  You must do it on your executable.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I am not able to enable SHLIB path here.&lt;BR /&gt;&lt;BR /&gt;To enable it on your executable, you link with "-Wl,+s".  Or you can use chatr(1).</description>
      <pubDate>Mon, 03 Nov 2008 11:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298982#M337799</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-03T11:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298983#M337800</link>
      <description>Hi Sutapa,&lt;BR /&gt;&lt;BR /&gt;I tried to build PostgreSQL from source code on HP-UX 11.11.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;NOTE: I used the latest HP ANSI C compiler:&lt;BR /&gt;  % cc -V hello.c -o hello&lt;BR /&gt;  cpp.ansi: HP92453-01 B.11.11.20 HP C Preprocessor (ANSI)&lt;BR /&gt;  ccom: HP92453-01 B.11.11.20 HP C Compiler&lt;BR /&gt;  /usr/ccs/bin/ld: 92453-07 linker linker ld B.11.40 040530&lt;BR /&gt;  %&lt;BR /&gt;&lt;BR /&gt;Before upgrading to this, I met the following error:&lt;BR /&gt;  cc -Ae +O2 -I../../../../src/include -D_XOPEN_SOURCE_EXTENDED   -c -o elog.o elog.c&lt;BR /&gt;  cc: error 1405: "/opt/ansic/lbin/ccom" terminated abnormally with signal 11.&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;BR /&gt;Here's my simple steps:&lt;BR /&gt;&lt;BR /&gt;% cd /var/tmp&lt;BR /&gt;% gzcat postgresql-8.3.4.tar.gz | tar xvf&lt;BR /&gt;% cd postgresql-8.3.4&lt;BR /&gt;% env CC=cc CFLAGS="+O2" ./configure \&lt;BR /&gt;    --without-readline --without-zlib 2&amp;gt;&amp;amp;1 | tee configure.log&lt;BR /&gt;% gmake 2&amp;gt;&amp;amp;1 | tee make.log&lt;BR /&gt;% gmake check 2&amp;gt;&amp;amp;1 | tee makecheck.log&lt;BR /&gt;..(snip)..&lt;BR /&gt;=======================&lt;BR /&gt; All 114 tests passed. &lt;BR /&gt;=======================&lt;BR /&gt;&lt;BR /&gt;gmake[2]: Leaving directory `/var/tmp/postgresql-8.3.4/src/test/regress'&lt;BR /&gt;gmake[1]: Leaving directory `/var/tmp/postgresql-8.3.4/src/test'&lt;BR /&gt;% su -&lt;BR /&gt;# cd /var/tmp/postgresql-8.3.4&lt;BR /&gt;# /usr/local/bin/gmake install 2&amp;gt;&amp;amp;1 | tee makeinstall.log&lt;BR /&gt;# useradd postgres&lt;BR /&gt;# mkdir /usr/local/pgsql/data&lt;BR /&gt;# chown postgres:users /usr/local/pgsql/data&lt;BR /&gt;# su - postgres&lt;BR /&gt;&lt;BR /&gt;$ export PGDATA=/usr/local/pgsql/data&lt;BR /&gt;$ export PGLIB=/usr/local/pgsql/lib&lt;BR /&gt;$ export PATH=/usr/local/pgsql/bin:$PATH&lt;BR /&gt;% initdb --encoding=EUC_JP --no-locale&lt;BR /&gt;$ pg_ctl -w start&lt;BR /&gt;$ ps -ef | grep postgres&lt;BR /&gt;postgres 21403 21397  0 09:17:43 ?         0:00 postgres: wal writer process   &lt;BR /&gt;postgres 21404 21397  0 09:17:43 ?         0:00 postgres: autovacuum launcher process   &lt;BR /&gt;postgres 22263 21937  2 09:40:33 pts/ta    0:00 ps -ef&lt;BR /&gt;postgres 21405 21397  0 09:17:43 ?         0:00 postgres: stats collector process   &lt;BR /&gt;postgres 21397     1  0 09:17:42 pts/ta    0:00 /usr/local/pgsql/bin/postgres&lt;BR /&gt;postgres 21402 21397  0 09:17:43 ?         0:00 postgres: writer process   &lt;BR /&gt;postgres 21937 21922  1 09:32:07 pts/ta    0:00 -sh&lt;BR /&gt;postgres 22264 21937  0 09:40:33 pts/ta    0:00 grep postgres&lt;BR /&gt;$&lt;BR /&gt;$ psql -l&lt;BR /&gt;        List of databases&lt;BR /&gt;   Name    |  Owner   | Encoding &lt;BR /&gt;-----------+----------+----------&lt;BR /&gt; postgres  | postgres | EUC_JP&lt;BR /&gt; template0 | postgres | EUC_JP&lt;BR /&gt; template1 | postgres | EUC_JP&lt;BR /&gt;(3 rows)&lt;BR /&gt;&lt;BR /&gt;$ createdb sample&lt;BR /&gt;$ psql -l&lt;BR /&gt;        List of databases&lt;BR /&gt;   Name    |  Owner   | Encoding &lt;BR /&gt;-----------+----------+----------&lt;BR /&gt; postgres  | postgres | EUC_JP&lt;BR /&gt; sample    | postgres | EUC_JP&lt;BR /&gt; template0 | postgres | EUC_JP&lt;BR /&gt; template1 | postgres | EUC_JP&lt;BR /&gt;(4 rows)&lt;BR /&gt;&lt;BR /&gt;$&lt;BR /&gt;$ chatr /usr/local/pgsql/bin/createdb&lt;BR /&gt;/usr/local/pgsql/bin/createdb: &lt;BR /&gt;         shared executable &lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     disabled  second &lt;BR /&gt;             embedded path  enabled   first  /usr/local/pgsql/lib&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   ../../../src/interfaces/libpq/libpq.sl.5&lt;BR /&gt;             dynamic   /usr/lib/libxnet.2&lt;BR /&gt;             dynamic   /usr/lib/libm.2&lt;BR /&gt;             dynamic   /usr/lib/libc.2&lt;BR /&gt;         shared library binding:&lt;BR /&gt;..(snip)..&lt;BR /&gt;$ ldd /usr/local/pgsql/bin/createdb&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libm.2 =&amp;gt;      /usr/lib/libm.2&lt;BR /&gt;        /usr/lib/libxnet.2 =&amp;gt;   /usr/lib/libxnet.2&lt;BR /&gt;        /usr/lib/libxti.2 =&amp;gt;    /usr/lib/libxti.2&lt;BR /&gt;        ../../../src/interfaces/libpq/libpq.sl.5 =&amp;gt;     /usr/local/pgsql/lib/libpq.sl.5&lt;BR /&gt;$ ldd /usr/local/pgsql/bin/createlang&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libm.2 =&amp;gt;      /usr/lib/libm.2&lt;BR /&gt;        /usr/lib/libxnet.2 =&amp;gt;   /usr/lib/libxnet.2&lt;BR /&gt;        /usr/lib/libxti.2 =&amp;gt;    /usr/lib/libxti.2&lt;BR /&gt;        ../../../src/interfaces/libpq/libpq.sl.5 =&amp;gt;     /usr/local/pgsql/lib/libpq.sl.5&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;I didn't specify "--with-perl" to the configure script. But it&lt;BR /&gt;seems to me my PostgreSQL is working well.&lt;BR /&gt;&lt;BR /&gt;I hope this helps you.&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2008 00:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298983#M337800</guid>
      <dc:creator>Shinji Teragaito_1</dc:creator>
      <dc:date>2008-11-04T00:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298984#M337801</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Lots of thanks for your help. It has made my understanding better.&lt;BR /&gt;&lt;BR /&gt;Terajito, for you I have one question when I performed the last steps as given by you:&lt;BR /&gt;&lt;BR /&gt;1. chatr /usr/bin/createdb - I got the same result as you.&lt;BR /&gt;2. But in the next step &lt;BR /&gt;ldd /usr/bin/createdb - The o/p I got is:&lt;BR /&gt;&lt;BR /&gt; /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libcom_err.sl =&amp;gt;       /usr/lib/libcom_err.sl&lt;BR /&gt;        /usr/lib/libk5crypto.sl =&amp;gt;      /usr/lib/libk5crypto.sl&lt;BR /&gt;        /usr/lib/libkrb5.sl =&amp;gt;  /usr/lib/libkrb5.sl&lt;BR /&gt;        /usr/lib/libcom_err.sl =&amp;gt;       /usr/lib/libcom_err.sl&lt;BR /&gt;        /usr/lib/libk5crypto.sl =&amp;gt;      /usr/lib/libk5crypto.sl&lt;BR /&gt;        /usr/lib/libm.2 =&amp;gt;      /usr/lib/libm.2&lt;BR /&gt;        /usr/lib/libcrypto.sl.0 =&amp;gt;      /usr/lib/libcrypto.sl.0&lt;BR /&gt;        /usr/lib/libc.2 =&amp;gt;      /usr/lib/libc.2&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libssl.sl.0 =&amp;gt; /usr/lib/libssl.sl.0&lt;BR /&gt;        /usr/lib/libdld.2 =&amp;gt;    /usr/lib/libdld.2&lt;BR /&gt;        /usr/lib/libxnet.2 =&amp;gt;   /usr/lib/libxnet.2&lt;BR /&gt;        /usr/lib/libxti.2 =&amp;gt;    /usr/lib/libxti.2&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: ../../../src/interfaces/libpq/libpq.sl.5&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;&lt;BR /&gt;Please notice the last two lines. They are throwing some error. It is the same case with /usr/bin/createlang.&lt;BR /&gt;&lt;BR /&gt;Please let me know your suggestions.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sutapa</description>
      <pubDate>Tue, 04 Nov 2008 02:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298984#M337801</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-04T02:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298985#M337802</link>
      <description>&amp;gt; 1. chatr /usr/bin/createdb - I got the same result as you.&lt;BR /&gt;&lt;BR /&gt;You should not have. You should have /opt/iexpress/postgresql/lib/hpux32 as the embedded path because you specify the directory as --libdir and your libpq.sl is present there.&lt;BR /&gt;&lt;BR /&gt;Can you remove the configuration for LDFLAGS="-Wl,+nodefaultrpath" ? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Nov 2008 03:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298985#M337802</guid>
      <dc:creator>Shinji Teragaito_1</dc:creator>
      <dc:date>2008-11-04T03:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298986#M337803</link>
      <description>&amp;gt;Shinji: Can you remove the configuration for LDFLAGS="-Wl,+nodefaultrpath"?&lt;BR /&gt;&lt;BR /&gt;This will obviously make it work.  I.e. if it found it at link time, it will still be there at runtime, if on the same machine or shlib layout.</description>
      <pubDate>Tue, 04 Nov 2008 07:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298986#M337803</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-04T07:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298987#M337804</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;I tried all the steps suggested like&lt;BR /&gt;&lt;BR /&gt;While exporting environment variables I used:&lt;BR /&gt;&lt;BR /&gt;export CC=cc&lt;BR /&gt;export CPP="cc -E"&lt;BR /&gt;export LIBS="-lkrb5 -lk5crypto -lcom_err"&lt;BR /&gt;./configure --prefix=/opt/iexpress/postgresql --disable-rpath --with-perl --enable-integer-datetimes --with-openssl --libdir=/opt/iexpress/postgresql/lib/hpux32 --without-readline --without-zlib --without-docdir &lt;BR /&gt;&lt;BR /&gt;Changed&lt;BR /&gt;CPP options&lt;BR /&gt;Deleted the LDFLAGS="-Wl,+nodefaultrpath"&lt;BR /&gt;&lt;BR /&gt;But am still getting the same error.</description>
      <pubDate>Tue, 04 Nov 2008 08:44:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298987#M337804</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-04T08:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298988#M337805</link>
      <description>&lt;!--!*#--&gt;&amp;gt;Changed: CPP options&lt;BR /&gt;&lt;BR /&gt;(This wouldn't have any effect at link time.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Deleted the LDFLAGS="-Wl,+nodefaultrpath"&lt;BR /&gt;&amp;gt;But am still getting the same error.&lt;BR /&gt;&lt;BR /&gt;Let's start all over.  What are the linker options?&lt;BR /&gt;Change CC to: export CC="cc -v"&lt;BR /&gt;What are the options being passed to ld?&lt;BR /&gt;&lt;BR /&gt;This is what Shinji's chatr showed:&lt;BR /&gt;shared library dynamic path search:&lt;BR /&gt;   SHLIB_PATH disabled second&lt;BR /&gt;   embedded path enabled first   /usr/local/pgsql/lib&lt;BR /&gt;&lt;BR /&gt;This says you can't use SHLIB_PATH.  It says that ALL shlibs that aren't in /usr/lib, must  be in /usr/local/pgsql/lib.&lt;BR /&gt;&lt;BR /&gt;shared library list:&lt;BR /&gt;dynamic ../../../src/interfaces/libpq/libpq.sl.5&lt;BR /&gt;&lt;BR /&gt;This is what is killing you.  Where should this shlib be?&lt;BR /&gt;This path kind of implies that -Wl,+nodefaultrpath is NOT being passed to ld.  I.e. do you have LDFLAGS in your makefile?  Unless configure passes -e to make or looks at LDFLAGS, ld won't see it.&lt;BR /&gt;&lt;BR /&gt;You need to provide chatr for the current executable.</description>
      <pubDate>Tue, 04 Nov 2008 09:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298988#M337805</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-04T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298989#M337806</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks for the info.&lt;BR /&gt;I am completely a newbie in this area, hence didnot knew these details.&lt;BR /&gt;The update is&lt;BR /&gt;&lt;BR /&gt;1. chatr /usr/bin/createlang shows:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/createlang:&lt;BR /&gt;         shared executable&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     disabled  second&lt;BR /&gt;             embedded path  disabled  first  Not Defined&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   ../../../src/interfaces/libpq/libpq.sl.5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here it is showing embedded path disabled.&lt;BR /&gt;&lt;BR /&gt;How can I enable this embedded path?&lt;BR /&gt;How can I check what are the options being passed to ld? I tried looking into the makefile but didnt undertsnad much.....&lt;BR /&gt;&lt;BR /&gt;We are using these LD Flags in the .profile file of postgres user:&lt;BR /&gt;&lt;BR /&gt;export LD_LIBRARY_PATH=/opt/pgsql/lib/:/opt/pgsql/vsm-lib:/usr/lib:/opt/pgsql/lib/hpux32&lt;BR /&gt;export libdir=/opt/pgsql/lib&lt;BR /&gt;&lt;BR /&gt;What options I can pass to&lt;BR /&gt;export LDFLAGS="-Wl,+nodefaultrpath"&lt;BR /&gt;for PA-RISC 11.23?</description>
      <pubDate>Tue, 04 Nov 2008 09:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298989#M337806</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-04T09:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298990#M337807</link>
      <description>&lt;!--!*#--&gt;&amp;gt;1. chatr /usr/bin/createlang shows:&lt;BR /&gt;shared library dynamic path search:&lt;BR /&gt;   SHLIB_PATH disabled second&lt;BR /&gt;   embedded path disabled first Not Defined&lt;BR /&gt;&lt;BR /&gt;You don't have any path.  All shlibs must be in /usr/lib.&lt;BR /&gt;&lt;BR /&gt;shared library list:&lt;BR /&gt;dynamic ../../../src/interfaces/libpq/libpq.sl.5&lt;BR /&gt;&lt;BR /&gt;That bad shlib.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How can I enable this embedded path?&lt;BR /&gt;&lt;BR /&gt;This is the the -Wc,+b,path option.  You'll have to map that to a configure option.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How can I check what are the options being passed to ld? I tried looking into the makefile but didn't understand much.&lt;BR /&gt;&lt;BR /&gt;As I said, use CC="cc -v".  Then look for a line that starts with ld.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;We are using these LD Flags in the .profile file of postgres user:&lt;BR /&gt;LD_LIBRARY_PATH=/opt/pgsql/lib/:/opt/pgsql/vsm-lib:/usr/lib:/opt/pgsql/lib/hpux32&lt;BR /&gt;export libdir=/opt/pgsql/lib&lt;BR /&gt;&lt;BR /&gt;LD_LIBRARY_PATH is ignored for PA32.  SHLIB_PATH is ignored because that's disabled.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;What options I can pass to&lt;BR /&gt;export LDFLAGS="-Wl,+nodefaultrpath"&lt;BR /&gt;for PA-RISC 11.23?&lt;BR /&gt;&lt;BR /&gt;Well, you can toss this configure nonsense and use the raw ld commands:&lt;BR /&gt;export LDOPTS="+nodefaultrpath"&lt;BR /&gt;&lt;BR /&gt;You need to mention how you plan to distribute your executable.  Do you want to be able to move it to another location or is it fixed.  Do you want to allow SHLIB_PATH or will you set up an embedded path??</description>
      <pubDate>Tue, 04 Nov 2008 10:37:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298990#M337807</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-04T10:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298991#M337808</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;I have tried with the options you told like used:&lt;BR /&gt;&lt;BR /&gt;export CC="cc -v"&lt;BR /&gt;export LDOPTS="+nodefaultrpath"&lt;BR /&gt;&lt;BR /&gt;And I got the line with "ld"&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ld +h libplperl.sl.0 -b  plperl.o spi_internal.o SPI.o -L/opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/CORE -L../../../src/port /opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/auto/DynaLoader/DynaLoader.a -lperl -lcl -lcres -lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec -lpthread -lc -o libplperl.sl.0&lt;BR /&gt;&lt;BR /&gt;Moreover it also gave an error:&lt;BR /&gt;&lt;BR /&gt;ld: Mismatched ABI (not an ELF file) for -lperl&lt;BR /&gt;Fatal error.&lt;BR /&gt;gmake[3]: *** [libplperl.sl.0] Error 1&lt;BR /&gt;gmake[3]: Leaving directory `/opt/iexpress/postgresql/src/postgresql-8.2.4/src/pl/plperl'&lt;BR /&gt;gmake[2]: *** [all] Error 1&lt;BR /&gt;gmake[2]: Leaving directory `/opt/iexpress/postgresql/src/postgresql-8.2.4/src/pl'&lt;BR /&gt;gmake[1]: *** [all] Error 2&lt;BR /&gt;gmake[1]: Leaving directory `/opt/iexpress/postgresql/src/postgresql-8.2.4/src'&lt;BR /&gt;gmake: *** [all] Error 2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To give you a background actually we are trying to enable plperl support with postgres&lt;BR /&gt;&lt;BR /&gt;As for your questions:&lt;BR /&gt;&lt;BR /&gt;Do you want to be able to move it to another location or is it fixed?how you plan to distribute your executable?&lt;BR /&gt;&lt;BR /&gt;Actually I dont have much idea about the distribution of executables.....I was asked to check whether we are having some compatibility issues with gmake or compiler options.&lt;BR /&gt;&lt;BR /&gt;Do you want to allow SHLIB_PATH or will you set up an embedded path??&lt;BR /&gt;&lt;BR /&gt;I think we may go for embedded path.For enabling the embedded path as you said to configure -Wc and +b option with a configure option. I am not really clear about the configure option.&lt;BR /&gt;&lt;BR /&gt;Please let me know your comments.</description>
      <pubDate>Tue, 04 Nov 2008 12:35:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298991#M337808</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-04T12:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298992#M337809</link>
      <description>Don't specify --disable-rpath at your configure line. With this, you can not have any embed shared library search path in executables.&lt;BR /&gt;&lt;BR /&gt;I have never specify LIBS explicitly to any configure scripts. Does your LIBS work as you intend ?&lt;BR /&gt;&lt;BR /&gt;One more thing. You don't have to specify CPP explicitly any more for PostgreSQL 8.0 or later because awk is sufficient for src/backend/utils/Gen_fmgrtab.sh. It was needed for buiding PostgreSQL 7.x on IPF (that was based on the first help I got from Dennis 5 years ago. Thank you, Dennis).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2008 01:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298992#M337809</guid>
      <dc:creator>Shinji Teragaito_1</dc:creator>
      <dc:date>2008-11-05T01:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298993#M337810</link>
      <description>&amp;gt;And I got the line with "ld"&lt;BR /&gt;&lt;BR /&gt;This is not the link line for your executable.  Which may mean you have to export and unset LDOPTS only when you build one thing.&lt;BR /&gt;&lt;BR /&gt;ld: Mismatched ABI (not an ELF file) for -lperl&lt;BR /&gt;&lt;BR /&gt;I'm not sure why +nodefaultrpath would cause this?&lt;BR /&gt;What does "file spi_internal.o" show?&lt;BR /&gt;If this is 64 bit, then you need to have a 64 bit libperl.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;For enabling the embedded path as you said to configure -Wc&lt;BR /&gt;&lt;BR /&gt;That's: -Wl,+b,path1:path2&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Shinji: Don't specify --disable-rpath at your configure line. With this, you can not have any embed shared library search path in executables.&lt;BR /&gt;&lt;BR /&gt;Any embedded paths, or just the default?</description>
      <pubDate>Wed, 05 Nov 2008 03:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298993#M337810</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-05T03:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298994#M337811</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks to all of your help, I was successfully able to resolve the dld.sl issue. Here are the steps I followed:&lt;BR /&gt;&lt;BR /&gt;cd /opt/pgsql/src/postgresql-8.2.4&lt;BR /&gt;ln -s /opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/CORE/libperl.sl libperl.sl&lt;BR /&gt;&lt;BR /&gt;export CC="cc -v"&lt;BR /&gt;export LDOPTS="+nodefaultrpath"&lt;BR /&gt;&lt;BR /&gt;./configure --prefix=/opt/iexpress/postgresql --with-perl --enable-integer-datetimes --with-openssl --libdir=/opt/iexpress/postgresql/lib/hpux32 --without-readline --without-zlib --without-docdir &lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/gmake -f /opt/pgsql/src/postgresql-8.2.4/GNUmakefile all&lt;BR /&gt;/usr/local/bin/gmake -f /opt/pgsql/src/postgresql-8.2.4/GNUmakefile install&lt;BR /&gt;&lt;BR /&gt;It got installed with no problems.&lt;BR /&gt;&lt;BR /&gt;But now I am facing a new error like this:&lt;BR /&gt;&lt;BR /&gt;su - postgres&lt;BR /&gt;$ /opt/iexpress/postgresql/bin/createlang --echo --dbname=vsm --username=postgres plperl&lt;BR /&gt;&lt;BR /&gt;SELECT oid FROM pg_catalog.pg_language WHERE lanname = 'plperl';&lt;BR /&gt;CREATE LANGUAGE "plperl";&lt;BR /&gt;createlang: language installation failed: ERROR:  could not load library "/opt/iexpress/postgresql/lib/plperl.sl": Exec format error&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2008 04:01:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298994#M337811</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-05T04:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298995#M337812</link>
      <description>Moreover to add to this when I check the embedded path to the executable plperl.sl I get the result as below:&lt;BR /&gt;&lt;BR /&gt;# chatr /opt/iexpress/postgresql/lib/plperl.sl&lt;BR /&gt;/opt/iexpress/postgresql/lib/plperl.sl:&lt;BR /&gt;         shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     disabled  second&lt;BR /&gt;             embedded path  enabled   first  /opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/CORE&lt;BR /&gt;         internal name:&lt;BR /&gt;             libplperl.sl.0&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   /opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/CORE/libperl.sl&lt;BR /&gt;             dynamic   /usr/lib/libcl.2&lt;BR /&gt;             dynamic   /usr/lib/libnsl.1&lt;BR /&gt;             dynamic   /usr/lib/libnm.sl&lt;BR /&gt;             dynamic   /usr/lib/libdld.2&lt;BR /&gt;             dynamic   /usr/lib/libm.2&lt;BR /&gt;             dynamic   /usr/lib/libsec.2&lt;BR /&gt;             dynamic   /usr/lib/libpthread.1&lt;BR /&gt;             dynamic   /usr/lib/libc.2&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         executable from stack: D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation disabled&lt;BR /&gt;         text segment locking disabled&lt;BR /&gt;         data segment locking disabled&lt;BR /&gt;         third quadrant private data space disabled&lt;BR /&gt;         fourth quadrant private data space disabled&lt;BR /&gt;         third quadrant global data space disabled&lt;BR /&gt;         data page size: D (default)&lt;BR /&gt;         instruction page size: D (default)&lt;BR /&gt;         nulptr references disabled&lt;BR /&gt;         shared library private mapping disabled&lt;BR /&gt;&lt;BR /&gt;Here embedded path is enabled.</description>
      <pubDate>Wed, 05 Nov 2008 04:23:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298995#M337812</guid>
      <dc:creator>Sutapa Dey</dc:creator>
      <dc:date>2008-11-05T04:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: DB starting error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298996#M337813</link>
      <description>&amp;gt;ERROR: could not load library "/opt/iexpress/postgresql/lib/plperl.sl": Exec format error&lt;BR /&gt;&lt;BR /&gt;What does "file /opt/iexpress/postgresql/lib/plperl.sl" show?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;internal name: libplperl.sl.0&lt;BR /&gt;&lt;BR /&gt;Do you have a symlink for this name too?</description>
      <pubDate>Wed, 05 Nov 2008 06:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/db-starting-error/m-p/4298996#M337813</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-05T06:10:53Z</dc:date>
    </item>
  </channel>
</rss>

