Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

install of Compress::Raw::Zlib on windows7 strawbery perl

by gman (Friar)
on Feb 22, 2012 at 03:08 UTC ( [id://955439]=perlquestion: print w/replies, xml ) Need Help??

gman has asked for the wisdom of the Perl Monks concerning the following question:

UPDATE: Thank you all, I was able to compile, and will send this thread to the author as a bug report

Hi All,
Trying to use Archive::Zip on windows 7 using strawbery perl.
Archive::Zip installs just fine and seems to run just fine creating a zip file. Unfortunately, the created file in not compressed and seems to have other issues.
Thanks in advance!

cpan> install Compress::Raw::Zlib Database was generated on Wed, 22 Feb 2012 02:52:46 GMT Running install for module 'Compress::Raw::Zlib' Running make for P/PM/PMQS/Compress-Raw-Zlib-2.050.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/P/PM/PMQS/Compress-Raw-Zlib- +2.050.tar.gz Checksum for C:\Strawberry\cpan\sources\authors\id\P\PM\PMQS\Compress- +Raw-Zlib-2.050.tar.gz ok Scanning cache C:\Strawberry\cpan\build for sizes ...................................................................... +......DONE CPAN.pm: Going to build P/PM/PMQS/Compress-Raw-Zlib-2.050.tar.gz Parsing config.in... Building Zlib enabled Auto Detect Gzip OS Code.. Setting Gzip OS Code to 14 [VFAT file system (Win95, NT)] Looks Good. Up/Downgrade not needed. Checking if your kit is complete... Looks good Writing Makefile for Compress::Raw::Zlib Writing MYMETA.yml and MYMETA.json cp lib/Compress/Raw/Zlib.pm blib\lib\Compress\Raw\Zlib.pm AutoSplitting blib\lib\Compress\Raw\Zlib.pm (blib\lib\auto\Compress\Ra +w\Zlib) C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -typemap C:\Strawberry\perl\lib\ExtUtils\typemap -typemap typemap Zlib.xs > Zlib.xsc && C:\strawberry\perl\bin\perl.e +xe -MExtUtils::Command -e mv -- Zlib.xsc Zlib.c gcc -c -I./zlib-src -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUS +TOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2 + -DVERSION=\"2.050\" -DXS_VERSION=\"2.050\" "-IC:\Strawberry\perl\lib\CORE" -DNO_VIZ -DZ_SOLO -DGZIP_OS_CODE=14 + -DUSE_PPPORT_H Zlib.c gcc -c -I./zlib-src -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUS +TOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2 + -DVERSION=\"2.050\" -DXS_VERSION=\"2.050\" "-IC:\Strawberry\perl\lib\CORE" -DNO_VIZ -DZ_SOLO -DGZIP_OS_CODE=14 + -DUSE_PPPORT_H adler32.c adler32.c:12: error: expected declaration specifiers or '...' before ' +__int64' adler32.c: In function 'adler32_combine_': adler32.c:139: error: expected declaration specifiers before '__int64' adler32.c:140: error: number of arguments doesn't match prototype adler32.c:12: error: prototype declaration adler32.c: In function 'adler32_combine': adler32.c:170: error: too many arguments to function 'adler32_combine_ +' adler32.c: In function 'adler32_combine64': adler32.c:176: error: expected declaration specifiers before '__int64' adler32.c:178: error: too many arguments to function 'adler32_combine_ +' dmake.EXE: Error code 129, while making 'adler32.o' PMQS/Compress-Raw-Zlib-2.050.tar.gz C:\Strawberry\c\bin\dmake.EXE -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: PMQS/Compress-Raw-Zlib-2.050.tar.gz : make NO cpan>

PS C:\strawberry\cpan\build\Compress-Raw-Zlib-2.049-U9YT3Z> perl -v This is perl 5, version 12, subversion 3 (v5.12.3) built for MSWin32-x +86-multi-thread Copyright 1987-2010, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge. PS C:\strawberry\cpan\build\Compress-Raw-Zlib-2.049-U9YT3Z>

Replies are listed 'Best First'.
Re: install of Compress::Raw::Zlib on windows7 strawbery perl
by BrowserUk (Patriarch) on Feb 22, 2012 at 03:30 UTC
    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.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Thanks BrowerUk,

      That worked, well at least to the next error :).

      PS C:\strawberry\cpan\build\Compress-Raw-Zlib-2.050-j5KdF2> C:\Strawb +erry\c\bin\dmake.EXE gcc -c -I./zlib-src -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUS +TOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2 + -DVERSION=\"2.050\" -DXS_VERSION=\"2.050\" "-IC:\Strawberry\perl\lib\CORE" -DNO_VIZ -DZ_SOLO -DGZIP_OS_CODE=14 + -DUSE_PPPORT_H adler32.c gcc -c -I./zlib-src -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUS +TOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2 + -DVERSION=\"2.050\" -DXS_VERSION=\"2.050\" "-IC:\Strawberry\perl\lib\CORE" -DNO_VIZ -DZ_SOLO -DGZIP_OS_CODE=14 + -DUSE_PPPORT_H crc32.c In file included from c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/ +4.4.3/../../../../i686-w64-mingw32/include/limits. h:6, from c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/ +4.4.3/include-fixed/limits.h:122, from c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/ +4.4.3/include-fixed/syslimits.h:7, from c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/ +4.4.3/include-fixed/limits.h:11, from crc32.c:38: c:\strawberry\c\bin\../lib/gcc/i686-w64-mingw32/4.4.3/../../../../i686 +-w64-mingw32/include/_mingw.h:343: error: conflict ing types for 'ptrdiff_t' ./zlib-src/zutil.h:33: note: previous declaration of 'ptrdiff_t' was h +ere dmake.EXE: Error code 129, while making 'crc32.o' PS C:\strawberry\cpan\build\Compress-Raw-Zlib-2.050-j5KdF2>

        Try commenting out the following lines at zutil.h:31

        #ifdef Z_SOLO typedef long ptrdiff_t; /* guess -- will be caught if guess is wro +ng */ #endif

        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

        The start of some sanity?

Re: install of Compress::Raw::Zlib on windows7 strawbery perl
by Khen1950fx (Canon) on Feb 22, 2012 at 05:09 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://955439]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-03-29 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found