Problem with python compile

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Cc: dwallace(at)udel(dot)edu, darcy(at)druid(dot)net
Subject: Problem with python compile
Date: 2002-03-25 01:49:11
Message-ID: 200203250149.g2P1nBn20469@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I am seeing the following warning message when compiling
interfaces/python:

---------------------------------------------------------------------------

gcc -O2 -pipe -m486 -Wall -Wmissing-prototypes -Wmissing-declarations -O0 -Wall
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wcast-align -fpic -
I../../../src/interfaces/libpq -I../../../src/include -I/usr/local/include/readl
ine -I/usr/contrib/include -I/usr/contrib/include/python1.5 -c -o pgmodule.o pg
module.c
pgmodule.c: In function `pgsource_dealloc':
pgmodule.c:346: warning: implicit declaration of function `PyObject_DEL'

---------------------------------------------------------------------------

This was introduced by the following patch:

---------------------------------------------------------------------------

Revision 1.35 / (download) - annotate - [select for diffs] , Wed Mar 20 14:36:06 2002 UTC (4 days, 11 hours ago) by darcy
CVS Tags: HEAD
Changes since 1.34: +4 -4 lines
Diff to previous 1.34

PyGreSQL causes a segfault when used with a Python executable that was
compiled with --with-pymalloc. This change fixes that. Thanks to
Dave Wallace <dwallace(at)udel(dot)edu>

---------------------------------------------------------------------------

The patch changes PyMem_DEL(self) to PyObject_DEL(self).

This is with python 1.5. I suggest that we should reverse out this patch.
The fix for --with-pymalloc clearly is causing problems for regular
compiles.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bernhard Herzog 2002-03-25 11:18:56 Re: Problem with python compile
Previous Message Murphy Pope 2002-03-25 00:37:15 A dynamic SQL/ecpg question