From owner-freebsd-python@FreeBSD.ORG Sat Dec 1 13:46:13 2012 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC8A98C7; Sat, 1 Dec 2012 13:46:13 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id D9C9E8FC16; Sat, 1 Dec 2012 13:46:12 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id je9so641022bkc.13 for ; Sat, 01 Dec 2012 05:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=DSSFDEbuNRtjQl7oinV1zFu6ADj/5QoRX7wnkahpqv4=; b=l//3xYJILRkPJ9AqjgUEtE15e4zGGeWbRz23ZedvtUgPJPcPT2Rb7Q+zr0Vh07glzs 1lnHpKexkfMB4s6pd0IA9At/rA7lnh8n5EPoiwltkycKMC10R6w1tlsgpVbU4oRDLRFI x0KGAxa62tK3FN+xqQsukjajEh2cRGIbR4T37aW/CDUBuleilvg95yqBd2jGlsiJXTPi 2V7cWFfdaRbkW/lc+6/YDSVQFR0t82HVPaM2SO38j96RTJ2BduXSRz5EU/4+TNFgtH1o JYurjFf+DSITMJDOxWBZvvKLBb60wpHvldnDc5eZUvMOMisoehgFKrxiJw2DKh47dkht F7pA== Received: by 10.204.130.140 with SMTP id t12mr1349878bks.39.1354369570623; Sat, 01 Dec 2012 05:46:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.167.71 with HTTP; Sat, 1 Dec 2012 05:45:40 -0800 (PST) In-Reply-To: References: <50B49EE5.2050100@FreeBSD.org> <50B4A07A.8040200@FreeBSD.org> <50B4B0D1.1000805@yandex.ru> <50B4BF1C.4000300@yandex.ru> From: Chris Rees Date: Sat, 1 Dec 2012 13:45:40 +0000 Message-ID: Subject: Re: Postgresql + Python To: Ruslan Mahmatkhanov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: =?ISO-8859-1?Q?Rafael_Esp=EDndola?= , Palle Girgensohn , "pgsql@freebsd.org" , python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2012 13:46:13 -0000 On 1 December 2012 12:57, Chris Rees wrote: > On 27 November 2012 13:24, Ruslan Mahmatkhanov wrote: >> Rafael Esp=EDndola wrote on 27.11.2012 16:29: >> >>> Well, if I'm not mistaken had tested "CONFIGURE_ARGS =3D - with-python'= ', >>> but had no success, but I could be mistaken. Anyway I did what I told y= ou >>> earlier and it worked perfectly, and this I care ehheheh, I was afflict= ed >>> with it. >>> >>> I come once again thank the interest in helping, it is important for th= e >>> FreeBSD project. I'm Brazilian, sorry for my English, or maybe I should= say >>> sorry for the English Google :) >> >> >> Just checked the build in my test environment (FreeBSD 9.0 i386, python >> 3.2.3, PYTHON_DEFAULT_VERSION=3Dpython3.2 in /etc/make.conf) and the bui= ld is >> indeed failed, but this way: >> >> cc -O2 -pipe -fno-strict-aliasing -Wall -Wmissing-prototypes -Wpointer-a= rith >> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrap= v >> -fPIC -DPIC -I. -I/usr/local/include/python3.2mu -I../../../src/include >> -I/usr/local/include -I/usr/local/include -c -o plpython.o plpython.c >> plpython.c: In function 'PLy_procedure_call': >> plpython.c:1170: warning: passing argument 1 of 'PyEval_EvalCode' from >> incompatible pointer type >> plpython.c:1187: warning: null format string >> plpython.c: In function 'PLy_procedure_get': >> plpython.c:1321: warning: implicit declaration of function 'PyCObject_Ch= eck' >> plpython.c:1324: warning: implicit declaration of function >> 'PyCObject_AsVoidPtr' >> plpython.c:1324: warning: assignment makes pointer from integer without = a >> cast >> plpython.c: In function 'PLy_procedure_create': >> plpython.c:1553: warning: implicit declaration of function >> 'PyCObject_FromVoidPtr' >> plpython.c:1553: warning: assignment makes pointer from integer without = a >> cast >> plpython.c: In function 'PLy_spi_prepare': >> plpython.c:2925: warning: null format string >> plpython.c: In function 'PLy_spi_execute_plan': >> plpython.c:3076: warning: null format string >> plpython.c: In function 'PLy_spi_execute_query': >> plpython.c:3122: warning: null format string >> cc -O2 -pipe -fno-strict-aliasing -Wall -Wmissing-prototypes -Wpointer-a= rith >> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrap= v >> -fPIC -DPIC -shared -o plpython3.so plpython.o -L../../../src/port >> -L/usr/local/lib -L/usr/local/lib -Wl,--as-needed >> -Wl,-R'/usr/local/lib/python3.2/config' -L/usr/local/lib/python3.2/confi= g >> -lpython3.2 -lutil -lm >> /usr/bin/ld: --just-symbols may not be used on DSO: >> /usr/local/lib/python3.2/config >> gmake: *** [plpython3.so] Error 1 >> *** Error code 2 >> >> It worked before, and I'm not sure how to fix this one. Python2 build wo= rks >> as expected. Any ideas? (Mostly asking Palle and pgsql@) >> > > This seems that we need to build more of PostgreSQL before trying to > build -plpython. > > I'll see which values need to be added to ${BUILD_DIRS} to make it compil= e! Try this: http://www.bayofrum.net/~crees/patches/plpython-build.diff Chris