Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2012 13:45:40 +0000
From:      Chris Rees <utisoft@gmail.com>
To:        Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Cc:        =?ISO-8859-1?Q?Rafael_Esp=EDndola?= <rafaelespindola@live.com>, Palle Girgensohn <girgen@freebsd.org>, "pgsql@freebsd.org" <pgsql@freebsd.org>, python <python@freebsd.org>
Subject:   Re: Postgresql + Python
Message-ID:  <CADLo83_Ygn6Frt2ajajG3Lk79DHf=ZHLmkNDCPuDu3HArv6uNw@mail.gmail.com>
In-Reply-To: <CADLo83_rZFFnY%2Bct2ene%2BB6J1CuAdLvXaRurDDZGZyWMv_h2wg@mail.gmail.com>
References:  <BLU0-SMTP242AA8861169A5DB62AE135D95E0@phx.gbl> <50B49EE5.2050100@FreeBSD.org> <50B4A07A.8040200@FreeBSD.org> <BLU0-SMTP299DA4781F34F3E1ADE4360D95E0@phx.gbl> <50B4B0D1.1000805@yandex.ru> <BLU0-SMTP234B5CF135796C2A282ABD8D95E0@phx.gbl> <50B4BF1C.4000300@yandex.ru> <CADLo83_rZFFnY%2Bct2ene%2BB6J1CuAdLvXaRurDDZGZyWMv_h2wg@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

On 1 December 2012 12:57, Chris Rees <utisoft@gmail.com> wrote:
> On 27 November 2012 13:24, Ruslan Mahmatkhanov <cvs-src@yandex.ru> wrote:
>> Rafael Espíndola wrote on 27.11.2012 16:29:
>>
>>> Well, if I'm not mistaken had tested "CONFIGURE_ARGS = - with-python'',
>>> but had no success, but I could be mistaken. Anyway I did what I told you
>>> earlier and it worked perfectly, and this I care ehheheh, I was afflicted
>>> with it.
>>>
>>> I come once again thank the interest in helping, it is important for the
>>> 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=python3.2 in /etc/make.conf) and the build is
>> indeed failed, but this way:
>>
>> cc -O2 -pipe -fno-strict-aliasing -Wall -Wmissing-prototypes -Wpointer-arith
>> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
>> -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_Check'
>> 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-arith
>> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
>> -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/config
>> -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 works
>> 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 compile!

Try this:

http://www.bayofrum.net/~crees/patches/plpython-build.diff

Chris


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83_Ygn6Frt2ajajG3Lk79DHf=ZHLmkNDCPuDu3HArv6uNw>