PostgreSQL 8.0.0beta2 compile error with Sun CC. - Mailing list pgsql-ports

From Mark Round
Subject PostgreSQL 8.0.0beta2 compile error with Sun CC.
Date
Msg-id 41541FE4.2070103@markround.com
Whole thread Raw
Responses Re: PostgreSQL 8.0.0beta2 compile error with Sun CC.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               : Mark Round
Your email address      : mark@markround.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 docs.sun.com 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:

Previous
From: Tom Lane
Date:
Subject: Re:
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL 8.0.0beta2 compile error with Sun CC.