Package: ctn
Version: 3.0.6-4
Severity: normal
Tags: patch
When building 'ctn' on ppc64/unstable,
I get the following error:
dcm.c:7016: error: 'LITTLE_ORDER' undeclared (first use in this function)
dcm.c:7023: error: 'BIG_ORDER' undeclared (first use in this function)
dcm.c: In function 'DCM_AddFragment':
dcm.c:7452: warning: pointer targets in assignment differ in signedness
make[2]: *** [dcm.o] Error 1
make[2]: Leaving directory `/ctn-3.0.6/libsrc'
This is because the debian/test-endian.c program fails for
64-bit big endian architectures.
With the attached patch 'ctn' can be compiled on ppc64.
Regards
Andreas Jochens
diff -urN ../tmp-orig/ctn-3.0.6/debian/test-endian.c ./debian/test-endian.c
--- ../tmp-orig/ctn-3.0.6/debian/test-endian.c 2005-07-22 17:24:26.000000000
+0000
+++ ./debian/test-endian.c 2005-07-22 17:23:15.000000000 +0000
@@ -2,7 +2,7 @@
main()
{
- unsigned long i = 1 + (256 * 2) + (256*256 * 3) + (256*256*256 * 4);
+ unsigned int i = 1 + (256 * 2) + (256*256 * 3) + (256*256*256 * 4);
unsigned char* p = (unsigned char*) &i;
if (*p == 1 && *(p+1) == 2 && *(p+2) == 3 && *(p+3) == 4) {
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]