> [stmpeters - Tue Mar 22 15:41:12 2005]:
> 
> When running testing parrot-HEAD, I get a test failure in 
t/op/trans.t on 
> OpenBSD.  Running the same tests on Linux seem to work just fine...
> 
> > perl -Ilib t/op/trans.t
> 1..19
> ok 1 - sin
> ok 2 - cos
> ok 3 - tan
> ok 4 - sec
> ok 5 - atan
> ok 6 - asin
> ok 7 - acos
> ok 8 - asec
> ok 9 - cosh
> ok 10 - sinh
> ok 11 - tanh
> ok 12 - sech
> not ok 13 - atan2
> #     Failed test (t/op/trans.t at line 307)
> #          got: 'ok 1
> # ok 2
> # ok 3
> # ok 4
> # ok 5
> # ok 6
> # ok 7
> # ok 8
> # ok 9
> # ok 10
> # ok 11
> # ok 12
> # ok 13
> # ok 14
> # ok 15
> # ok 16
> # not 0.000000ok 17
> # '
> #     expected: 'ok 1
> # ok 2
> # ok 3
> # ok 4
> # ok 5
> # ok 6
> # ok 7
> # ok 8
> # ok 9
> # ok 10
> # ok 11
> # ok 12
> # ok 13
> # ok 14
> # ok 15
> # ok 16
> # ok 17
> # '
> ok 14 - log2
> ok 15 - log10
> ok 16 - ln
> ok 17 - exp
> ok 18 - pow
> ok 19 - sqrt
> # Looks like you failed 1 tests of 19.
> 
> 

Included below is a patch that fixes the above test failures on 
OpenBSD.  I've also included code to fix the problem on Cygwin (see 
ticket #36835) although I could not get Cygwin to compile with or 
without my patch.  A similar solution will likely work on a gcc-
compiled Solaris, but I discuss that in the more recent ticket there.  
I'm also guessing that NetBSD will require a similar patch, but I need 
to get on a NetBSD machine a test my patch.  Expect that patch later 
today.

--- MANIFEST.old        Thu Dec 29 00:03:32 2005
+++ MANIFEST    Thu Dec 29 08:31:01 2005
@@ -189,6 +189,7 @@
 config/gen/platform/ansi/dl.c                     []
 config/gen/platform/ansi/exec.c                   []
 config/gen/platform/ansi/io.h                     []
+config/gen/platform/cygwin/init.c                 []
 config/gen/platform/ansi/time.c                   []
 config/gen/platform/darwin/begin.c                []
 config/gen/platform/darwin/dl.c                   []
@@ -197,6 +198,7 @@
 config/gen/platform/generic/dl.h                  []
 config/gen/platform/generic/env.c                 []
 config/gen/platform/generic/exec.c                []
+config/gen/platform/generic/init.c                []
 config/gen/platform/generic/io.h                  []
 config/gen/platform/generic/itimer.c              []
 config/gen/platform/generic/math.c                []
@@ -210,6 +212,7 @@
 config/gen/platform/generic/threads.h             []
 config/gen/platform/generic/time.c                []
 config/gen/platform/ia64/asm.s                    []
+config/gen/platform/openbsd/init.c                []
 config/gen/platform/openbsd/memexec.c             []
 config/gen/platform/openbsd/misc.h                []
 config/gen/platform/platform_interface.h          []
--- /dev/null   Thu Dec 29 05:43:20 2005
+++ config/gen/platform/generic/init.c  Wed Dec 28 23:11:38 2005
@@ -0,0 +1,3 @@
+/* Placeholder for platform specific initializations (header includes,
+ * global variable initialization, etc.
+ */
--- /dev/null   Thu Dec 29 05:43:38 2005
+++ config/gen/platform/openbsd/init.c  Wed Dec 28 23:23:45 2005
@@ -0,0 +1,3 @@
+#include <math.h>
+
+_LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
--- /dev/null   Thu Dec 29 05:43:38 2005
+++ config/gen/platform/cygwin/init.c  Wed Dec 28 23:23:45 2005
@@ -0,0 +1,3 @@
+#include <math.h>
+
+const _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;

Reply via email to