Linking probs on Sol8... - Mailing list pgsql-hackers

From Sean Chittenden
Subject Linking probs on Sol8...
Date
Msg-id 20011108173713.B62095@ninja1.internal
Whole thread Raw
List pgsql-hackers
Maybe I'm missing something, but it looks like the linker
isn't honoring the LD_RUN_PATH environment variable and therefore
isn't searching /usr/local/lib at runtime of applications.  I can set
LD_LIBRARY_PATH in my environment and everything works, but I'd like
to distribute some solaris packages and not require LD_LIBRARY_PATH to
be set.  Any thoughts on the following?  I'm wondering if a new shell
is being spawned that cleans the environment.  ??  -sc

> pg_dump -u eman
ld.so.1: pg_dump: fatal: libkrb5.so.3: open failed: No such file or directory
Killed
> ldd /usr/local/pgsql/bin/pg_dump        libpq.so.2 =>    /usr/local/pgsql/lib/libpq.so.2       libkrb5.so.3 =>  (file
notfound)       libk5crypto.so.3 =>      (file not found)       libcom_err.so.3 =>       (file not found)
librt.so.1=>    /usr/lib/librt.so.1       libz.so =>       /usr/lib/libz.so       libresolv.so.2 =>
/usr/lib/libresolv.so.2      libgen.so.1 =>   /usr/lib/libgen.so.1       libnsl.so.1 =>   /usr/lib/libnsl.so.1
libsocket.so.1=>        /usr/lib/libsocket.so.1       libdl.so.1 =>    /usr/lib/libdl.so.1       libm.so.1 =>
/usr/lib/libm.so.1      libc.so.1 =>     /usr/lib/libc.so.1       libgcc_s.so.1 =>         (file not found)
libkrb5.so.3=>  (file not found)       libk5crypto.so.3 =>      (file not found)       libcom_err.so.3 =>       (file
notfound)       libgcc_s.so.1 =>         (file not found)       libaio.so.1 =>   /usr/lib/libaio.so.1       libmp.so.2
=>   /usr/lib/libmp.so.2       /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
 
> setenv LD_LIBRARY_PATH /usr/local/lib
> ldd /usr/local/pgsql/bin/pg_dump       libpq.so.2 =>    /usr/local/pgsql/lib/libpq.so.2       libkrb5.so.3 =>
/usr/local/lib/libkrb5.so.3      libk5crypto.so.3 =>      /usr/local/lib/libk5crypto.so.3       libcom_err.so.3 =>
/usr/local/lib/libcom_err.so.3       librt.so.1 =>    /usr/lib/librt.so.1       libz.so =>       /usr/local/lib/libz.so
     libresolv.so.2 =>        /usr/lib/libresolv.so.2       libgen.so.1 =>   /usr/lib/libgen.so.1       libnsl.so.1 =>
/usr/lib/libnsl.so.1       libsocket.so.1 =>        /usr/lib/libsocket.so.1       libdl.so.1 =>    /usr/lib/libdl.so.1
    libm.so.1 =>     /usr/lib/libm.so.1       libc.so.1 =>     /usr/lib/libc.so.1       libgcc_s.so.1 =>
/usr/local/lib/libgcc_s.so.1      libaio.so.1 =>   /usr/lib/libaio.so.1       libmp.so.2 =>    /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
 
> pg_dump -u eman
User name:  


pgsql-hackers by date:

Previous
From: "Jim Buttafuoco"
Date:
Subject: Re: Storage Location Patch Proposal for V7.3
Next
From: Barry Lind
Date:
Subject: Re: [JDBC] MD5-based passwords