Wednesday, April 1, 2009

compiling tcl 8.5.6 on opensolaris 2008.11 i386 32bit with ss-dev fix undefined symbol ieee_flags

OK my translation of this sparse fix that ended up working:
http://sourceforge.net/tracker/index.php?func=detail&aid=1839067&group_id=10894&atid=110894

I unpacked the tarball to opt.
In
/opt/tcl8.5.6/generic/tclStrToD.c
replace ieee_flags("set","precision","double",NULL);
OR
ieee_flags("clear","precsion",NULL,NULL);
with

#include [left arrow] sunmath.h [right arrow] as shown on this link
http://sourceforge.net/tracker/index.php?func=detail&aid=1839067&group_id=10894&atid=110894
This blogger software sucks and will make the sunmath.h disappear if I leave in the left and right arrow.
[no ident spaces]

THEN modify
/opt/tcl8.5.6/unix/configure
add -lsunmath to the MATH line:
before
MATH_LIBS="-lm"
after
MATH_LIBS="-lsunmath -lm"

now don't change dir and run configure:

./configure --prefix=/opt/tcl --enable-threads --enable-shared --enable-dtrace
[or whatever options you want]

gmake
gmake install

DONE WORKS

http://sourceforge.net/tracker/index.php?func=detail&aid=1839067&group_id=10894&atid=110894
http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/52124a500e09c0a0?hl=en#

No comments: