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

Re: DEC OSF compile fails in buf_init.c

From: Yan Zhang Chen <yzc(at)mindspring(dot)net>
To: pgsql-ports(at)postgresql(dot)org
Subject: Re: DEC OSF compile fails in buf_init.c
Date: 1999-10-18 06:59:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-ports
Hi all! I saw the following bug report in the mailinglist archive,
but haven't seen much feedback/bugfix. I'm having the similar
problem when I was trying to compile postgresql 6.5.2 on Digital Unix 4.0d.
Wonder if anyone has worked out a fix, and kindly post it?

Thanks very much,

Port Bug Report: syntax errors in spinlocks (s_lock.h)

      From: Unprivileged user <nobody> 
      To: pgsql-ports(at)postgresql(dot)org 
      Subject: Port Bug Report: syntax errors in spinlocks (s_lock.h) 
      Date: Tue, 13 Apr 1999 12:43:28 -0400 (EDT) 

                        POSTGRESQL BUG REPORT TEMPLATE

Your name               : Jarda Benkovsky
Your email address      : benkovsk(at)pha(dot)pvt(dot)cz

Category                : install: compile
Severity                : serious

Summary: syntax errors in spinlocks (s_lock.h)

System Configuration
  Operating System   : Digital Unix 4.0e

  PostgreSQL version : 6.4.2

  Compiler used      : gcc 2.8.1, DEC C V5.8-009

Alpha 2100
uname -a: OSF1 V4.0 1091 alpha

Versions of other tools:
gnu make


Problem Description:
On Digital Unix alphas, msemaphores are defined as a struct of two ints.
Neither gcc, nor native do not like constructs like *(lock) = 0;

Native cc:

/usr/bin/cc -I../../../include -I../../../backend   -DNOFIXADE  -I../..   -c buf_init.c -o buf_init.o
cc: Error: buf_init.c, line 234: In this statement, "0" is of type "int", and cannot be converted to "struct declared without a tag". (noconvert)

../../../include/storage/s_lock.h: In function `tas':
In file included from buf_init.c:29:
../../../include/storage/s_lock.h:102: aggregate value used where an integer was expected
buf_init.c: In function `InitBufferPool':
buf_init.c:234: incompatible types in assignment

Especially the case of native CC is interesting, as there 
should not be such case and I was not able to reproduce 
it in controlled environment - but maybe I did some mistake
during the test.


Test Case:
./configure; make





pgsql-ports by date

Next:From: Pedro J. LoboDate: 1999-10-18 09:03:38
Subject: Re: [PORTS] Re: DEC OSF compile fails in buf_init.c
Previous:From: mikeDate: 1999-10-18 00:45:14
Subject: unlisted successful compilation

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