Skip site navigation (1) Skip section navigation (2)

Re: compile warnings

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: compile warnings
Date: 2004-07-01 05:18:40
Message-ID: 22501.1088659120@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Joe Conway <mail(at)joeconway(dot)com> writes:
> In addition to the ecpg warnings mentioned by Tom, I'm also seeing 
> compile warnings wrt plpython:

> make[3]: Entering directory `/opt/src/pgsql-cvs/pgsql-7.5/src/pl/plpython'
> gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes 
> -Wmissing-declarations -fpic -I. -I/usr/include/python2.3 
> -I../../../src/include -D_GNU_SOURCE  -I/usr/include/et  -c -o 
> plpython.o plpython.c -MMD
> In file included from /usr/include/python2.3/Python.h:8,
>                   from plpython.c:58:
> /usr/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" 
> redefined
> In file included from /usr/include/stdio.h:28,
>                   from ../../../src/include/c.h:60,
>                   from ../../../src/include/postgres.h:48,
>                   from plpython.c:37:
> /usr/include/features.h:131:1: warning: this is the location of the 
> previous definition
> ar crs libplpython.a plpython.o

I think this must be breakage in your local python installation, not in
Postgres.  Note the complaint is that /usr/include/python2.3/pyconfig.h
disagrees with /usr/include/features.h ... it's not hard to decide who's
at fault there.  PG could be an accessory to the crime, but AFAICS we've
not mucked with include order or predefined symbols for plpython.c
lately; so if we broke it, it was awhile ago.

This is surely not a "must fix tomorrow" issue, but please look into it
when you get back from your road trip.

(Where are you going, anyway?  3600 miles is a long way...)

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Joe ConwayDate: 2004-07-01 05:25:27
Subject: Re: compile warnings
Previous:From: Potemkin EvgenDate: 2004-07-01 05:04:26
Subject: Re: recursive SQL

pgsql-patches by date

Next:From: Joe ConwayDate: 2004-07-01 05:25:27
Subject: Re: compile warnings
Previous:From: joseph speigleDate: 2004-07-01 05:02:22
Subject: possibly updating techdocs; mysql2pgsql on gborg

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group