From: Martin Kahlert Date: 2001-10-02T16:01:30+09:00 Subject: [ruby-talk:21927] Patch for 1.6.5 Hi! I do not know if it is intended to produce a 1.6.6 version, but in case it is, here is the patch i needed on SuSE linux AXP (i.e. Alpha) 7.1 in order to compile ruby without warnings. The first one is needed to run configure (i got a configuration string ending with '-' because LIBC was an empty string). This confused configure that much, that there were lots of compilation errors. The second patch removes about 10 warnings for integer<-->pointer conversion of different size. (gcc-3.0) Hope that helps, Martin. --- ruby-1.6.5.old/config.guess Fri Jul 13 08:19:25 2001 +++ ruby-1.6.5/config.guess Mon Oct 1 21:46:10 2001 @@ -870,11 +870,11 @@ objdump --private-headers $dummy | \ grep ld.so.1 > /dev/null if test "$?" = 0 ; then - LIBC="libc1" + LIBC="-libc1" fi fi rm -f $dummy.s $dummy - echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + echo ${UNAME_MACHINE}-unknown-linux${LIBC} exit 0 ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level --- ruby-1.6.5.old/regex.c Mon Sep 3 06:07:53 2001 +++ ruby-1.6.5/regex.c Mon Oct 1 22:05:12 2001 @@ -3415,7 +3415,7 @@ \ *stackp++ = pattern_place; \ *stackp++ = string_place; \ - *stackp++ = (unsigned char*)options; /* current option status */ \ + *stackp++ = (unsigned char*)(long)options; /* current option status */ \ *stackp++ = (unsigned char*)0; /* non-greedy flag */ \ } while(0) @@ -4296,7 +4296,7 @@ goto fail; } stackp--; /* discard greedy flag */ - options = (int)*--stackp; + options = (long)*--stackp; d = *--stackp; p = *--stackp; /* Restore register info. */ -- The early bird catches the worm. If you want something else for breakfast, get up later.