Linking probs on Sol8...

From: Sean Chittenden <sean(at)chittenden(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Linking probs on Sol8...
Date: 2001-11-09 01:37:13
Message-ID: 20011108173713.B62095@ninja1.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 not found)
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 not found)
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:

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-11-09 02:05:07 Re: Call for objections: revision of keyword classification
Previous Message Tom Lane 2001-11-09 01:24:42 Re: [HACKERS] PostgreSQL v7.2b2 Released