We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5003

Summary: Autotools/Configure build fails
Product: SDL Reporter: Malte Kießling <mkalte>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P1 CC: cameron.gutman, icculus
Version: HG 2.0Keywords: target-2.0.12
Hardware: x86_64   
OS: Linux   
Attachments: patch

Description Malte Kießling 2020-02-23 20:37:35 UTC
Created attachment 4225 [details]
patch

Starting with https://hg.libsdl.org/SDL/rev/ef2d5382a887 i cannot build using good old ./configure anymore.

The error i get is:

    [....]
    config.status: creating Makefile
    config.status: creating sdl2-config
    config.status: creating sdl2-config.cmake
    config.status: error: cannot find input file: `sdl2-config-version.cmake.in'

To me it looks like that the applied patch is just missing the sdl2-config-version.cmake.in that was in the suggested patch from bug 4970 / https://bugzilla.libsdl.org/attachment.cgi?id=4223&action=diff

I added a standalone patch (by glorious copy-paste) just for the file.
Comment 1 Cameron Gutman 2020-02-25 02:53:27 UTC
I just hit this build break too.

Adding the 2.0.12 label and updating priority so this doesn't get lost.
Comment 2 Cameron Gutman 2020-02-25 03:01:17 UTC
There's an additional build break introduced by https://hg.libsdl.org/SDL/rev/4efb3eb7a3b3 :(

/opt/SDL2/src/video/SDL_surface.c: In function ‘SDL_ConvertSurface_REAL’:
/opt/SDL2/src/video/SDL_surface.c:1056:13: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
             int i;
Comment 3 Ryan C. Gordon 2020-02-25 19:43:57 UTC
Whoops, my bad, I'll take this.

--ryan.
Comment 4 Ryan C. Gordon 2020-02-25 19:54:56 UTC
Fixed in https://hg.libsdl.org/SDL/rev/78754c9488f6, and Sylvain fixed the C90 error in https://hg.libsdl.org/SDL/rev/2f75c19fd2f2

--ryan.