Re: cvs head compile failure

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: cvs head compile failure
Дата
Msg-id 3F2AA1F3.10706@joeconway.com
обсуждение исходный текст
Ответ на cvs head compile failure  (Joe Conway <mail@joeconway.com>)
Ответы Re: cvs head compile failure  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
Joe Conway wrote:
> I'm getting an ecpg related compile failure on cvs tip:
>
> gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations -fpic
> -I../../../../src/interfaces/ecpg/include
> -I../../../../src/include/utils -I../../../../src/include  -g  -c -o
> timestamp.o timestamp.c -MMD
> timestamp.c: In function `dttofmtasc_replace':
> timestamp.c:549: union has no member named `replace_int64'
> make[4]: *** [timestamp.o] Error 1
> make[4]: Leaving directory `/opt/src/pgsql/src/interfaces/ecpg/pgtypeslib'
>

Looks like a simple matter of replacing "replace_int64" with "int64_val"
at line 549 in src/interfaces/ecpg/pgtypeslib/timestamp.c

Joe
Index: src/interfaces/ecpg/pgtypeslib/timestamp.c
===================================================================
RCS file: /opt/src/cvs/pgsql-server/src/interfaces/ecpg/pgtypeslib/timestamp.c,v
retrieving revision 1.11
diff -c -r1.11 timestamp.c
*** src/interfaces/ecpg/pgtypeslib/timestamp.c    1 Aug 2003 08:21:04 -0000    1.11
--- src/interfaces/ecpg/pgtypeslib/timestamp.c    1 Aug 2003 17:57:11 -0000
***************
*** 546,552 ****
                      break;
                  case 's':
  #ifdef HAVE_INT64_TIMESTAMP
!                     replace_val.replace_int64 = ((*ts - SetEpochTimestamp()) / 1000000e0);
                      replace_type = PGTYPES_TYPE_INT64;
  #else
                      replace_val.double_val = *ts - SetEpochTimestamp();
--- 546,552 ----
                      break;
                  case 's':
  #ifdef HAVE_INT64_TIMESTAMP
!                     replace_val.int64_val = ((*ts - SetEpochTimestamp()) / 1000000e0);
                      replace_type = PGTYPES_TYPE_INT64;
  #else
                      replace_val.double_val = *ts - SetEpochTimestamp();

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: cvs head compile failure
Следующее
От: Josh Berkus
Дата:
Сообщение: PostgreSQL on OS/400 and/or LPAR?