From: | Jaime Casanova <jaime(dot)casanova(at)2ndquadrant(dot)com> |
---|---|
To: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | problems compiling in solaris 10 |
Date: | 2017-04-09 18:57:31 |
Message-ID: | CAJGNTeNiuMxwC07rzQAKQL7vEE0UYnA66GnPqTfmeuaTSQsHHA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
I'm compiling HEAD on solaris 10 and i'm getting this warning
"""
float.c: In function ‘is_infinite’:
float.c:201:2: warning: implicit declaration of function ‘isinf’
[-Wimplicit-function-declaration]
int inf = isinf(val);
^
geo_ops.c: In function ‘pg_hypot’:
geo_ops.c:5459:2: warning: implicit declaration of function ‘isinf’
[-Wimplicit-function-declaration]
if (isinf(x) || isinf(y))
^
timestamp.c: In function ‘float8_timestamptz’:
timestamp.c:722:2: warning: implicit declaration of function ‘isinf’
[-Wimplicit-function-declaration]
if (isinf(seconds))
^
execute.c: In function ‘sprintf_double_value’:
execute.c:466:2: warning: implicit declaration of function ‘isinf’
[-Wimplicit-function-declaration]
else if (isinf(value))
^
"""
reason seems to be that solaris define isinf() inside iso/math_c99.h
(which is included by math.h) and only if __C99FEATURES__ is defined.
and yes, adding 'CFLAGS="-D __C99FEATURES__" does that warning to go
------
another problem i found is that if i configure using
--enable-profiling then error is raised:
"""
checking thread safety of required library functions... no
configure: error: thread test program failed
This platform is not thread-safe. Check the file 'config.log' or compile
and run src/test/thread/thread_test for the exact reason.
Use --disable-thread-safety to disable thread safety.
"""
seems there is a segmentation fault when trying to compile the test,
attached is config.log
--
Jaime Casanova www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachment | Content-Type | Size |
---|---|---|
config.log | text/x-log | 381.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2017-04-09 19:33:08 | Re: pg_basebackup: Allow use of arbitrary compression program |
Previous Message | Mike Palmiotto | 2017-04-09 17:18:11 | Re: partitioned tables and contrib/sepgsql |