Re: [GENERAL] postgresql sources compiling

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [GENERAL] postgresql sources compiling
Дата
Msg-id 199908270510.BAA09470@candle.pha.pa.us
обсуждение исходный текст
Ответ на postgresql sources compiling  (Yury Don <yura@vpcit.ru>)
Список pgsql-general
Yes, we have seen this.  Apply this.

[Charset koi8-r unsupported, filtering to ASCII...]
> Hi All.
>
> I try to compile postgresql sources (on Debian Linux, libc6 2.1) and get
> the folloing message:
>
> make -C src all
> make[1]: Entering directory
> `/home/sasha/t/postgresql-6.5.1/src/pl/plpgsql/src'
> gcc -I../../../include -I../../../backend   -O2 -g3 -Wall
> -Wmissing-prototypes -I../../../interfaces/libpq -I../../../include
> -I../../../backend -fpic -c -o pl_parse.o pl_gram.c
> In file included from gram.y:43:
> lex.plpgsql_yy.c:830: warning: no previous prototype for `plpgsql_yylex'
> scan.l: In function `plpgsql_yylex':
> scan.l:85: `K_ASSIGN' undeclared (first use in this function)
> scan.l:85: (Each undeclared identifier is reported only once
> scan.l:85: for each function it appears in.)
> scan.l:87: `K_DOTDOT' undeclared (first use in this function)
> scan.l:88: `K_ALIAS' undeclared (first use in this function)
> scan.l:89: `K_BEGIN' undeclared (first use in this function)
> scan.l:90: `T_BPCHAR' undeclared (first use in this function)
> scan.l:91: `T_CHAR' undeclared (first use in this function)
> scan.l:92: `K_CONSTANT' undeclared (first use in this function)
> scan.l:93: `K_DEBUG' undeclared (first use in this function)
> scan.l:94: `K_DECLARE' undeclared (first use in this function)
> scan.l:95: `K_DEFAULT' undeclared (first use in this function)
> scan.l:96: `K_ELSE' undeclared (first use in this function)
> scan.l:97: `K_END' undeclared (first use in this function)
> scan.l:98: `K_EXCEPTION' undeclared (first use in this function)
> scan.l:99: `K_EXIT' undeclared (first use in this function)
> scan.l:100: `K_FOR' undeclared (first use in this function)
> scan.l:101: `K_FROM' undeclared (first use in this function)
> scan.l:102: `K_IF' undeclared (first use in this function)
> scan.l:103: `K_IN' undeclared (first use in this function)
> scan.l:104: `K_INTO' undeclared (first use in this function)
> scan.l:105: `K_LOOP' undeclared (first use in this function)
> scan.l:106: `K_NOT' undeclared (first use in this function)
> scan.l:107: `K_NOTICE' undeclared (first use in this function)
> scan.l:108: `K_NULL' undeclared (first use in this function)
> scan.l:109: `K_PERFORM' undeclared (first use in this function)
> scan.l:110: `K_RAISE' undeclared (first use in this function)
> scan.l:111: `K_RECORD' undeclared (first use in this function)
> scan.l:112: `K_RENAME' undeclared (first use in this function)
> scan.l:113: `K_RETURN' undeclared (first use in this function)
> scan.l:114: `K_REVERSE' undeclared (first use in this function)
> scan.l:115: `K_SELECT' undeclared (first use in this function)
> scan.l:116: `K_THEN' undeclared (first use in this function)
> scan.l:117: `K_TO' undeclared (first use in this function)
> scan.l:118: `K_TYPE' undeclared (first use in this function)
> scan.l:119: `T_VARCHAR' undeclared (first use in this function)
> scan.l:120: `K_WHEN' undeclared (first use in this function)
> scan.l:121: `K_WHILE' undeclared (first use in this function)
> scan.l:123: `O_OPTION' undeclared (first use in this function)
> scan.l:124: `O_DUMP' undeclared (first use in this function)
> scan.l:139: `T_NUMBER' undeclared (first use in this function)
> scan.l:174: `T_STRING' undeclared (first use in this function)
> lex.plpgsql_yy.c:927: warning: label `find_rule' defined but not used
> y.tab.c: At top level:
> y.tab.c:840: warning: no previous prototype for `plpgsql_yyparse'
> y.tab.c: In function `plpgsql_yyparse':
> y.tab.c:863: warning: suggest parentheses around assignment used as
> truth value
> y.tab.c:907: warning: implicit declaration of function `plpgsql_yyerror'
> y.tab.c:912: warning: label `plpgsql_yyerrlab' defined but not used
> y.tab.c:907: warning: label `plpgsql_yynewerror' defined but not used
> y.tab.c: At top level:
> pl_gram.c:2: warning: `plpgsql_yysccsid' defined but not used
> lex.plpgsql_yy.c:2153: warning: `plpgsql_yy_flex_realloc' defined but
> not used
> lex.plpgsql_yy.c:1635: warning: `plpgsql_yyunput' defined but not used
> make[1]: *** [pl_parse.o] Error 1
> make[1]: Leaving directory
> `/home/sasha/t/postgresql-6.5.1/src/pl/plpgsql/src'
> make: [all] Error 2 (ignored)
>
> Any suggestions?
>
> Sincerely yours, Yury.
> don.web-page.net, ICQ 11831432
>
> ************
>
>


--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
Index: gram.y
===================================================================
RCS file: /usr/local/cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v
retrieving revision 1.4
retrieving revision 1.7
diff -c -r1.4 -r1.7
*** gram.y    1999/03/21 02:27:47    1.4
--- gram.y    1999/08/16 19:57:21    1.7
***************
*** 4,10 ****
   *              procedural language
   *
   * IDENTIFICATION
!  *    $Header: /usr/local/cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.4 1999/03/21 02:27:47 tgl Exp $
   *
   *    This software is copyrighted by Jan Wieck - Hamburg.
   *
--- 4,10 ----
   *              procedural language
   *
   * IDENTIFICATION
!  *    $Header: /usr/local/cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.7 1999/08/16 19:57:21 momjian Exp $
   *
   *    This software is copyrighted by Jan Wieck - Hamburg.
   *
***************
*** 39,47 ****
  #include "stdio.h"
  #include "string.h"
  #include "plpgsql.h"

- #include "pl_scan.c"

  static    PLpgSQL_expr    *read_sqlstmt(int until, char *s, char *sqlstart);
  static    PLpgSQL_stmt    *make_select_stmt(void);
  static    PLpgSQL_expr    *make_tupret_expr(PLpgSQL_row *row);
--- 39,50 ----
  #include "stdio.h"
  #include "string.h"
  #include "plpgsql.h"
+ #ifdef YYBISON
+ #include "pl_scan.c" /* GNU bison wants it here */
+ #endif


+
  static    PLpgSQL_expr    *read_sqlstmt(int until, char *s, char *sqlstart);
  static    PLpgSQL_stmt    *make_select_stmt(void);
  static    PLpgSQL_expr    *make_tupret_expr(PLpgSQL_row *row);
***************
*** 1079,1084 ****
--- 1082,1092 ----
          ;

  %%
+
+ #ifndef YYBISON
+ #include "pl_scan.c" /* BSD yacc wants it here */
+ #endif
+

  PLpgSQL_expr *
  plpgsql_read_expression (int until, char *s)

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

Предыдущее
От: Yury Don
Дата:
Сообщение: postgresql sources compiling
Следующее
От: "Natalya S. Makushina"
Дата:
Сообщение: Problem with postgres log file