Re: 7.4Beta1: Compile Failure: UnixWare 7.1.3UP2

Lists: pgsql-hackers
From: Larry Rosenman <ler(at)lerctr(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: 7.4Beta1: Compile Failure: UnixWare 7.1.3UP2
Date: 2003-08-06 01:16:28
Message-ID: 64880000.1060132588@lerlaptop.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


cc -O -K inline -g -I../../../../src/include -I/usr/local/include -c -o
printtup.o printtup.c
UX:cc: WARNING: debugging and optimization mutually exclusive; -O disabled
UX:acomp: ERROR: "printtup.c", line 94: undefined struct/union member:
_shutdown
UX:acomp: WARNING: "printtup.c", line 94: improper pointer/integer
combination: op "="
gmake[4]: *** [printtup.o] Error 1
gmake[4]: Leaving directory
`/home/ler/pg-dev/postgresql-7.4beta1/src/backend/access/common'
gmake[3]: *** [common-recursive] Error 2
gmake[3]: Leaving directory
`/home/ler/pg-dev/postgresql-7.4beta1/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory
`/home/ler/pg-dev/postgresql-7.4beta1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/ler/pg-dev/postgresql-7.4beta1/src'
gmake: *** [all] Error 2
$
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: 7.4Beta1: Compile Failure: UnixWare 7.1.3UP2
Date: 2003-08-06 16:11:24
Message-ID: 20179.1060186284@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Larry Rosenman <ler(at)lerctr(dot)org> writes:
> cc -O -K inline -g -I../../../../src/include -I/usr/local/include -c -o
> printtup.o printtup.c
> UX:cc: WARNING: debugging and optimization mutually exclusive; -O disabled
> UX:acomp: ERROR: "printtup.c", line 94: undefined struct/union member:
> _shutdown

Hmm, that line is

self->pub.shutdown = printtup_shutdown;

Apparently, somewhere in your system headers is

#define shutdown _shutdown

which would not hurt us if it were applied consistently --- but
evidently the DestReceiver struct definition in tcop/dest.h is
read before we encounter the macro definition. Yech. Can you
find which system header is thus polluting the namespace?

regards, tom lane


From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: 7.4Beta1: Compile Failure: UnixWare 7.1.3UP2
Date: 2003-08-06 16:18:06
Message-ID: 73090000.1060186686@lerlaptop.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

--On Wednesday, August 06, 2003 12:11:24 -0400 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
wrote:

> Larry Rosenman <ler(at)lerctr(dot)org> writes:
>> cc -O -K inline -g -I../../../../src/include -I/usr/local/include -c -o
>> printtup.o printtup.c
>> UX:cc: WARNING: debugging and optimization mutually exclusive; -O
>> disabled UX:acomp: ERROR: "printtup.c", line 94: undefined struct/union
>> member: _shutdown
>
> Hmm, that line is
>
> self->pub.shutdown = printtup_shutdown;
>
> Apparently, somewhere in your system headers is
>
> #define shutdown _shutdown
>
> which would not hurt us if it were applied consistently --- but
> evidently the DestReceiver struct definition in tcop/dest.h is
> read before we encounter the macro definition. Yech. Can you
> find which system header is thus polluting the namespace?

> sys/socket.h:#define shutdown _shutdown

> regards, tom lane

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: 7.4Beta1: Compile Failure: UnixWare 7.1.3UP2
Date: 2003-08-06 17:28:01
Message-ID: 29671.1060190881@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Larry Rosenman <ler(at)lerctr(dot)org> writes:
> sys/socket.h:#define shutdown _shutdown

Mph. I wonder if any other platforms do that? Well, I'd better assume
that shutdown isn't a safe name for a globally visible field. I'll
rename it.

regards, tom lane