in reply to install of Compress::Raw::Zlib on windows7 strawbery perl
gcc -c -I./zlib-src ... adler32.c adler32.c:12: error: expected declaration specifiers or '...' before +'__int64'
__int64 is the MSVC extension typespecifier for 64-bit integers, otherwise known by the (rather daft) nomenclature: long long
The code is (wrongly) using the compiler-predefined #define, _WIN32 to imply MSVC:
#if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEF +ILE-0) # define z_off64_t off64_t #else # if defined(_WIN32) # define z_off64_t __int64 # else # define z_off64_t z_off_t #endif #endif
Which falls in a heap when you are uing gcc under windows.
A (minimal) fix would be to change that to be:
#if !defined(_WIN32) && (defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEF +ILE-0) # define z_off64_t off64_t #else # if defined(_MSC_VER) ### this line changed. # define z_off64_t __int64 # else # define z_off64_t z_off_t #endif #endif
You might also like to feed that back to the author.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: install of Compress::Raw::Zlib on windows7 strawbery perl
by gman (Friar) on Feb 22, 2012 at 04:23 UTC | |
by BrowserUk (Patriarch) on Feb 22, 2012 at 04:52 UTC | |
by Corion (Patriarch) on Feb 22, 2012 at 08:07 UTC | |
by BrowserUk (Patriarch) on Feb 22, 2012 at 14:11 UTC | |
by pmqs (Friar) on Feb 22, 2012 at 23:21 UTC |