[SciPy-user] freebsd inverse hyperbolic patch

Lee Harr missive at hotmail.com
Thu Nov 4 16:23:52 CST 2004

>Btw, can you compile Numeric on freebsd? It has exactly the same issue
>and we should copy the workaround from there.

Good call... Here is the FreeBSD patch for Numeric:

--- Src/umathmodule.c.orig      Sat Aug  2 01:10:09 2003
+++ Src/umathmodule.c   Sat Aug  2 01:10:43 2003
@@ -1,9 +1,9 @@

+#include <math.h>
#include "Python.h"
#include "Numeric/arrayobject.h"
#include "Numeric/ufuncobject.h"
#include "abstract.h"
-#include <math.h>

#ifndef CHAR_BIT
#define CHAR_BIT 8

Doing a similar maneuver in fastumathmodule.c
allows the module to compile and link successfully.

Don't just search. Find. Check out the new MSN Search! 

More information about the SciPy-user mailing list