============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================
Your name : St�phane Bortzmeyer
Your email address : bortzmeyer@pasteur.fr
Category : install: compile
Severity : critical
Summary: buf_init.c does not compile (spin lock problem?)
System Configuration
--------------------
Operating System : Digital Unix 4.0E (Rev. 1091)
PostgreSQL version : 6.5
Compiler used : egcs 1.1.2 (2.91.66)
Hardware:
---------
Alpha
Versions of other tools:
------------------------
GNU Make version 3.77
flex version 2.5.4
--------------------------------------------------------------------------
Problem Description:
--------------------
gcc -I../../../include -I../../../backend -DNOFIXADE -Wall -Wmissing-prototypes -I../.. -c buf_init.c -o buf_init.o
In file included from /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0e/egcs-2.91.66/include/stdarg.h:36,
from ../../../include/c.h:52,
from ../../../include/postgres.h:42,
from buf_init.c:20:
/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0e/egcs-2.91.66/include/va-alpha.h:36: warning: redefinition of `va_list'
/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0e/egcs-2.91.66/include/va_list.h:7: warning: `va_list' previously declared
here
../../../include/storage/s_lock.h: In function `tas':
In file included from buf_init.c:29:
../../../include/storage/s_lock.h:104: aggregate value used where an integer was expected
buf_init.c: In function `InitBufferPool':
buf_init.c:219: incompatible types in assignment
buf_init.c:220: incompatible types in assignment
make[3]: *** [buf_init.o] Error 1
Line 219 and 220 are :
#ifdef HAS_TEST_AND_SET
S_INIT_LOCK(&(buf->io_in_progress_lock));
S_INIT_LOCK(&(buf->cntx_lock));
#endif
--------------------------------------------------------------------------
Test Case:
----------
make
--------------------------------------------------------------------------
Solution:
---------
--------------------------------------------------------------------------