Thread: Postgresql 7.0.3 - compilation failure. Need help.

Postgresql 7.0.3 - compilation failure. Need help.

From
"Latha K. Ramaswamy"
Date:
My     name :   Latha Ramaswamy
My email address :               :   latha@sscsi.com


System Configuration
---------------------
  Architecture (example: Intel Pentium)                  :   Sparc

  Operating System (example: Linux 2.0.26 ELF) :   SunOS 5.8  (Solaris 8)

  PostgreSQL version (example: PostgreSQL-6.5.2):   PostgreSQL-7.0.3 

  Compiler used (example:  gcc 2.8.0) :   gcc 2.95.2



Postgres failed to compile on my system with or without any configuration options.

'gmake' died with this error message every time I tried to compile:

gmake[2]: Entering directory `/home/packages/src/postgresql-7.0.3/src/backend/lib'
gcc -I../../include -I../../backend   -O2 -Wall -Wmissing-prototypes -I..    -c stringinfo.c -o stringinfo.o
stringinfo.c: In function `appendStringInfo':
stringinfo.c:115: `va_list' undeclared (first use in this function)
stringinfo.c:115: (Each undeclared identifier is reported only once
stringinfo.c:115: for each function it appears in.)
stringinfo.c:115: parse error before `args'
stringinfo.c:121: warning: implicit declaration of function `va_start'
stringinfo.c:121: `args' undeclared (first use in this function)
stringinfo.c:123: warning: implicit declaration of function `va_end'
gmake[2]: *** [stringinfo.o] Error 1
gmake[2]: Leaving directory `/home/packages/src/postgresql-6.5.2/src/backend/lib'
gmake[1]: *** [lib.dir] Error 2
gmake[1]: Leaving directory `/home/packages/src/postgresql-6.5.2/src/backend'
gmake: *** [all] Error 2
../backend/nodes/list.c also had the same error with 'va-list' being undeclared.
 
Thanks,
Latha.

Re: Postgresql 7.0.3 - compilation failure. Need help.

From
Tom Lane
Date:
See attached.

------- Forwarded Message

Date:    Mon, 05 Feb 2001 21:33:45 -0500
From:    Tom Lane <tgl@sss.pgh.pa.us>
To:      "J.Goodleaf" <john@goodleaf.net>
cc:      "Martin A. Marques" <martin@math.unl.edu.ar>,
     pgsql-general@postgresql.org
Subject: Re: [GENERAL] Re: Solaris 8 compilation errors _OUTPUT

"J.Goodleaf" <john@goodleaf.net> writes:
> stringinfo.c: In function `appendStringInfo':
> stringinfo.c:104: `va_list' undeclared (first use in this function)
> stringinfo.c:104: (Each undeclared identifier is reported only once
> stringinfo.c:104: for each function it appears in.)
> stringinfo.c:104: parse error before `args'
> stringinfo.c:121: warning: implicit declaration of function `va_start'
> stringinfo.c:121: `args' undeclared (first use in this function)
> stringinfo.c:124: warning: implicit declaration of function `va_end'

In src/include/c.h, try including <stddef.h> and <stdarg.h>
unconditionally --- that is, remove #ifdef STDC_HEADERS / #endif
near line 53.  This is what we are doing in the 7.1 sources...

            regards, tom lane

------- End of Forwarded Message


RE: Postgresql 7.0.3 - compilation failure. Need help.

From
"Reimer, Fred"
Date:
va_list is declared in stdarg.h on Solaris 2.7, and is probably on Solaris 2.8 also.  For a "quick fix" try #including that at the top of the two files that fail.  The "real" fix would be to fix configure so that it properly detects where va_list is declared, or put the appropriate #if statements in the source files...
 
HTH,
 
Fred Reimer
Eclipsys Corporation
-----Original Message-----
From: pgsql-ports-owner@postgresql.org [mailto:pgsql-ports-owner@postgresql.org]On Behalf Of Latha K. Ramaswamy
Sent: Thursday, February 01, 2001 2:50 PM
To: pgsql-ports@postgresql.org
Subject: [PORTS] Postgresql 7.0.3 - compilation failure. Need help.

My     name :   Latha Ramaswamy
My email address :               :   latha@sscsi.com


System Configuration
---------------------
  Architecture (example: Intel Pentium)                  :   Sparc

  Operating System (example: Linux 2.0.26 ELF) :   SunOS 5.8  (Solaris 8)

  PostgreSQL version (example: PostgreSQL-6.5.2):   PostgreSQL-7.0.3 

  Compiler used (example:  gcc 2.8.0) :   gcc 2.95.2



Postgres failed to compile on my system with or without any configuration options.

'gmake' died with this error message every time I tried to compile:

gmake[2]: Entering directory `/home/packages/src/postgresql-7.0.3/src/backend/lib'
gcc -I../../include -I../../backend   -O2 -Wall -Wmissing-prototypes -I..    -c stringinfo.c -o stringinfo.o
stringinfo.c: In function `appendStringInfo':
stringinfo.c:115: `va_list' undeclared (first use in this function)
stringinfo.c:115: (Each undeclared identifier is reported only once
stringinfo.c:115: for each function it appears in.)
stringinfo.c:115: parse error before `args'
stringinfo.c:121: warning: implicit declaration of function `va_start'
stringinfo.c:121: `args' undeclared (first use in this function)
stringinfo.c:123: warning: implicit declaration of function `va_end'
gmake[2]: *** [stringinfo.o] Error 1
gmake[2]: Leaving directory `/home/packages/src/postgresql-6.5.2/src/backend/lib'
gmake[1]: *** [lib.dir] Error 2
gmake[1]: Leaving directory `/home/packages/src/postgresql-6.5.2/src/backend'
gmake: *** [all] Error 2
../backend/nodes/list.c also had the same error with 'va-list' being undeclared.
 
Thanks,
Latha.