#1039574 asc: FTBFS with libsdl1.2-compat-dev: pointless accessor for struct private_hwdata

Package:
src:asc
Source:
src:asc
Submitter:
Simon McVittie
Date:
2026-01-10 11:02:45 UTC
Severity:
normal
Tags:
#1039574#5
Date:
2023-06-27 10:50:53 UTC
From:
To:
I tried recompiling asc with libsdl1.2-compat-dev instead of
libsdl1.2-dev, in preparation for having src:sdl12-compat take over the
libsdl1.2-dev package name.

I found that asc failed to build from source in this situation:

This is because asc bundles a copy of a SDL 1.2 C++ binding, SDLmm, which
includes an unnecessary accessor for a private member of SDL_surface.
The member was declared as `struct private_hwdata *hwdata` in classic
SDL 1.2, but sdl12-compat simplifies this to `void *hwdata`.

This struct member is for internal use by SDL and the data structure
that it points to has no public definition, so there is no legitimate
reason for third-party code to be accessing it. I think the obvious
solution is to delete the accessor, instead of silencing the compiler
warning with a cast.

I reported this to https://github.com/libsdl-org/sdl12-compat/issues/299
but it's not clear to me whether it *should* be worked around in
sdl12-compat. If it isn't, then this bug is likely to become RC when
we are ready to make src:sdl12-compat take over libsdl1.2-dev.

Please consider the attached patch (it will need a trivial edit to
reference the bug number).

Thanks,
    smcv

#1039574#12
Date:
2023-07-12 22:05:07 UTC
From:
To:
SDL upstream thought the workaround was worth having, so this has been
worked around in sdl12-compat and will not be RC. (But please consider
the patch anyway, I think it's the right thing to do in asc.)

    smcv

#1039574#19
Date:
2026-01-10 10:10:20 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.