Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 15 Dec 2000 10:47:36 -0800
From: Steve Kelem <s_kelem AT pacbell DOT net>
Subject: problem building perl module Compress::Zlib 1.08 from inside cygwin
To: Cygwin <cygwin AT sourceware DOT cygnus DOT com>
Message-id: <3A3A6748.1030704@pacbell.net>
MIME-version: 1.0
Content-type: multipart/mixed; boundary="------------030306070203030907060404"
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001108
 Netscape6/6.0
X-Accept-Language: en

--------------030306070203030907060404
Content-Type: multipart/alternative;
 boundary="------------010303020701090609060503"


--------------010303020701090609060503
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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 AT yahoo DOT co DOT uk>
Reply-To: Paul DOT Marquess AT btinternet DOT com
To: Steve <s_kelem AT pacbell DOT net>
CC: paul DOT marquess AT btinternet DOT com



From: Steve [mailto:s_kelem AT pacbell DOT 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
>    .

--------------010303020701090609060503
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>I'm having problems building the Compress::Zlib 1.08 perl module from inside cygwin.<br>
It appears to be a C compiler problem.&nbsp; The (knowlegable) author of Compress says it looks like a cygwin problem.<br>
I've attached the output of cygcheck -s<br>
<br>
Thanks,<br>
Steve Kelem<br>
<br>
-------- Original Message --------
<table cellpadding="0" cellspacing="0" border="0">
<tbody><tr><th valign="Baseline" align="Right" nowrap="">Subject: </th><td>RE: problem building Compress::Zlib 1.08</td></tr><tr><th valign="Baseline" align="Right" nowrap="">Date: </th><td>Wed, 13 Dec 2000 18:12:33 +0000</td></tr><tr><th valign="Baseline" align="Right" nowrap="">From: </th><td>Paul Marquess <a class="moz-txt-link-rfc2396E" href="mailto:paul_marquess AT yahoo DOT co DOT uk">&lt;paul_marquess AT yahoo DOT co DOT uk&gt;</a></td></tr><tr><th valign="Baseline" align="Right" nowrap="">Reply-To: </th><td><a class="moz-txt-link-abbreviated" href="mailto:Paul DOT Marquess AT btinternet DOT com">Paul DOT Marquess AT btinternet DOT com</a></td></tr><tr><th valign="Baseline" align="Right" nowrap="">To: </th><td>Steve <a class="moz-txt-link-rfc2396E" href="mailto:s_kelem AT pacbell DOT net">&lt;s_kelem AT pacbell DOT net&gt;</a></td></tr><tr><th valign="Baseline" align="Right" nowrap="">CC: </th><td><a class="moz-txt-link-abbreviated" href="mailto:paul DOT marquess AT btinternet DOT com">paul DOT marquess AT btinternet DOT com</a></td></tr></tbody>
</table>
<br>
<br>
<pre>From: Steve [<a class="moz-txt-link-freetext" href="mailto:s_kelem AT pacbell DOT net">mailto:s_kelem AT pacbell DOT net</a>]

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

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

--------------030306070203030907060404
Content-Type: text/plain;
 name="cygchk"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="cygchk"


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Fri Dec 15 10:46:07 2000

WinNT Ver 4.0 build 1381 Service Pack 6

Path:	/home/kelem/bin/i386
	/home/kelem/bin/sh
	G
	/contrib/bin
	/usr/local/gnu/bin
	/usr/local/gnu/nmh/bin
	/usr/local/gnu/netpbm
	/i/jdk1.2.2/bin
	/usr/local/gnu/lib/rvplayer5.0
	/usr/local/bin
	/usr/bin
	/bin
	/usr/local/gnu/emacs-20.7/bin
	/usr/local/gnu/X11R6/bin
	/tools/motif_2.0.1/bin
	/tools/x11r5/sun5/bin
	/etc
	/usr/etc

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `/home/kelem'
MAKE_MODE = `unix'
PWD = `/d/Profiles/Application/Data/Mozilla/Users/nancy'
USER = `kelem'
LD_LIBRARY_PATH = `/usr/local/gnu/mh/lib:/usr/local/gnu/lib:/usr/local/gnu/lib/rvplayer5.0:/usr/local/lib'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  FAT     2039Mb  60% CP    UN           
d:  hd  FAT     2039Mb  26% CP    UN           D DRIVE
e:  hd  FAT     2039Mb  45% CP    UN           E DRIVE
f:  hd  FAT     2039Mb  53% CP    UN           F DRIVE
g:  hd  FAT     2039Mb  86% CP    UN           G DRIVE
h:  hd  FAT     2039Mb  14% CP    UN           H DRIVE
i:  hd  FAT     2039Mb  27% CP    UN           I DRIVE
j:  hd  FAT      356Mb  69% CP    UN           J DRIVE
m:  cd           N/A    N/A                    
n:  cd           N/A    N/A                    
z:  fd  FAT       95Mb  68% CP    UN           PKBACK# 002

g:\Gnu\emacs-20.7\info  /usr/local/info  user    textmode
g:\Gnu\share\lib  /usr/local/share  user    textmode
g:\cygwin\bin  /usr/bin  user    binmode
g:\cygwin\lib  /usr/lib  user    binmode
g:\contrib  /contrib  user    textmode
g:\cygwin  /        user    binmode
g:\Gnu  /usr/local/gnu  user    textmode
G:    /g       user    textmode
c:    /c       user    textmode
d:    /d       user    textmode
e:    /e       user    textmode
f:    /f       user    textmode
h:    /h       user    textmode
i:    /i       user    textmode
j:    /j       user    textmode

Found: g:\cygwin\bin\bash.exe
Found: g:\cygwin\bin\cat.exe
Found: g:\cygwin\bin\cpp.exe
Found: g:\cygwin\bin\find.exe
Found: g:\cygwin\bin\gcc.exe
Found: g:\cygwin\bin\gdb.exe
Found: g:\cygwin\bin\ld.exe
Found: g:\cygwin\bin\ls.exe
Found: g:\cygwin\bin\make.exe
Found: g:\cygwin\bin\sh.exe

   18k 2000/10/23 g:\cygwin\bin\cyggdbm.dll
   14k 2000/10/23 g:\cygwin\bin\cygintl.dll
   45k 2000/10/22 g:\cygwin\bin\cygjbig1.dll
  119k 2000/10/23 g:\cygwin\bin\cygjpeg6b.dll
  162k 2000/10/23 g:\cygwin\bin\cygpng2.dll
  243k 2000/10/23 g:\cygwin\bin\cygtiff3.dll
   41k 2000/11/20 g:\cygwin\bin\cygXpm-noX4.dll
   45k 2000/11/20 g:\cygwin\bin\cygXpm-X4.dll
   49k 2000/10/23 g:\cygwin\bin\cygz.dll
   56k 2000/12/03 g:\cygwin\bin\cygbz21.0.dll
   17k 2000/11/30 g:\cygwin\bin\cyghistory4.dll
  108k 2000/11/30 g:\cygwin\bin\cygreadline4.dll
   81k 2000/12/05 g:\cygwin\bin\cygitcl30.dll
   35k 2000/12/05 g:\cygwin\bin\cygitk30.dll
  390k 2000/12/05 g:\cygwin\bin\cygtcl80.dll
    5k 2000/12/05 g:\cygwin\bin\cygtclpip80.dll
   10k 2000/12/05 g:\cygwin\bin\cygtclreg80.dll
  623k 2000/12/05 g:\cygwin\bin\cygtk80.dll
   45k 2000/12/07 g:\cygwin\bin\cygform5.dll
   26k 2000/12/07 g:\cygwin\bin\cygmenu5.dll
  159k 2000/12/07 g:\cygwin\bin\cygncurses++5.dll
  225k 2000/12/07 g:\cygwin\bin\cygncurses5.dll
   15k 2000/12/07 g:\cygwin\bin\cygpanel5.dll
  609k 2000/11/22 g:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 6
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 30
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Tue Nov 21 21:00:16 EST 2000
        shared id: cygwin1S3

Use -h to see help about each section


--------------030306070203030907060404
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--------------030306070203030907060404--