[Mono-bugs] [Bug 60799][Maj] Changed - jit-icalls.c compiles, but libmono.so won't link -- missing reference to 'trunc'

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 27 Jun 2004 07:45:51 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz@freemail.hu.

http://bugzilla.ximian.com/show_bug.cgi?id=60799

--- shadow/60799	2004-06-27 07:43:37.000000000 -0400
+++ shadow/60799.tmp.32594	2004-06-27 07:45:51.000000000 -0400
@@ -64,6 +64,31 @@
 
 #endif
 #endif /* HAVE_TRUNC */
 
 ------- Additional Comments From vargaz@freemail.hu  2004-06-27 07:43 -------
 -> runtime
+
+------- Additional Comments From vargaz@freemail.hu  2004-06-27 07:45 -------
+Could you try the following patch:
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+Index: configure.in
+===================================================================
+RCS file: /cvs/public/mono/configure.in,v
+retrieving revision 1.264
+diff -u -3 -p -r1.264 configure.in
+--- configure.in	24 Jun 2004 21:55:21 -0000	1.264
++++ configure.in	27 Jun 2004 10:46:25 -0000
+@@ -954,8 +954,9 @@ ac_cv_c_socklen_t=yes
+ ])
+ 
+ AC_CHECK_FUNCS(trunc, , AC_MSG_CHECKING(for trunc in math.h)
++	# Simply calling trunc (0.0) is no good since gcc will optimize the
+call away
+ 	AC_TRY_LINK([#include <math.h>], 
+-	[ trunc(0.0); ], 
++	[ static void *p = &trunc; ],
+ 	[
+ 		AC_DEFINE(HAVE_TRUNC) 
+ 		AC_MSG_RESULT(yes)
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<