tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Aharon Schkolnik <aharon () healdb ! matat ! health ! gov ! il>
To: tru64-unix-managers
Subject: Crack v4.1
Date: Mon, 10 Jun 1996 06:25:15 +0000	[thread overview]
Message-ID: <96076333621261.tru64-unix-managers.marc@archive.invalid> (raw)


Hi.
	Has anyone built crack version 4.1 on dUnix ?

	When I apply the OSF patches I get:

Hmm...  The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|*** Sources/bytesex.c.dist      Thu Mar 19 21:13:46 1992
|--- Sources/bytesex.c   Tue Feb 23 17:26:25 1993
--------------------------
File to patch: Sources/bytesex.c
Patching file Sources/bytesex.c using Plan A...
Hunk #1 succeeded at 4.
Hunk #2 failed at 24.
1 out of 2 hunks failed--saving rejects to Sources/bytesex.c.rej



Sources/bytesex.c.rej contains:

***************
*** 23,32 ****
      }
      if (!strncmp (p, "abcd", 4))
      {
!       puts ("-DBIG_ENDIAN");
      } else if (!strncmp (p, "dcba", 4))
      {
!       puts ("-DLITTLE_ENDIAN");
      }
      exit (0);
  }
--- 24,56 ----
      }
      if (!strncmp (p, "abcd", 4))
      {
!         endian = 1;
      } else if (!strncmp (p, "dcba", 4))
      {
!         endian = -1;
      }
+     if (endian == 0) {               /* try again after shifting l back 32 */
+         l >>= 32;
+         if (!strncmp (p, "abcd", 4))
+         {
+             endian = 1;
+         } else if (!strncmp (p, "dcba", 4))
+         {
+             endian = -1;
+         }
+     }
+     switch (endian)
+     {
+     case 0:
+         fprintf (stderr, "bytesex: Can't figure out endian of this system!\n");
+         exit(1);
+     case 1:
+         puts ("-DBIG_ENDIAN");
+       break;
+     case -1:
+         puts ("-DLITTLE_ENDIAN");
+     }
+ 
+ 
      exit (0);
  }


TIA.



--
  The day is short, and the work is great,     |   Aharon Schkolnik
  and the laborers are lazy, and the reward    |   Aharon@Matat.Health.Gov.IL
  is great, and the Master of the house is     |
  impatient. - Ethics Of The Fathers Ch. 2     |

                 reply	other threads:[~1996-06-10  6:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox