Re: [HACKERS] PostgreSQL on Solaris/SPARC with gcc

From: Oleg Broytmann <phd(at)phd(dot)russ(dot)ru>
To: Horák Daniel <horak(at)sit(dot)plzen-city(dot)cz>
Cc: "'pgsql-hackers(at)postgreSQL(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] PostgreSQL on Solaris/SPARC with gcc
Date: 2000-03-01 16:14:10
Message-ID: Pine.LNX.4.21.0003011612330.12236-100000@fep132.fep.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 1 Mar 2000, [iso-8859-2] HorАk Daniel wrote:
> I have a report from compiling PostgreSQL 6.5.3 on Solaris/SPARC with gcc/ld
> (it was not run by me, I was ask to help to solve this problem). Everything
> goes OK (with template solaris_sparc_gcc autodetected when running
> configure) but when trying to load plpgsql or other loaded module it woes
> with
>
> ERROR: Load of file /usr/local/pgsql/lib/plpgsql.so failed: ld.so.1:
> /usr/local/pgsql/bin/postmaster: fatal: relocation error: file
> /usr/local/pgsql/lib/plpgsql.so: symbol CurrentMemoryContext: referenced
> symbol not found
>
> it is caused by the fact that the symbol CurrentMemoryContext is not
> exported from the main executable (postmaster). The solution is to use
> "-export-dynamic" switch when linking postgres executable (it is used on
> Linux).
>
> I think it will require a new system specific makefile. The
> Makefile.solaris_sparc is done for solaric_sparc_cc template. More details
> can be send.

I ran many versions of Postgres (6.4.2, 6.5, 6.5.2, 7.0beta1) on Sun
SPARC Solaris 2.5.1, compiled with gcc 2.8.1 and never saw any such
problem...

Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2/ phd2(at)earthling(dot)net
Programmers don't die, they just GOSUB without RETURN.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2000-03-01 16:33:52 Re: [HACKERS] rpms
Previous Message Horák Daniel 2000-03-01 16:01:10 PostgreSQL on Solaris/SPARC with gcc