I'm trying to build Perl with threading turned off in a Cygwin environment, but it's failing as shown here:

cp op.c opmini.c `sh cflags "optimize='-O2'" opmini.o` -DPERL_EXTERNAL_GLOB opmini.c CCCMD = gcc -DPERL_CORE -c -DPERL_USE_SAFE_PUTENV -U__STRICT_AN +SI__ -fno-strict-aliasing -pipe -std=c89 -O2 -Wall -ansi -W -Wextr +a -Wdeclaration-after-statement -Wendif-labels PATH=/home/Administrator/perl/perl-5.10.0:.:/usr/local/bin:/usr/bin:/b +in:/usr/X11R6/bin:/cygdrive/c/Perl64/site/bin:/cygdrive/c/Perl64/bin: +/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/ +System32/Wbem:/cygdrive/c/Program\ Files\ (x86)/Microsoft\ SQL\ Serve +r/100/Tools/Binn/:/cygdrive/c/Program\ Files/Microsoft\ SQL\ Server/1 +00/Tools/Binn/:/cygdrive/c/Program\ Files/Microsoft\ SQL\ Server/100/ +DTS/Binn/:/cygdrive/c/Program\ Files\ (x86)/Microsoft\ SQL\ Server/10 +0/Tools/Binn/VSShell/Common7/IDE/:/cygdrive/c/Program\ Files\ (x86)/M +icrosoft\ SQL\ Server/100/DTS/Binn/:/cygdrive/c/Program\ Files\ (x86) +/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/PrivateAssemblies/:/cygdr +ive/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/lib/lapack:/usr/l +ocal:/etc:/usr/lib:/lib:/sbin:/usr/sbin:/usr/libexec gcc -L/home/Admi +nistrator/perl/perl-5.10.0 -Wl,--enable-auto-import -Wl,--export-all +-symbols -Wl,--stack,8388608 -Wl,--enable-auto-image-base -Wl,--enabl +e-auto-import -L/usr/local/lib -o miniperl miniperlmain.o opmini.o li +bperl.a -ldl -lcrypt -lgdbm_compat /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: line 0: `PATH=/home/Administrator/perl/perl-5.10.0:.:/usr +/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Perl64/site/bin:/ +cygdrive/c/Perl64/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Window +s:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program\ Files\ (x86) +/Microsoft\ SQL\ Server/100/Tools/Binn/:/cygdrive/c/Program\ Files/Mi +crosoft\ SQL\ Server/100/Tools/Binn/:/cygdrive/c/Program\ Files/Micro +soft\ SQL\ Server/100/DTS/Binn/:/cygdrive/c/Program\ Files\ (x86)/Mic +rosoft\ SQL\ Server/100/Tools/Binn/VSShell/Common7/IDE/:/cygdrive/c/P +rogram\ Files\ (x86)/Microsoft\ SQL\ Server/100/DTS/Binn/:/cygdrive/c +/Program\ Files\ (x86)/Microsoft\ Visual\ Studio\ 9.0/Common7/IDE/Pri +vateAssemblies/:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0/: +/usr/lib/lapack:/usr/local:/etc:/usr/lib:/lib:/sbin:/usr/sbin:/usr/li +bexec gcc -L/home/Administrator/perl/perl-5.10.0 -Wl,--enable-auto-i +mport -Wl,--export-all-symbols -Wl,--stack,8388608 -Wl,--enable-auto- +image-base -Wl,--enable-auto-import -L/usr/local/lib -o miniperl mini +perlmain.o opmini.o libperl.a -ldl -lcrypt -lgdbm_compat ' make: *** [miniperl.exe] Error 2

Any pointers on where to fix the syntax?

As always, thanks for your support!

Scott...

In reply to Error building Perl under cygwin by spstansbury

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.