[Mono-list] compiling on FreeBSD

Dietmar Maurer dietmar@ximian.com
Mon, 13 Aug 2001 07:46:43 +0200


--------------5335B2400AAE8274072B5E1F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Miguel de Icaza wrote:

> Dietmar,
>
>    can you look at this:
>
> > well, after much messing around and hand-hacking makefiles, i've been able to
> > get right up to compiling mono-int on FreeBSD, and it fails to link.  it's not
> > finding isordered() isless() isgreater() and islessequal().  what library are
> > these supposed to be in?  something in glibc that isn't in the BSD libc?
>
> These are part of ISO C 9X.  It is part of the glibc.
>
> I think we will have to probe the installation for those functions and
> define our own if they are not part of the system headers.

Aren't there similar macros on FreeBSD? Take a look at /usr/include/math.h. We need
at least a function to detect if a floating point value is NaN. It is named
__fpclassify and located in libm on my linux system:

> strings /lib/libm.so.6|grep fpclassify

__fpclassify
__fpclassifyf
__fpclassifyl

Maybe you can send me your /usr/include/math.h?

- Dietmar

--------------5335B2400AAE8274072B5E1F
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Miguel de Icaza wrote:
<blockquote TYPE=CITE>Dietmar,
<p>&nbsp;&nbsp; can you look at this:
<p>> well, after much messing around and hand-hacking makefiles, i've been
able to
<br>> get right up to compiling mono-int on FreeBSD, and it fails to link.&nbsp;
it's not
<br>> finding isordered() isless() isgreater() and islessequal().&nbsp;
what library are
<br>> these supposed to be in?&nbsp; something in glibc that isn't in the
BSD libc?
<p>These are part of ISO C 9X.&nbsp; It is part of the glibc.
<p>I think we will have to probe the installation for those functions and
<br>define our own if they are not part of the system headers.</blockquote>
Aren't there similar macros on FreeBSD? Take a look at /usr/include/math.h.
We need at least a function to detect if a floating point value is NaN.
It is named __fpclassify and located in libm on my linux system:
<p><tt>> strings /lib/libm.so.6|grep fpclassify</tt>
<p><tt>__fpclassify</tt>
<br><tt>__fpclassifyf</tt>
<br><tt>__fpclassifyl</tt>
<p>Maybe you can send me your /usr/include/math.h?
<p>- Dietmar</html>

--------------5335B2400AAE8274072B5E1F--