Skip site navigation (1) Skip section navigation (2)

PostgreSQL on Solaris/SPARC with gcc

From: Horák Daniel <horak(at)sit(dot)plzen-city(dot)cz>
To: "'pgsql-hackers(at)postgreSQL(dot)org'" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: PostgreSQL on Solaris/SPARC with gcc
Date: 2000-03-01 16:01:10
Message-ID: E33858CBACEDD3118C6700A024B3BF909955CC@exchange.mmp.plzen-city.cz (view raw or flat)
Thread:
Lists: pgsql-hackers
Hello,

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.


			Dan

----------------------------------------------
Daniel Horak
network and system administrator
e-mail: horak(at)sit(dot)plzen-city(dot)cz
privat e-mail: dan(dot)horak(at)email(dot)cz ICQ:36448176
----------------------------------------------

Responses

pgsql-hackers by date

Next:From: Oleg BroytmannDate: 2000-03-01 16:14:10
Subject: Re: [HACKERS] PostgreSQL on Solaris/SPARC with gcc
Previous:From: Tom LaneDate: 2000-03-01 15:52:07
Subject: BIT/BIT VARYING names (was Re: [HACKERS] Beta for 4:30AST)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group