============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               :       David Hill      
Your email address      :       [EMAIL PROTECTED]


System Configuration
---------------------
  Architecture (example: Intel Pentium)         : Compaq Alpha

  Operating System (example: Linux 2.0.26 ELF)  : Compaq Tru64 UNIX v4.0

  PostgreSQL version (example: PostgreSQL-6.5.3): PostgreSQL-6.5.3 

  Compiler used (example:  gcc 2.8.0)           : Compaq cc


Please enter a FULL description of your problem:
------------------------------------------------

The file ./src/pl/plpgsql/src/pl_comp.c failed to compile.  Diffs
between 6.5.3 and 6.5.2 show that the keyword extern was removed from a
number of variables. I found that I had to restore one of these extern
keywords or the compiler would complain of an uncompleted reference.
As the variable plpgsql_yytext is not defined within the contect
of pl_comp.c, the compiler was correct to complain.


Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 
----------------------------------------------------------------------

Compile using cc on Compaq's Tru64 v4.0d or later.



If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

Diff of my fix:

The file is ./src/pl/plpgsql/src/pl_comp.c 

*** pl_comp.c   Thu Sep 23 15:13:55 1999
--- /tmp/pl_comp.c      Thu Mar 23 16:36:05 2000
***************
*** 69,75 ****
   */
  PLPGSQL_YYSTYPE plpgsql_yylval;
  int           plpgsql_yylineno;
! char  plpgsql_yytext[];
  
  void  plpgsql_yyerror(const char *s);
  
--- 69,75 ----
   */
  PLPGSQL_YYSTYPE plpgsql_yylval;
  int           plpgsql_yylineno;
! extern char   plpgsql_yytext[];
  
  void  plpgsql_yyerror(const char *s);
  

Reply via email to