Hello Martin, * Martin Michlmayr <[EMAIL PROTECTED]>, [2006-10-17 22:07 +0100]: > ruby doesn't work on a Niagara sparc system: > > sh-3.1# ruby1.8 > Illegal instruction
Please try the attached patch, works here (sun blade 2000). Thanks, ema
--- ruby1.8-1.8.6.36/defines.h 2007-02-24 18:52:08.000000000 +0100 +++ /home/ema/debian/packages/ruby1.8-1.8.6.36/defines.h 2007-08-09 03:14:05.000000000 +0200 @@ -218,9 +218,7 @@ #endif # if defined(__sparc_v9__) || defined(__sparcv9) || defined(__arch64__) ("flushw") -# elif defined(linux) || defined(__linux__) - ("ta 0x83") -# else /* Solaris, OpenBSD, NetBSD, etc. */ +# else /* Linux, Solaris, OpenBSD, NetBSD, etc. */ ("ta 0x03") # endif /* trap always to flush register windows if we are on a Sparc system */ ;