public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problems running cpan_update from perl v5.6.0-RC1
@ 2000-05-02 10:54 Steve Kelem
  2000-05-02 13:16 ` Charles Wilson
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Kelem @ 2000-05-02 10:54 UTC (permalink / raw)
  To: cwilson, Cygwin

I'm running
perl -MCPAN -e shell
with your perl on Cygwin 1.0, with the latest downloads for cygwin,
and all of your rpms installed.  This is on NT 4.0 SP6, Pentium III 550,
256M memory.

If I type "install Bundle::CPAN" to the cpan shell prompt, I get the
following errors:
cpan shell -- CPAN exploration and modules installation (v1.52)
ReadLine support available (try ``install Bundle::CPAN'')

Going to read /home/Kelem/.cpan/sources/authors/01mailrc.txt.gz
Going to read
/home/Kelem/.cpan/sources/modules/02packages.details.txt.gz
Scanning cache /home/Kelem/.cpan/build for sizes
Going to read /home/Kelem/.cpan/sources/modules/03modlist.data.gz
File::Spec is up to date.
MD5 is up to date.
Running make for PMQS/Compress-Zlib-1.08.tar.gz
CPAN: MD5 loaded ok
Checksum for
/home/Kelem/.cpan/sources/authors/id/PMQS/Compress-Zlib-1.08.tar.gz ok
Compress-Zlib-1.08/
Compress-Zlib-1.08/typemap
Compress-Zlib-1.08/t/
Compress-Zlib-1.08/t/examples.t
Compress-Zlib-1.08/t/zlib.t
Compress-Zlib-1.08/examples/
Compress-Zlib-1.08/examples/gzcat
Compress-Zlib-1.08/examples/filtdef
Compress-Zlib-1.08/examples/filtinf
Compress-Zlib-1.08/examples/gzstream
Compress-Zlib-1.08/examples/gzgrep
Compress-Zlib-1.08/Makefile.PL
Compress-Zlib-1.08/Zlib.xs
Compress-Zlib-1.08/Makefile.NT
Compress-Zlib-1.08/README
Compress-Zlib-1.08/ANNOUNCE
Compress-Zlib-1.08/MANIFEST
Compress-Zlib-1.08/config.in
Compress-Zlib-1.08/Zlib.pm
Removing previously used /home/Kelem/.cpan/build/Compress-Zlib-1.08

  CPAN.pm: Going to build PMQS/Compress-Zlib-1.08.tar.gz

Parsing config.in...
Looks Good.
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lz
Writing Makefile for Compress::Zlib
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./libraries/1.1.3 -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
In file included from Zlib.xs:22:
/usr/local/lib/perl5/5.6.0/cygwin/CORE/perl.h:3185: sys/ipc.h: No such
file or directory
/usr/local/lib/perl5/5.6.0/cygwin/CORE/perl.h:3186: sys/sem.h: No such
file or directory
make: *** [Zlib.o] Error 1
  /bin/make  -- NOT OK

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems running cpan_update from perl v5.6.0-RC1
  2000-05-02 10:54 Problems running cpan_update from perl v5.6.0-RC1 Steve Kelem
@ 2000-05-02 13:16 ` Charles Wilson
  2000-05-02 13:54   ` Problems compiling perl module Compress-ZLib with perl Steve Kelem
  0 siblings, 1 reply; 4+ messages in thread
From: Charles Wilson @ 2000-05-02 13:16 UTC (permalink / raw)
  To: Steve Kelem; +Cc: Cygwin

Steve -
  I can tell you what I did to get Bundle::CPAN working (mostly) but I'm
not sure why you are seeing the particular errors below. [**** Nope. Now
I know why you're seeing *your* errors. See postscript. ****] My errors
(that forced me to the following recipe) were different, but I can't
remember them now.

1. Download, build, and install Compress-ZLib manually.
   (you know, perl Makefile.PL, make, make install)

2. Download, build, and install Archive-Tar manually.

3. Download, build, and install libnet manually
   (not necessary for you, since you're using my
   libnet RPM)

After that, I THINK Bundle::CPAN build/installed without trouble (it has
been a while). Of course, it skipped the Zlib, Tar, and libnet stuff
since I'd already done it by hand.

Good luck,
Chuck

P.S. sem.h and ipc.h are from the cygipc package. If you're using my
perl build, it was built with cygipc. Which means that you need to have
the cygipc package installed if you want to build modules -- for just
this reason; perl now expects to find all the same headers that I had
which I built it. You can get cygipc from cygutils.netpedia.net.


Steve Kelem wrote:
> 
> I'm running
> perl -MCPAN -e shell
> with your perl on Cygwin 1.0, with the latest downloads for cygwin,
> and all of your rpms installed.  This is on NT 4.0 SP6, Pentium III 550,
> 256M memory.
> 
> If I type "install Bundle::CPAN" to the cpan shell prompt, I get the
> following errors:
> cpan shell -- CPAN exploration and modules installation (v1.52)
> ReadLine support available (try ``install Bundle::CPAN'')
> 
> Going to read /home/Kelem/.cpan/sources/authors/01mailrc.txt.gz
> Going to read
> /home/Kelem/.cpan/sources/modules/02packages.details.txt.gz
> Scanning cache /home/Kelem/.cpan/build for sizes
> Going to read /home/Kelem/.cpan/sources/modules/03modlist.data.gz
> File::Spec is up to date.
> MD5 is up to date.
> Running make for PMQS/Compress-Zlib-1.08.tar.gz
> CPAN: MD5 loaded ok
> Checksum for
> /home/Kelem/.cpan/sources/authors/id/PMQS/Compress-Zlib-1.08.tar.gz ok
> Compress-Zlib-1.08/
> Compress-Zlib-1.08/typemap
> Compress-Zlib-1.08/t/
> Compress-Zlib-1.08/t/examples.t
> Compress-Zlib-1.08/t/zlib.t
> Compress-Zlib-1.08/examples/
> Compress-Zlib-1.08/examples/gzcat
> Compress-Zlib-1.08/examples/filtdef
> Compress-Zlib-1.08/examples/filtinf
> Compress-Zlib-1.08/examples/gzstream
> Compress-Zlib-1.08/examples/gzgrep
> Compress-Zlib-1.08/Makefile.PL
> Compress-Zlib-1.08/Zlib.xs
> Compress-Zlib-1.08/Makefile.NT
> Compress-Zlib-1.08/README
> Compress-Zlib-1.08/ANNOUNCE
> Compress-Zlib-1.08/MANIFEST
> Compress-Zlib-1.08/config.in
> Compress-Zlib-1.08/Zlib.pm
> Removing previously used /home/Kelem/.cpan/build/Compress-Zlib-1.08
> 
>   CPAN.pm: Going to build PMQS/Compress-Zlib-1.08.tar.gz
> 
> Parsing config.in...
> Looks Good.
> Checking if your kit is complete...
> Looks good
> Note (probably harmless): No library found for -lz
> Writing Makefile for Compress::Zlib
> 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./libraries/1.1.3 -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
> In file included from Zlib.xs:22:
> /usr/local/lib/perl5/5.6.0/cygwin/CORE/perl.h:3185: sys/ipc.h: No such
> file or directory
> /usr/local/lib/perl5/5.6.0/cygwin/CORE/perl.h:3186: sys/sem.h: No such
> file or directory
> make: *** [Zlib.o] Error 1
>   /bin/make  -- NOT OK

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Problems compiling perl module Compress-ZLib with perl
  2000-05-02 13:16 ` Charles Wilson
