From: | "Madere, Colin" <colin(dot)madere(at)ieminc(dot)com> |
---|---|
To: | "'pgsql-ports(at)postgresql(dot)org'" <pgsql-ports(at)postgresql(dot)org> |
Subject: | library path compile/link problem on Solaris |
Date: | 2002-10-30 17:28:52 |
Message-ID: | A0B0CE866AEECE4BBB3FA565A5CA62D343FE2A@brmail.ieminc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================
Your name : Colin Madere
Your email address : colin(dot)madere(at)ieminc(dot)com
System Configuration
---------------------
Architecture (example: Intel Pentium) : Intel Pentium
Operating System (example: Linux 2.0.26 ELF) : Solaris 7
PostgreSQL version (example: PostgreSQL-7.2.3): PostgreSQL-7.2.3
Compiler used (example: gcc 2.95.2) : gcc 3.2
Please enter a FULL description of your problem:
------------------------------------------------
After compilation the initdb/postmaster and/or the createdb command will get
the following error:
ld.so.1: bin/psql: fatal: libgcc_s.so.1: open failed: No such file or
directory
Please describe a way to repeat the problem. Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
Follow instructions in README/INSTALL on Solaris 7 with gcc 3.2 using csh
running (at least) on an x86 box.
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
After searching around, I found a fix that made this alteration to the
'src/Makefile.port' file:
Replace:
>>>>> ifeq ($(with_gnu_ld), yes)
>>>>> export_dynamic = -Wl,-E
>>>>> rpath = -Wl,-rpath,$(libdir)
>>>>> else
>>>>> rpath = -R$(libdir)
>>>>> endif
>>>>> shlib_symbolic = -Wl,-Bsymbolic
with:
>>>>> rpath = -L/usr/local/pgsql/lib -L/usr/local/lib -L/usr/local/ssl/lib
>>>>> -L/usr/local/lib/sasl -Wl-R/usr/local/pgsql/lib -Wl,-R/usr/local/lib
>>>>> -Wl,-R/usr/local/ssl/lib -Wl-R/usr/local/lib/sasl
>>>>> shlib_symbolic = -Wl,-Bsymbolic
For my particular install I left out the 'ssl' directory since I'm not using
it and 'sasl' because I didn't have it or know what it was. With this
forced path kludge and setting the LD_LIBRARY_PATH all commands seem to
correctly run and I can create and 'log into' a database with psql.
I'm no makefile wizard, but it appears as though the line above in
non-altered version:
>>>>> rpath = -Wl,-rpath,$(libdir)
must be incorrect since '-rpath' isn't a valid compiler/linker switch as far
as I know. I tried changing it to "-R$(libdir)" but that did nothing for
me.
From | Date | Subject | |
---|---|---|---|
Next Message | Henshall, Stuart - Design & Print | 2002-11-04 16:52:00 | Re: Question |
Previous Message | Mike Blankemeyer | 2002-10-30 16:13:02 | Question |