title: Steps to build Perl 5.6.2 in Cygwin 1.7.11
body: <p>I cannot seem to build perl 5.6.2 in Cygwin 1.7.11.</p>
  
  <p>Here are the steps I am following to do it so far. </p>
  
  <p>Download perl 5.6.2 source from website and untar to some folder "perl-5.6.2"</p>
  
  <pre><code>cd perl-5.6.2/bld
  sh ../Configure -des -Dmksymlinks -Dprefix=/common/ndd/perl/5.6.2 -DDEBUGGING 2&gt;&amp;1
  make 2&gt;&amp;1
  make install 2&gt;&amp;1
  </code></pre>
  
  <p>Here are the logs from this: </p>
  
  <p><a href="http://pastebin.com/pqLg4S7z" rel="nofollow">http://pastebin.com/pqLg4S7z</a></p>
  
  <p>What happens is make creates "perl-5.6.2/bld/perl.exe" and this file generates an abort signal every time. </p>
  
  <p>Here is the backtrace from running gdb on it. (Note: I configured with -DDEBUGGING so all the gcc debug flags should be enabled.)</p>
  
  <pre><code>(gdb) run
  Starting program: /openlogic/build/work/perl-5.6.2/bld/perl.exe
  [New Thread 3348.0xf54]
  [New Thread 3348.0x48c]
  
  Program received signal SIGABRT, Aborted.
  0x00000000 in ?? ()
  (gdb) backtrace
  #0  0x00000000 in ?? ()
  #1  0x7792f8b1 in ntdll!RtlUpdateClonedSRWLock ()
     from /cygdrive/c/Windows/system32/ntdll.dll
  #2  0x757f0a91 in WaitForSingleObjectEx ()
     from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
  #3  0x000000a8 in ?? ()
  #4  0x00000000 in ?? ()
  (gdb) quit
  </code></pre>
  
  <p>Here id the ldd.exe command ran on perl.exe</p>
  
  <pre><code>$ ldd /ndipiazza/build/work/perl-5.6.2/bld/perl.exe
          ntdll.dll =&gt; /cygdrive/c/Windows/SysWOW64/ntdll.dll (0x77910000)
          kernel32.dll =&gt; /cygdrive/c/Windows/syswow64/kernel32.dll (0x75cb0000)
          KERNELBASE.dll =&gt; /cygdrive/c/Windows/syswow64/KERNELBASE.dll (0x757e0000)
          libperl5_6_2.dll =&gt; /ndipiazza/build/work/perl-5.6.2/bld/libperl5_6_2.dll (0x66140000)
          cygcrypt-0.dll =&gt; /usr/bin/cygcrypt-0.dll (0x67db0000)
          cygwin1.dll =&gt; /usr/bin/cygwin1.dll (0x61000000)
          ??? =&gt; ??? (0x570000)
  </code></pre>
  
  <p>Can anyone see why I would be getting this sigabrt? </p>
  
  <p>EDIT: here is a link to a discussion going on in Cygwin mailing list: <a href="http://cygwin.com/ml/cygwin/2012-07/msg00368.html" rel="nofollow">http://cygwin.com/ml/cygwin/2012-07/msg00368.html</a></p>