Problems compiling perl module Compress-Zlib with perl
Steve Kelem
s_kelem@pacbell.net
Sun Dec 17 10:03:00 GMT 2000
Charles S. Wilson wrote:
> Looks like your gcc and binutils are not correctly installed. Please
> send the output of 'cygcheck -s -v -r' and of 'touch foo.c && gcc
> --verbose -c foo.c' to the list.
>
> --Chuck
>
>
I uninstalled and reinstalled the cygwin software. Now I'm back to my
original compilation problem, which looks like a C compiler problem.
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
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
collect2: installation problem, cannot exec `/home/kelem/bin/sh/ld': No
such file or directory
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
I get the same result if I set LD_RUN_PATH to /usr/local/lib (make
LD_RUN_PATH="/usr/...")
Here's the output of gcc --verbose ...
% gcc --verbose -c -foo.c |& tee gcc.out
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-5/specs
gcc version 2.95.2-5 19991024 (cygwin experimental)
I've attached the output of cygcheck -s -v -r
Thanks for your help,
Steve
Christopher Faylor wrote:
>>Because of the problems I'm having compiling the perl module
>>Compress-Zlib 1.08 and because the cygwin page
>>( http://sources.redhat.com/cygwin/ported.html ) lists a port of gcc2.95.2
>>( ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32 >/cygwin/gcc-2.95.2/ < ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/gcc-2.95.2/ >).
>>(If this isn't a good compiler, please let me know, let me know how to
>>uninstall it, how to install the proper one, and update your web page.
>>For now, I'll assume it's the correct compiler, even though it installed
>>into /H-i586-cygwin32/bin, and not /bin.)
>I think I've already let you know. Use the version of the compiler that
>>is released with the product. There is no reason for you to go to some
>>other site to find a compiler. gcc comes with cygwin. Use setup.exe to
>>install it, just like any other package.
>That link was basically a historical reference. I've removed it.
I just looked at
http://sources.redhat.com/cygwin/
and it still contains the link "more software", which contains the link
gcc 2.95.2, which points to
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/gcc-2.95.2/
More information about the Cygwin
mailing list