Thread: compilation error

compilation error

From
pgsql-bugs@postgresql.org
Date:
suresh (suresh.sv@team.indiainfo.com) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
compilation error

Long Description
Hi

Iam installing postgresql-7.0.3 on solaris sparc 2.7.
In that machine i installed flex, gnu-make ,readline
and bison i installed.But with  ./configure  --prefix=.....
it is working fine.But with make it is giving me the following error.

thanx in advance
Suresh
suresh.sv@team.indiainfo.com

Sample Code
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'
make[2]: *** [stringinfo.o] Error 1
make[2]: Leaving directory `/usr/share/src/postgresql-6.5.3/src/backend/lib'
make[1]: *** [lib.dir] Error 2
make[1]: Leaving directory `/usr/share/src/postgresql-6.5.3/src/backend'
make: *** [all] Error 2

No file was uploaded with this report

Re: compilation error

From
Tom Lane
Date:
pgsql-bugs@postgresql.org writes:
> stringinfo.c:115: `va_list' undeclared (first use in this function)

Try changing src/include/c.h so that <stddef.h> and <stdarg.h> are
included unconditionally (near line 53) and remove #include <varargs.h>
near line 770.

Or try 7.1RC2 or later --- these changes are already made for 7.1.

            regards, tom lane

RE: compilation error

From
"Darren King"
Date:
> Iam installing postgresql-7.0.3 on solaris sparc 2.7.
>
> ...
>
> `/usr/share/src/postgresql-6.5.3/src/backend/lib'
> make[1]: *** [lib.dir] Error 2
> make[1]: Leaving directory
> `/usr/share/src/postgresql-6.5.3/src/backend'
> make: *** [all] Error 2

Looks like there's a little version mixing going on here.

You say you're trying to install 7.0.3, but the make appears to be
trying to compile 6.5.3...

darrenk