#1286 Problem with moldnam80 and msvcr80

WSL
closed
Earnie Boyd
needs test (57)
Bug
fixed
Feature_in_WSL_4.0
False
2013-02-24
2009-04-24
Jens Georg
No

When using a msvcr80 spec file and using stat/fstat instead of _stat/_fstat, the linked binary is unusable due to missing references to _stat/_fstat. Reason is, when using _stat/_fstat with the appropriate patch in #2134161 the calls are translated to the correct msvcrt functions like _stat64i32 or _stat32 or whatever. When using stat, however, this is mapped to _stat using moldname which does not exist in msvcr80 anymore. see attached example program and screenshots of dependencies

Discussion

  • Jens Georg
    Jens Georg
    2009-04-24

    example program

     
    Attachments
  • Jens Georg
    Jens Georg
    2009-04-24

    manifest file for executable

     
    Attachments
  • Jens Georg
    Jens Georg
    2009-04-24

    Screenshot of depends.exe using oldname

     
  • Jens Georg
    Jens Georg
    2009-04-24

    Screenshot of depends.exe using new name

     
    Attachments
  • Earnie Boyd
    Earnie Boyd
    2009-04-24

    There is no patch attached. Moving to a bug report.

     
  • Earnie Boyd
    Earnie Boyd
    2012-06-14

    Assigning to Chris for resolution.

     
  • Earnie Boyd
    Earnie Boyd
    2012-06-14

    • assigned_to: nobody --> ir0nh34d
    • milestone: --> 2979697
     
  • Earnie Boyd
    Earnie Boyd
    2012-08-03

    • assigned_to: ir0nh34d --> earnie
     
  • Earnie Boyd
    Earnie Boyd
    2012-10-26

    • labels: --> WSL (Windows System Libraries)
    • milestone: 2979697 --> Feature_in_WSL_4.0
    • status: open --> pending-remind
     
  • Earnie Boyd
    Earnie Boyd
    2012-10-26

    I may have resolved this in WSL 4.0, need to review.

     
  • Earnie Boyd
    Earnie Boyd
    2013-01-18

    • category: --> Feature_in_WSL_4.0
    • milestone: Feature_in_WSL_4.0 --> WSL
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-04

    • labels: WSL (Windows System Libraries) -->
    • status: pending-remind --> pending
    • resolution: --> later
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-16

    • labels: --> research
    • type: --> Support
    • patch_attached: --> False
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-16

    • type: Support --> Bug
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-22

    • labels: research --> release notes, needs test
    • status: pending --> closed
    • resolution: later --> fixed
     
  • Earnie Boyd
    Earnie Boyd
    2013-02-22

    Changes already existing in the 4.0-dev release should have resolved this. The user will need to define _USE_32BIT_TIME_T and _HAVE_32BIT_TIME_T as appropriate to define stat to the appropriate _stat32/64i32 function. It's a rather ugly mess which could stand to have a test.

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-24

    Notes added to the NEWS file.

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-24

    • labels: release notes, needs test --> needs test