From: | Federico Di Gregorio <federico(dot)digregorio(at)dndg(dot)it> |
---|---|
To: | psycopg(at)postgresql(dot)org |
Subject: | Re: Build error: math library not linked |
Date: | 2011-03-14 14:09:20 |
Message-ID: | 4D7E2190.9090506@dndg.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On 14/03/11 13:59, P. Christeas wrote:
> On Monday 14 March 2011, Federico Di Gregorio wrote:
>> > On 13/03/11 23:21, P. Christeas wrote:
>>> > > I upgraded to mageia α2, which uses python2.7 . Trying to build psycopg2
>>> > > again for it, stumbled accross unresolved errors for the floating point
>>> > > functions. Indeed, final linking step didn't include "-lm" to the
>>> > > linker.
>>> > >
>>> > > Added it with commit 4e29da5cda6aa3, as found at:
>>> > > http://members.hellug.gr/xrg/repos/psycopg2
>>> > > (browse at http://git.hellug.gr/?p=xrg/psycopg2)
>>> > >
>>> > > Please check your platforms. Is libm already linked against? Could you
>>> > > forecast any side-effect from explicitly mentioning it (as in the patch)
>>> > > ?
>> >
>> > On my Linux box libm is not linked in and I don't have any problem. Can
>> > you please tell us you system version and the exact errors?
>> >
>> > federico
> Do you use -Wl,no-undefined at the linker? My problem is at that step, and I
> highly suspect that if I hadn't had that, the binary (psycopg.so) would still
> run against the python binary (because python will load libm anyway).
In fact compiling with --no-undefined throws a lot of errors. Can I ask
you why you use it? If it is the correct thing to do we should add
--no-undefined to all builds and pull in the right libraries.
federico
--
Federico Di Gregorio federico(dot)digregorio(at)dndg(dot)it
Studio Associato Di Nunzio e Di Gregorio http://dndg.it
In science one tries to tell people, in such a way as to be understood
by everyone, something that no one ever knew before. But in poetry,
it's the exact opposite. -- Paul Dirac
From | Date | Subject | |
---|---|---|---|
Next Message | P. Christeas | 2011-03-15 09:54:19 | Re: Build error: math library not linked |
Previous Message | P. Christeas | 2011-03-14 12:59:20 | Re: Build error: math library not linked |