Menu

#376 out123_open uses strtok_r, which is unavailable on MSVC

1.32.x
closed-fixed
nobody
None
5
2025-10-06
2024-12-29
Maarten
No

Discussion

  • Thomas Orgis

    Thomas Orgis - 2024-12-29

    World, are you kidding me? You cannot win. So we need to check for strtok_r() and fall back if not there? Or rather … strtok_s() for Windows, strtok_r() for others?

    Relying on thread-local storage is not quite enough, so it needs to be a safer variant.

     
  • Maarten

    Maarten - 2024-12-29

    FYI, I updated the GitHub workflows in the master-with-github-ci branch on my fork.

     
  • Thomas Orgis

    Thomas Orgis - 2025-01-04

    OK, I should have fixed the strtok_r usage (now detecting and on MSVC hopefully using strtok_s) with revision 5474 and merged .github changes with 5475.

    Maybe you can confirm if things are right now

     
  • Maarten

    Maarten - 2025-01-04

    Indeed, all MSVC architectures are happy again!
    https://github.com/madebr/mpg123/actions

    You can remove .github/workflows/CMake-MSVC-noyasm.yml.
    .github/workflows/CMake-MSVC.yml tests mpg123 with and without yasm.

    https://github.com/madebr/mpg123/commit/c43addb5407f3eaa9c0050ea9c3fa0f3e07af4e2#diff-5decae584beea049114a705b5cf56e54c86c67d12349099f81b9ea98ec9b7427L1

     
    • Ozkan Sezer

      Ozkan Sezer - 2025-01-04

      You can remove .github/workflows/CMake-MSVC-noyasm.yml

      Yes. And it fails miserably already.

       
      • Ozkan Sezer

        Ozkan Sezer - 2025-01-05

        You can remove .github/workflows/CMake-MSVC-noyasm.yml

        Yes. And it fails miserably already.

        Actually if fails because of that arm32 configuration (named amd64_arm in there) :

        LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
        

        This is because of the win32 sdk version we had in SDL, no? Is this
        not fixable in mpg123 gh actions somehow?

         
    • Thomas Orgis

      Thomas Orgis - 2025-01-05

      I removed the redundant workflow now. Ozkan: is the combined workflow missing something?

       
  • Maarten

    Maarten - 2025-01-05

    (not to self: read the chat history before posting)
    Apologies about the noise

     
  • Thomas Orgis

    Thomas Orgis - 2025-05-18

    Note: release 1.33.0 should ship with the fix.

     
  • Thomas Orgis

    Thomas Orgis - 2025-10-06
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB