problem building perl module Compress::Zlib 1.08 from inside cygwin

Steve Kelem s_kelem@pacbell.net
Fri Dec 15 10:57:00 GMT 2000


I'm having problems building the Compress::Zlib 1.08 perl module from inside cygwin.
It appears to be a C compiler problem.  The (knowlegable) author of Compress says it looks like a cygwin problem.
I've attached the output of cygcheck -s

Thanks,
Steve Kelem

-------- Original Message --------

Subject: RE: problem building Compress::Zlib 1.08 Date: Wed, 13 Dec 2000 18:12:33 +0000 From: Paul Marquess <paul_marquess@yahoo.co.uk> Reply-To: Paul.Marquess@btinternet.com To: Steve <s_kelem@pacbell.net> CC: paul.marquess@btinternet.com



From: Steve [ mailto:s_kelem@pacbell.net ]

Steve,

I don't do any development on NT, but from the look of the output you've
sent me it looks like a problem with cygwin.

Paul

> I'm having problems compiling Compress::Zlib-1.08 on the latest cygwin
> under Win NT 4, Sp 6a.
> I installed zlib 1.1.3.
> I edited config.in:
> BUILD_ZLIB    = True
> INCLUDE     = /usr/local/include
> LIB    = ../zlib-1.1.3
>
> Thanks for any help you can give,
> Steve Kelem
>
> Here is the build log for Compress::Zlib
> % perl Makefile.PL
> Parsing config.in...
> Created a Makefile.PL for zlib
> Building Zlib enabled
> Looks Good.
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Compress::Zlib
> % make | & tee Make.out
> mkdir blib
> mkdir blib/lib
> mkdir blib/lib/Compress
> mkdir blib/arch
> mkdir blib/arch/auto
> mkdir blib/arch/auto/Compress
> mkdir blib/arch/auto/Compress/Zlib
> mkdir blib/lib/auto
> mkdir blib/lib/auto/Compress
> mkdir blib/lib/auto/Compress/Zlib
> mkdir blib/man3
> cp Zlib.pm blib/lib/Compress/Zlib.pm
> AutoSplitting blib/lib/Compress/Zlib.pm (blib/lib/auto/Compress/Zlib)
> /usr/local/bin/perl -I/usr/local/lib/perl5/5.6.0/cygwin
> -I/usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/5.6.0/ExtUtils/xsubpp
> -typemap /usr/local/lib/perl5/5.6.0/ExtUtils/typemap -typemap typemap
> Zlib.xs > Zlib.xsc && mv Zlib.xsc Zlib.c
> gcc -c -I/usr/local/include -fno-strict-aliasing -I/usr/local/include
> -DUSEIMPORTLIB -O     -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\"
> -I/usr/local/lib/perl5/5.6.0/cygwin/CORE  Zlib.c
> Running Mkbootstrap for Compress::Zlib ()
> chmod 644 Zlib.bs
> LD_RUN_PATH="" ld2 -o blib/arch/auto/Compress/Zlib/Zlib.dll
> -L/usr/local/lib Zlib.o  ../zlib-1.1.3/libz.a
> /usr/local/lib/perl5/5.6.0/cygwin/CORE/libperl5_6_0.a
>
> dllwrap --dllname Zlib.dll --driver-name gcc --dlltool dlltool
> --export-all-symbols --as as --output-def libZlib.def --output-lib
> libZlib.a \
> -L/usr/local/lib Zlib.o ../zlib-1.1.3/libz.a
> /usr/local/lib/perl5/5.6.0/cygwin/CORE/libperl5_6_0.a
> Warning: no export definition file provided
> dllwrap will create one, but may not be what you want
> /H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/../../../
> ../i586-cygwin32/bin/ld:
> Can't open base file /c/TEMP\cc000554.base
> collect2: ld returned 1 exit status
> dllwrap: gcc exited with status 1
> perlld: *** system() failed to execute
> dllwrap --dllname Zlib.dll --driver-name gcc --dlltool dlltool
> --export-all-symbols --as as --output-def libZlib.def --output-lib
> libZlib.a \
> -L/usr/local/lib Zlib.o ../zlib-1.1.3/libz.a
> /usr/local/lib/perl5/5.6.0/cygwin/CORE/libperl5_6_0.a
>
> make: *** [blib/arch/auto/Compress/Zlib/Zlib.dll] Error 1
>
> The output of perl -V is:
> % perl -V
> Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
>   Platform:
>    osname=cygwin, osvers=1.1.0(0.1832), archname=cygwin
>    uname='cygwin_nt-4.0 belgarion 1.1.0(0.1832) 2000-03-29 00:20:35 i586
> unknown '
>    config_args='-d'
>    hint=recommended, useposix=true, d_sigaction=define
>    usethreads=undef use5005threads=undef useithreads=undef
> usemultiplicity=undef
>    useperlio=undef d_sfio=undef uselargefiles=define
>    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
>   Compiler:
>    cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
>    cppflags='-fno-strict-aliasing -I/usr/local/include'
>    ccflags ='-fno-strict-aliasing -I/usr/local/include'
>    stdchar='char', d_stdstdio=undef, usevfork=false
>    intsize=4, longsize=4, ptrsize=4, doublesize=8
>    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=4
>    alignbytes=8, usemymalloc=y, prototype=define
>   Linker and Libraries:
>    ld='ld2', ldflags =' -L/usr/local/lib'
>    libpth=/usr/local/lib /usr/i686-pc-cygwin/lib /usr/lib
>    libs=-lgdbm -ldb -lm -lcrypt -lcygipc -lcygwin -lkernel32
>    libc=/usr/i686-pc-cygwin/lib/libc.a, so=dll, useshrplib=true,
> libperl=libperl5_6_0.a
>   Dynamic Linking:
>    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
>    cccdlflags=' ', lddlflags=' -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
>   Compile-time options: USE_LARGE_FILES
>   Built under cygwin
>   Compiled at Mar 30 2000 01:27:02
>   @INC:
>    /usr/local/lib/perl5/5.6.0/cygwin
>    /usr/local/lib/perl5/5.6.0
>    /usr/local/lib/perl5/site_perl/5.6.0/cygwin
>    /usr/local/lib/perl5/site_perl/5.6.0
>    /usr/local/lib/perl5/site_perl
>    .


More information about the Cygwin mailing list