TCL/Tk floating point error

Stanislav Meduna stano na trillian.eunet.sk
Čtvrtek Listopad 19 06:19:55 CET 1998


Zuber Martin (zuber na kotr32.ost.skoda.cz) wrote:
: chtel jsem se jenom pozeptat, jestli uz neexistuje nejaky patch, ktery by 
: odstranil tuto chybku.

Bug som pred casom reportoval maintainerom.

Prave to tu skusam v RH 5.2 ... a "svete div se", ono to chodi.
Pozeram do SRPM-ka a je tam patch configure.in s datumom 10.9.,
ktory odobera -lieee kniznicu. Cize nieco, co sa floating
point tyka. Ci bolo toto problemom, alebo sa RH 5.2 podarilo
patchnut nieco ine tak, ze to uz s tcltk nekoliduje, netusim,
ale v kazdom pripade to chodi.

Takze skuste tcltk-8.0.3-20.i386.rpm alebo (pokial nejde o RH)
nasledovny patch (nie je velky, tak to snad mailing list znesie).

=== tcltk-8.0-ieee.patch start ===
--- tcltk-8.0/tcl8.0.3/unix/configure.in.ieee	Wed Oct 22 13:39:11 1997
+++ tcltk-8.0/tcl8.0.3/unix/configure.in	Wed Oct 22 13:43:47 1997
@@ -50,12 +50,9 @@
 #--------------------------------------------------------------------
 #	On a few very rare systems, all of the libm.a stuff is
 #	already in libc.a.  Set compiler flags accordingly.
-#	Also, Linux requires the "ieee" library for math to work
-#	right (and it must appear before "-lm").
 #--------------------------------------------------------------------
 
 AC_CHECK_FUNC(sin, MATH_LIBS="", MATH_LIBS="-lm")
-AC_CHECK_LIB(ieee, main, [MATH_LIBS="-lieee $MATH_LIBS"])
 
 #--------------------------------------------------------------------
 #       On AIX systems, libbsd.a has to be linked in to support
--- tcltk-8.0/tk8.0.3/unix/configure.in.ieee	Wed Oct 22 13:44:22 1997
+++ tcltk-8.0/tk8.0.3/unix/configure.in	Wed Oct 22 13:44:29 1997
@@ -285,13 +285,10 @@
 #--------------------------------------------------------------------
 #	On a few very rare systems, all of the libm.a stuff is
 #	already in libc.a.  Set compiler flags accordingly.
-#	Also, Linux requires the "ieee" library for math to
-#	work right (and it must appear before "-lm").
 #--------------------------------------------------------------------
 
 MATH_LIBS=""
 AC_CHECK_FUNC(sin, , MATH_LIBS="-lm")
-AC_CHECK_LIB(ieee, main, [MATH_LIBS="-lieee $MATH_LIBS"])
 
 #--------------------------------------------------------------------
 #	If this system doesn't have a memmove procedure, use memcpy
=== tcltk-8.0-ieee.patch end ===


Zdravi
--
					Stano



Další informace o konferenci Linux