From: | Urban Widmark <urban(at)svenskatest(dot)se> |
---|---|
To: | Ross Johnson <rpj(at)ise(dot)canberra(dot)edu(dot)au> |
Cc: | pgsql-ports(at)hub(dot)org |
Subject: | Re: Procedural Language module loading on Solaris/GCC |
Date: | 2000-07-20 22:07:21 |
Message-ID: | Pine.LNX.4.21.0007202337150.11722-100000@cola.svenskatest.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
On Thu, 20 Jul 2000, Ross Johnson wrote:
> I've built 7.0.2 on Solaris 7 using GCC 2.95.2. All seems to be ok
> except the procedural language module isn't loading. I've tried
[snip]
> psql:test.sql:18: ERROR: Load of file
> /usr/local/postgresql/lib/plpgsql.so failed: ld.so.1:
> /usr/local/postgresql/bin/postmaster: fatal: relocation error: file
> /usr/local/postgresql/lib/plpgsql.so: symbol CurrentMemoryContext:
> referenced symbol not found
Welcome to the club ... :)
> The only other clue I have on this is that the gcc install readme
> suggests using the Sun ld because the GNU ld has some obscure problem
> on Solaris. The build used Sun's ld.
ld from GNU binutils will most likely not make you happier.
You could try the patch below from Carlos Villegas and see if that helps.
It didn't for me (Solaris 2.5.1) so I'm very interested to hear if it
works for you.
/Urban
diff -c -r postgresql-7.0.2/src/backend/port/dynloader/solaris_sparc.h
postgresql-7.0.2-sol26/src/backend/port/dynloader/solaris_sparc.h
*** postgresql-7.0.2/src/backend/port/dynloader/solaris_sparc.h Wed Jan 26 14:56:44 2000
--- postgresql-7.0.2-sol26/src/backend/port/dynloader/solaris_sparc.h Wed Jul 19 00:01:39 2000
***************
*** 31,37 ****
* library as the file to be dynamically loaded.
*
*/
! #define pg_dlopen(f) dlopen(f,1)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
--- 31,37 ----
* library as the file to be dynamically loaded.
*
*/
! #define pg_dlopen(f) dlopen(f,1|RTLD_PARENT)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
From | Date | Subject | |
---|---|---|---|
Next Message | Marc G. Fournier | 2000-07-22 15:36:15 | Re: stringinfo.c compile error - Std Solaris 8 |
Previous Message | Ross Johnson | 2000-07-20 05:14:30 | Procedural Language module loading on Solaris/GCC |