Issue #69
Vregs test fail on cygwin
| Status: | Closed | Start date: | 02/23/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Wilson Snyder | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - |
Description
Hi, I try to install Vregs on Cygwin. the steps: 1. perl Makefile.PL 2. make
Passed without any warning. The third step: 3. make test failed with the attached log file.
Regards, Yoram Stern
History
Updated by Wilson Snyder about 3 years ago
- Status changed from New to AskedReporter
Please try the below. Note this error won't prevent the package from working ok, it's just a test problem.
=================================================================== --- t/gcc_common.h (revision 70934) +++ t/gcc_common.h (working copy) @@ -6,7 +6,11 @@ // Lesser General Public License or the Perl Artistic License. #include <stdlib.h> + +#ifndef __uint32_t_defined typedef unsigned int uint32_t; +#endif + #if defined(__WORDSIZE) && (__WORDSIZE == 64) typedef unsigned long int uint64_t; typedef unsigned long int Address;
Updated by Yoram Stern about 3 years ago
Hi. It is not clear to me- what do you want me to try, maybe you can attach the gcc_common.h that you want me to try.
I added the +#ifndef __uint32_t_defined typedef unsigned int uint32_t; +#endif
(the == 64 stuff is already there).
The test result sis not change.
Anyway I believe you are right and it is only a test problem- but it is worth a fix.
Updated by Wilson Snyder about 3 years ago
The + lines mean "add those" - it's a patch file - see "man patch".
I guess your files differ from mine. What you need to do is look at /usr/include/stdint.h (the file with the original definition), then see where it "typedef ... uint32_t". Then look above that and see if there's a #define zzz_UINT32, and assuming so add a "#ifndef zzz_UINT32" to the gcc_common file.
Updated by Wilson Snyder about 3 years ago
- Status changed from AskedReporter to Closed
I was able to reproduce this on a Windows 2000 system. I pushed the fix into a new release 1.462 which is uploading and will be available on CPAN soon.
Also available in: Atom
![[logo]](/img/veripool_small.png)