Le 30 mai 04, � 10:56, Ben Hines a �crit :

On May 28, 2004, at 1:40 AM, S�bastien Maret wrote:

I'm working on a package that compiles and runs only on MacOSX10.3.4, because of a libm bug in previous versions.

There is no such thing as libm on any OS X. libm is just a symlink to libSystem, the standard system library. What bug are you referring to?

From the REAME file of Yorick, the package I'm working on:

Apple shipped MacOS X 10.3 (Panther) with a bug in the system math
library libm (part of /usr/lib/LibSystem.dylib) which can cause the
functions sqrt, sinh, tanh, asinh, acosh, and atanh to malfunction,
when floating point exceptions are unmasked.  Yorick is one of the few
(perhaps the only) code which unmasks SIGFPE, so that the CPU will
actually generate SIGFPE signals.  Yorick does not use asinh, acosh,
or atanh.  For tanh, the buggy system library causes SIGFPE for any
argument, e.g.- tanh(2).  For sqrt, the situation is more complicated:
The system library calls the hardware fsqrt instruction for CPUs which
have it, which gives correct results, but for CPUs which do not have
the fsqrt instruction, the system library calls a buggy software sqrt,
which causes SIGFPE for any argument, e.g.- sqrt(2).  Thus, yorick's
sqrt works on G5 machines, but fails on G4 machines and earlier
architectures.  (In fact, yorick will not even start on a G4 under
MacOS 10.3, since there are a couple of sqrt calls in the startup
code.)  Apple introduced the bug with 10.3.0, and it is present in
10.3.1 and 10.3.2, and likely will be present in 10.3.3.

Darwin developers know of this problem, and agree that it is a bug in
Libm-47.  There is a chance it will be corrected by 10.3.4.

It seems to be corrected in 10.3.4.

S�bastien

--
S�bastien Maret
Laboratoire d'Astrophysique de Grenoble
BP 53
38041 Grenoble cedex 9
France
Tel:  +33 (0) 4 76 63 55 19
Fax: +33 (0) 4 76 44 88 21
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to