Port Bug Report: buf_init.c does not compile (spin lock problem?)

Поиск
Список
Период
Сортировка
От Unprivileged user
Тема Port Bug Report: buf_init.c does not compile (spin lock problem?)
Дата
Msg-id 199906171601.MAA52218@hub.org
обсуждение исходный текст
Ответы Re: [PORTS] Port Bug Report: buf_init.c does not compile (spin lock problem?)  ("Pedro J. Lobo" <pjlobo@euitt.upm.es>)
Список pgsql-ports
============================================================================
                        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:
---------


--------------------------------------------------------------------------


В списке pgsql-ports по дате отправления:

Предыдущее
От: Unprivileged user
Дата:
Сообщение: Port Bug Report: libpq result->fsize returns -1 for type CHAR
Следующее
От: "Pedro J. Lobo"
Дата:
Сообщение: Re: [PORTS] Port Bug Report: buf_init.c does not compile (spin lock problem?)