Mail Archives: cygwin/2009/12/25/07:07:54
I can't install or build Perl modules with cpan or cpanp because it
passes -fstack-protector argument flag to gcc and that argument is not
accepted in the cygwin version of gcc.
Here is the error message from cpan while trying to install a Perl module.
gcc -c -I/usr/include/openssl -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"0.57\"
-DXS_VERSION=\"0.57\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" SSLeay.c
cc1: error: unrecognized command line option "-fstack-protector"
make: *** [SSLeay.o] Error 1
Here is the cc line when running perl -V. It has the -fstack-protector flag.
How did this perl get built with that flag when that version of gcc is not
in Cygwin distribution?
cc='gcc', ccflags
='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include', optimize='-O3',
The cygwin setup (version 2.673) has gcc 3.4.4-999 only, which is what I
have installed. The latest version of gcc is 4.4.2.
I might be able to add a cc flag in cpan, but I don't know how to take one
out. I was able to use cpanp, go into the build directory, edit the
Makefile, delete the argument, and built the module, but when a module has
dependencies, this is a nightmare to do.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -