Re: Bug#50093: apt does not build on m68k/potato
On Mon, 15 Nov 1999, Christian T. Steigies wrote:
> Thanks for the patch, but thats not enough it seems:
Attached is a working one.. sparc was acting a bit funny :|
> Automatic build of apt-0.3.14/ on aahz by debbuild
> [...]
> checking for m68k-linux-c++... no
> checking for c++... c++
> ../configure: line 1249: 883 Broken pipe $CXX -v 2>&1
> 884 Done | grep -q gcc
> is this critical? ^ ^ ^ ^ ^ ^ ^
I have no idea why that happens..
> checking for debiandoc2html... no
> checking for debiandoc2text... no
> checking for yodl2man... no
> add this to the source-dependencies?
Yes, you technically need debiandoc-sgml to make the -doc packages, but
yodl is optional.
Jason
Index: md5.cc
===================================================================
RCS file: /cvs/deity/apt/apt-pkg/contrib/md5.cc,v
retrieving revision 1.6
retrieving revision 1.9
diff -u -r1.6 -r1.9
--- md5.cc 1999/10/31 06:32:28 1.6
+++ md5.cc 1999/11/16 01:51:03 1.9
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: md5.cc,v 1.6 1999/10/31 06:32:28 jgg Exp $
+// $Id: md5.cc,v 1.9 1999/11/16 01:51:03 jgg Exp $
/* ######################################################################
MD5Sum - MD5 Message Digest Algorithm.
@@ -47,6 +47,7 @@
#include <unistd.h>
#include <netinet/in.h> // For htonl
#include <inttypes.h>
+#include <config.h>
/*}}}*/
// byteSwap - Swap bytes in a buffer /*{{{*/
@@ -59,7 +60,7 @@
do
{
- *buf++ = (UINT32)((unsigned)p[3] << 8 | p[2]) << 16 |
+ *buf++ = (uint32_t)((unsigned)p[3] << 8 | p[2]) << 16 |
((unsigned)p[1] << 8 | p[0]);
p += 4;
} while (--words);
@@ -268,7 +269,7 @@
// First chunk is an odd size
memcpy((unsigned char *)in + 64 - t,data,t);
- byteSwap(in, 16);
+ byteSwap((uint8_t *)in, 16);
MD5Transform(buf,in);
data += t;
len -= t;
@@ -277,7 +278,7 @@
while (len >= 64)
{
memcpy(in,data,64);
- byteSwap(in,16);
+ byteSwap((uint8_t *)in,16);
MD5Transform(buf,in);
data += 64;
len -= 64;
@@ -333,20 +334,20 @@
if (count < 0)
{
memset(p,0,count + 8);
- byteSwap(in, 16);
+ byteSwap((uint8_t *)in, 16);
MD5Transform(buf,in);
p = (unsigned char *)in;
count = 56;
}
memset(p, 0, count);
- byteSwap(in, 14);
+ byteSwap((uint8_t *)in, 14);
// Append length in bits and transform
in[14] = bytes[0] << 3;
in[15] = bytes[1] << 3 | bytes[0] >> 29;
MD5Transform(buf,in);
- byteSwap(buf,4);
+ byteSwap((uint8_t *)buf,4);
Done = true;
}
Reply to: