Bug 313206 (MONO51315) - configure "detects" the nonexistent signbit function
Summary: configure "detects" the nonexistent signbit function
Status: RESOLVED FIXED
Alias: MONO51315
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: build
Depends on:
Blocks:
 
Reported: 2003-11-24 00:39 UTC by Marc Recht
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:20:06 UTC


---- Reported by recht@netbsd.org 2003-11-23 17:39:28 MST ----

Description of Problem:
(with the daily version of 23/Nov/2003)

configure "detects" the nonexistent signbit function. gcc prints a
"implicit declaration" warning, but since configure doesn't tries to link,
it "thinks" the OS has the signbit function.

Steps to reproduce the problem:
Run configure on an OS that doesn't have signbit. (eg. NetBSD/current).

Actual Results:
Final linking fails, because signbit isn't in libc/libm.

Expected Results:
mono has it's own implementation. It should use it.

How often does this happen? 
Every time.

Additional Information:
This patch fixes the problem: (Tested on NetBSD/current)

--- configure.in.orig   2003-11-23 13:01:06.000000000 +0100
+++ configure.in  2003-11-23 23:24:23.000000000 +0100
@@ -652,7 +652,7 @@
   dnl *** Check for signbit ***
   dnl *************************
   AC_MSG_CHECKING(for signbit)
-  AC_TRY_COMPILE([#include <math.h>], [
+  AC_TRY_LINK([#include <math.h>], [
      int s = signbit(1.0);
   ], [
      AC_MSG_RESULT(yes)



---- Additional Comments From vargaz@freemail.hu 2003-11-24 04:09:07 MST ----

Fixed in CVS.


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>NetBSD-current</cf_op_sys_details>
Unknown operating system other. Setting to default OS "Other".