develooper Front page | perl.perl5.porters | Postings from April 2014

[perl #121643] Windows build failure with www.mingw.org's gcc-4.8.1-4

Thread Previous
From:
Steve Hay
Date:
April 12, 2014 16:08
Subject:
[perl #121643] Windows build failure with www.mingw.org's gcc-4.8.1-4
Message ID:
rt-4.0.18-3975-1397318872-1112.121643-75-0@perl.org
# New Ticket Created by  Steve Hay 
# Please include the string:  [perl #121643]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=121643 >


Attempting to build bleadperl with gcc-4.8.1-4 downloaded from http://www.mingw.org (using their mingw-get-setup.exe to simply get the current latest version) successfully builds miniperl.exe and a bunch of pure-Perl modules, but then fails on perllib.c when trying to build perl519.dll/perl.exe.

The output of the perllib.c compilation is attached.

It seems to fail because we have BOOL DllMain(HANDLE, DWORD, LPVOID) in perllib.c, which conflicts with BOOL DllMain(HINSTANCE, DWORD, LPVOID) in mingw/include/winbase.h.

I've previously used gcc-4.7.0-1 from http://www.mingw.org and gcc-4.8.0 from http://mingw-w64.sourceforge.net/ (rubenvb's build). These both work fine. Neither one has a declaration of DllMain its winbase.h or anywhere else.
Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About