Re: cbrt() broken in AIX

From: André Volpato <andre(dot)volpato(at)ecomtecnologia(dot)com(dot)br>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: cbrt() broken in AIX
Date: 2009-03-05 11:37:05
Message-ID: 49AFB961.2030308@ecomtecnologia.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>Tom Lane escreveu:</pre>
<blockquote cite="mid:7315(dot)1236202606(at)sss(dot)pgh(dot)pa(dot)us" type="cite">
<pre wrap="">=?ISO-8859-1?Q?Andr=E9_Volpato?= <a class="moz-txt-link-rfc2396E" href="mailto:andre(dot)volpato(at)ecomtecnologia(dot)com(dot)br">&lt;andre(dot)volpato(at)ecomtecnologia(dot)com(dot)br&gt;</a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">First I tryed to configure with no options, and then make throw this:
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">float.c:74: error: static declaration of 'cbrt' follows non-static declaration
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">After some googling, I find Bruce&acute;s path back on 7.4, that removed my_cbrt trick.
So, I changed float.c to the old code (the whole HAVE_CBRT stuff),
</pre>
</blockquote>
<pre wrap=""><!---->
Instead, try putting back the "#define cbrt my_cbrt" line.

</pre>
</blockquote>
<pre>
You mean only this line ? What I have done is this :

(I cant access the box right now, so I dont have diff output)

float.c

>From :
&gt; #ifndef HAVE_CBRT
&gt; static double cbrt(double x);
&gt; #endif /* HAVE_CBRT */

To:
&gt; #ifndef HAVE_CBRT
&gt; #define cbrt my_cbrt
&gt; static double cbrt(double x);

&gt; #else
&gt; #if !defined(nextstep)
&gt; extern double cbrt(double x);
&gt; #endif
&gt; #endif /* HAVE_CBRT */

And that give the Undefined symbol errors.
Anyway, I&acute;ll try putting back just the my_cbrt line.

</pre>
<pre class="moz-signature" cols="72">--

[]&acute;s, ACV</pre>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 1.8 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message André Volpato 2009-03-05 11:46:47 Re: cbrt() broken in AIX
Previous Message Heikki Linnakangas 2009-03-05 11:26:34 Re: SIGHUP during recovery