[bug #57151] Fix WINDOWS32 MSVS build

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[bug #57151] Fix WINDOWS32 MSVS build

Martin Dorey-4
URL:
  <https://savannah.gnu.org/bugs/?57151>

                 Summary: Fix WINDOWS32 MSVS build
                 Project: make
            Submitted by: bwijen
            Submitted on: Sat 02 Nov 2019 09:28:10 AM UTC
                Severity: 3 - Normal
              Item Group: Build/Install
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: SCM
        Operating System: MS Windows
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Running `bootstrap.bat` and `build_w32.bat` from tag `4.2.92` results in:
src/misc.c(421): warning C4013: 'sleep' undefined; assuming extern returning
int

And eventually:

   Creating library .\WinRel\gnumake.lib and object .\WinRel\gnumake.exp
misc.obj : error LNK2019: unresolved external symbol sleep referenced in
function spin
.\WinRel\gnumake.exe : fatal error LNK1120: 1 unresolved externals


The attached patches are:
* Minor typo fix
* Fix for this issue

Tested with MSVS2017 and MSVS2019




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 02 Nov 2019 09:28:10 AM UTC  Name: 0001-Fix-typo.patch  Size: 555B  
By: bwijen

<http://savannah.gnu.org/bugs/download.php?file_id=47777>
-------------------------------------------------------
Date: Sat 02 Nov 2019 09:28:10 AM UTC  Name:
0002-Fix-WINDOWS32-MSVS-build.patch  Size: 785B   By: bwijen

<http://savannah.gnu.org/bugs/download.php?file_id=47778>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57151>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/