Re: Réf. : Re: R?f. : Re:

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: frederic(dot)germaneau(at)bull(dot)net
Subject: Re: Réf. : Re: R?f. : Re:
Date: 2004-09-28 16:07:23
Message-ID: 41598C3B.20406@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

frederic(dot)germaneau(at)bull(dot)net wrote:
> Thanks for your help,
>
> I haven't tested with cc_r but with VisualAge C from IBM , and "configure
> CC=/usr/vac/bin/cc --enable-thread-safety" works fine.
>
> But when compiling, link edition fails, "ld" doesn't find threads entries
> (like pthreads_mutex_lock...).
>
> Each compilation that have failed was launched without any option for
> multithreading.
>
> I have tried to launch it with "-lpthreads" option, and that works fine.
>
> When investigating, I have found that AIX5.2 (and 5.3) has a new library
> named libthread.a (not present on AIX5.1 where compilation OK) . Maybe this
> new threads library introduced for sunOs compatibility disturbs
> "configure"?
>
> With "configure CC=/usr/vac/bin/cc CFLAGS="-lpthreads"
> --enable-thread-safety", compilation is OK.
>
> I have launched "gmake check" and 1 of the 96 tests fails:
> $ more
> /postgres_util/postgresql-8.0.0beta2/src/test/regress/regression.diffs
> *** ./expected/geometry.out Fri Oct 31 21:07:07 2003
> --- ./results/geometry.out Mon Sep 27 11:45:58 2004
> ***************
> *** 117,123 ****
> | (5.1,34.5) | [(1,2),(3,4)] | (3,4)
> | (-5,-12) | [(1,2),(3,4)] | (1,2)
> | (10,10) | [(1,2),(3,4)] | (3,4)
> ! | (0,0) | [(0,0),(6,6)] | (-0,0)
> | (-10,0) | [(0,0),(6,6)] | (0,0)
> | (-3,4) | [(0,0),(6,6)] | (0.5,0.5)
> | (5.1,34.5) | [(0,0),(6,6)] | (6,6)
> --- 117,123 ----
> | (5.1,34.5) | [(1,2),(3,4)] | (3,4)
> | (-5,-12) | [(1,2),(3,4)] | (1,2)
> | (10,10) | [(1,2),(3,4)] | (3,4)
> ! | (0,0) | [(0,0),(6,6)] | (0,0)
> | (-10,0) | [(0,0),(6,6)] | (0,0)
> | (-3,4) | [(0,0),(6,6)] | (0.5,0.5)
> | (5.1,34.5) | [(0,0),(6,6)] | (6,6)
>
> ======================================================================
>
> But I think that's not bad.
>

Ouch. This is the same error already seen on OSX !! Tom Lane modified the
test in order to get rid this from that OS. It's not bad, however now
are two platforms with that glitch.

Regards
Gaetano Mendola

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2004-09-28 16:58:05 Re: Custom Functions
Previous Message Matthew Metnetsky 2004-09-28 16:01:16 Re: Custom Functions