Re: solaris 10 with gcc 3.3.2 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: solaris 10 with gcc 3.3.2
Date
Msg-id 25273.1102831421@sss.pgh.pa.us
Whole thread Raw
In response to solaris 10 with gcc 3.3.2  ("Belbin, Peter" <PBelbin@McLeodUSA.com>)
List pgsql-bugs
"Belbin, Peter" <PBelbin@McLeodUSA.com> writes:
> Should I be able to compile with gcc 3.3.2 (from sunfreeware) on solaris 10?

Yes ...

> gcc -DPOSIX -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels
> -fno-strict-aliasing -I../../src/port -DFRONTEND -I../../src/include   -c -o
> exec.o exec.c
> In file included from /usr/include/sys/wait.h:24,
>                  from exec.c:26:
> /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
> /usr/include/sys/siginfo.h:292: error: parse error before '}' token

This looks like your platform's <sys/wait.h> is not designed to be
included free-standing, but requires certain other system headers to be
included first.  (This is poor practice, but seen all too often :-()
A fairly likely guess is that the missing header is <sys/types.h>.
You might be able to find out for sure by checking the man page for
waitpid() and related system calls ... or just try hacking exec.c till
it compiles.

It's likely that exec.c is not the only place missing the extra
include(s).  Please send a patch after you get it all to build.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: bug at build_dummy_tuple
Next
From: Bulent Potur
Date:
Subject: I am not sure this is a bug but I request help