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

PostgreSQL 8.0.0beta2 compile error with Sun CC.

From: Mark Round <mark(at)markround(dot)com>
To: pgsql-ports(at)postgresql(dot)org
Subject: PostgreSQL 8.0.0beta2 compile error with Sun CC.
Date: 2004-09-24 13:23:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-ports
                        POSTGRESQL BUG REPORT TEMPLATE

Your name               : Mark Round
Your email address      : mark(at)markround(dot)com

System Configuration
  Architecture (example: Intel Pentium)         : Sparc (UltraSparc IIi)

  Operating System (example: Linux 2.4.18)      : Solaris 8

  PostgreSQL version (example: PostgreSQL-8.0):   PostgreSQL-8.0.0beta2

  Compiler used (example:  gcc 2.95.2)          : Sun C 5.5 2003/03/12

Please enter a FULL description of your problem:
Compilation fails with the error that ".seg" is no a recognised opcode.
The error is in src/backend/storage/lmgr/s_lock.c , lines 228 and 229.

Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
Compile using Sun's C compiler.

If you know how this problem might be fixed, list the solution below:
.seg should be changed to .section.
Lines 229 and 229 in s_lock.c should be changed to the following :

  asm(".section \"data\"");
  asm(".section \"text\"");

 From SPARC assembly manual : "This pseudo-op (.seg) is 
currently supported for compatibility with existing SunOS 4.1 SPARC 
assembly language programs. This pseudo-op has been replaced by the 
.section pseudo-op."


pgsql-ports by date

Next:From: Tom LaneDate: 2004-09-24 14:42:18
Subject: Re: PostgreSQL 8.0.0beta2 compile error with Sun CC.
Previous:From: Tom LaneDate: 2004-09-18 16:12:11
Subject: Re:

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