Skip Menu |

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 52525
Status: resolved
Priority: 0/
Queue: Net-SSLeay

People
Owner: Nobody in particular
Requestors: mark [...] aufflick.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.35
Fixed in: (no value)



Subject: Tests fail with compiler warning on ptr_test_cast.c
On some platforms (eg. MacOS X 10.6) sizeof() returns long unsigned int and gcc can give the following complaint (probably depedning on gcc version - in this case i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)): # Failed test 'STDERR empty after compiling' # at t/local/00_ptr_cast.t line 28. # got: 't/local/ptr_cast_test.c: In function 'main': # t/local/ptr_cast_test.c:27: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int' # t/local/ptr_cast_test.c:27: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int' # ' # expected: ''
Subject: ptr_cast_test.diff
--- t/local/ptr_cast_test.c~ 2007-10-16 18:26:45.000000000 +1000 +++ t/local/ptr_cast_test.c 2009-12-07 21:35:36.000000000 +1100 @@ -24,7 +24,7 @@ volatile TOTYPE i; /* prevent optimization */ printf("# %s: '%s' len: %d, '%s' len: %d.\n", argv[0], FROMTYPESTR, - sizeof(TOTYPE), TOTYPESTR, sizeof(char *)); + (int)sizeof(TOTYPE), TOTYPESTR, (int)sizeof(char *)); i = (TOTYPE)bufptr; if( ((FROMTYPE)i) != bufptr ) {
Subject: Re: [rt.cpan.org #52525] Tests fail with compiler warning on ptr_test_cast.c
Date: Mon, 7 Dec 2009 21:18:13 +1000
To: bug-Net-SSLeay [...] rt.cpan.org
From: Mike McCauley <mikem [...] open.com.au>
Hello Mark, Thanks for reporting this but it has already been fixed in SVN. Cheers. On Monday 07 December 2009 08:41:00 pm Mark Aufflick via RT wrote: Show quoted text
> Mon Dec 07 05:40:59 2009: Request 52525 was acted upon. > Transaction: Ticket created by AUFFLICK > Queue: Net-SSLeay > Subject: Tests fail with compiler warning on ptr_test_cast.c > Broken in: 1.35 > Severity: Important > Owner: Nobody > Requestors: mark@aufflick.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=52525 > > > > On some platforms (eg. MacOS X 10.6) sizeof() returns long unsigned int > and gcc can give the following complaint (probably depedning on gcc > version - in this case i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple > Inc. build 5646) (dot 1)): > > # Failed test 'STDERR empty after compiling' > # at t/local/00_ptr_cast.t line 28. > # got: 't/local/ptr_cast_test.c: In function 'main': > # t/local/ptr_cast_test.c:27: warning: format '%d' expects type 'int', but > argument 4 has type 'long unsigned int' > # t/local/ptr_cast_test.c:27: warning: format '%d' expects type 'int', but > argument 6 has type 'long unsigned int' > # ' > # expected: ''
-- Mike McCauley mikem@open.com.au Open System Consultants Pty. Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au Phone +61 7 5598-7474 Fax +61 7 5598-7070 Radiator: the most portable, flexible and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.
From: benkasminbullock [...] gmail.com
On Mon Dec 07 06:18:50 2009, mikem@open.com.au wrote: Show quoted text
> Thanks for reporting this but it has already been fixed in SVN.
This bug still exists on the default version of the module on CPAN, so could you please either update the CPAN version, or post a link to where we are supposed to download the module from now? Because a lot of other modules depend on your work. Thanks very much.