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: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

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

ERROR:  Load of file /usr/local/pgsql/lib/ failed:
/usr/local/pgsql/bin/postmaster: fatal: relocation error: file
/usr/local/pgsql/lib/ 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

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.


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


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-2017 The PostgreSQL Global Development Group