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 - Autotools/Configure build fails
Summary: Autotools/Configure build fails
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P1 blocker
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.12
Depends on:
Blocks:
 
Reported: 2020-02-23 20:37 UTC by Malte Kießling
Modified: 2020-02-25 19:54 UTC (History)
2 users (show)

See Also:


Attachments
patch (479 bytes, patch)
2020-02-23 20:37 UTC, Malte Kießling
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.