@ 2000-05-02 13:54   ` Steve Kelem
  2000-05-07 15:30     ` Charles S. Wilson
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Kelem @ 2000-05-02 13:54 UTC (permalink / raw)
  To: Charles Wilson, Cygwin

I downloaded and installed the binary release of cygipc, and it installed the
sys/*.h files.
(Perl v5.6.0-RC1, Cygwin 1.0, latest download (as of yesterday), NT 4.0 SP6,
Pentium III 550, 256M memory)

Charles Wilson wrote:

> 1. Download, build, and install Compress-ZLib manually.
>    (you know, perl Makefile.PL, make, make install)

I tried this, and got the following.  Any idea what's wrong?

Thanks for your help,
Steve

% make
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./libraries/1.1.3 -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 /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 /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
Zlib.o(.text+0x152):Zlib.c: undefined reference to `gzerror'
Zlib.o(.text+0x27b):Zlib.c: undefined reference to `gzread'
Zlib.o(.text+0x9db):Zlib.c: undefined reference to `zlibVersion'
Zlib.o(.text+0xe13):Zlib.c: undefined reference to `gzopen'
Zlib.o(.text+0x1029):Zlib.c: undefined reference to `gzdopen'
Zlib.o(.text+0x1423):Zlib.c: undefined reference to `gzread'
Zlib.o(.text+0x18cf):Zlib.c: undefined reference to `gzwrite'
Zlib.o(.text+0x1a8e):Zlib.c: undefined reference to `gzflush'
Zlib.o(.text+0x1c1a):Zlib.c: undefined reference to `gzclose'
Zlib.o(.text+0x1d8f):Zlib.c: undefined reference to `gzclose'
Zlib.o(.text+0x1efb):Zlib.c: undefined reference to `gzerror'
Zlib.o(.text+0x20e0):Zlib.c: undefined reference to `adler32'
Zlib.o(.text+0x2290):Zlib.c: undefined reference to `crc32'
Zlib.o(.text+0x25f4):Zlib.c: undefined reference to `deflateInit2_'
Zlib.o(.text+0x261a):Zlib.c: undefined reference to `deflateSetDictionary'
Zlib.o(.text+0x28c8):Zlib.c: undefined reference to `inflateInit2_'
Zlib.o(.text+0x2bd4):Zlib.c: undefined reference to `deflate'
Zlib.o(.text+0x2da7):Zlib.c: undefined reference to `deflateEnd'
Zlib.o(.text+0x2f6c):Zlib.c: undefined reference to `deflate'
Zlib.o(.text+0x353b):Zlib.c: undefined reference to `inflate'
Zlib.o(.text+0x3582):Zlib.c: undefined reference to `inflateSetDictionary'
Zlib.o(.text+0x3795):Zlib.c: undefined reference to `inflateEnd'
Zlib.o(.text+0x4400):Zlib.c: undefined reference to `zlibVersion'
Zlib.o(.text+0x447d):Zlib.c: undefined reference to `adler32'
Zlib.o(.text+0x4493):Zlib.c: undefined reference to `crc32'
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 /usr/local/lib/perl5/5.6.0/cygwin/CORE/libperl5_6_0.a

make: *** [blib/arch/auto/Compress/Zlib/Zlib.dll] Error 1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problems compiling perl module Compress-ZLib with perl
  2000-05-02 13:54   ` Problems compiling perl module Compress-ZLib with perl Steve Kelem
@ 2000-05-07 15:30     ` Charles S. Wilson
  0 siblings, 0 replies; 4+ messages in thread
From: Charles S. Wilson @ 2000-05-07 15:30 UTC (permalink / raw)
  To: Steve Kelem; +Cc: Cygwin

Steve Kelem wrote:
> 
> I downloaded and installed the binary release of cygipc, and it installed the
> sys/*.h files.
> (Perl v5.6.0-RC1, Cygwin 1.0, latest download (as of yesterday), NT 4.0 SP6,
> Pentium III 550, 256M memory)
> 
> Charles Wilson wrote:
> 
> > 1. Download, build, and install Compress-ZLib manually.
> >    (you know, perl Makefile.PL, make, make install)
> 
> I tried this, and got the following.  Any idea what's wrong?
> 
> Thanks for your help,
> Steve
> 
> % make

[snip]

> LD_RUN_PATH="" ld2 -o blib/arch/auto/Compress/Zlib/Zlib.dll  -L/usr/local/lib
> Zlib.o /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 /usr/local/lib/perl5/5.6.0/cygwin/CORE/libperl5_6_0.a
> 

I'm not sure why yours is not doing this, but the preceding command
should be:

LD_RUN_PATH="/usr/local/lib" ld2 -o .....

Try doing that by hand; if it works, then we can try to determine why
your perl isn't generating the correct makefile.

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-05-07 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-02 10:54 Problems running cpan_update from perl v5.6.0-RC1 Steve Kelem
2000-05-02 13:16 ` Charles Wilson
2000-05-02 13:54   ` Problems compiling perl module Compress-ZLib with perl Steve Kelem
2000-05-07 15:30     ` Charles S. Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).