Bug#490369: The test suites fail on any 64-bit architectures

Michael Casadevall sonicmctails at gmail.com
Fri Jul 11 20:03:12 UTC 2008


Package: libnet-ssleay-perl
Version: all
Severity: important
Tags: patch

The test suite fails due to a printf statement using %d vs %ld. The 
following patch corrects the test-suite.
Michael

--- a/t/local/ptr_cast_test.c.old	2008-07-11 18:57:38.000000000 +0000
+++ b/t/local/ptr_cast_test.c	2008-07-11 18:57:50.000000000 +0000
@@ -23,7 +23,7 @@
   FROMTYPE bufptr = (FROMTYPE) malloc(500);
   volatile TOTYPE i; /* prevent optimization */
 
-  printf("# %s: '%s' len: %d, '%s' len: %d.\n", argv[0], FROMTYPESTR,
+  printf("# %s: '%s' len: %ld, '%s' len: %ld.\n", argv[0], FROMTYPESTR,
 	 sizeof(TOTYPE), TOTYPESTR, sizeof(char *));
 
   i = (TOTYPE)bufptr;


-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500,
'hardy')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-19-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash







More information about the pkg-perl-maintainers mailing list