Skip to content

[directfb] build fail #280

@Frestein

Description

@Frestein

I got this error when building directfb 1.7.7-6:

make[3]: Entering directory '/home/frestein/.cache/yay/directfb/src/DirectFB-DIRECTFB_1_7_7/systems/sdl'
  CC       sdlgfx.lo
  CCLD     libdirectfb_sdlgraphics.la
  CC       sdlinput.lo
  CCLD     libdirectfb_sdlinput.la
  CC       primary.lo
primary.c:328:27: error: initialization of 'DFBResult (*)(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags,  CoreSurface *, CorePalette *, CoreSurfaceBufferLock *, CoreSurfaceBufferLock *' {aka 'DFBResult (*)(struct __DFB_CoreLayer *, void *, void *, void *, struct __DFB_CoreLayerRegionConfig *, CoreLayerRegionConfigFlags,  struct __DFB_CoreSurface *, struct _CorePalette *, struct __DFB_CoreSurfaceBufferLock *, struct __DFB_CoreSurfaceBufferLock *)'} from incompatible pointer type 'DFBResult (*)(CoreLayer *, void *, void *, void *, CoreLayerRegionConfig *, CoreLayerRegionConfigFlags,  CoreSurface *, CorePalette *, CoreSurfaceBufferLock *)' {aka 'DFBResult (*)(struct __DFB_CoreLayer *, void *, void *, void *, struct __DFB_CoreLayerRegionConfig *, CoreLayerRegionConfigFlags,  struct __DFB_CoreSurface *, struct _CorePalette *, struct __DFB_CoreSurfaceBufferLock *)'} [-Wincompatible-pointer-types]
  328 |      .SetRegion         = primarySetRegion,
      |                           ^~~~~~~~~~~~~~~~
primary.c:328:27: note: (near initialization for 'primaryLayerFuncs.SetRegion')
primary.c:331:27: error: initialization of 'DFBResult (*)(CoreLayer *, void *, void *, void *, CoreSurface *, const DFBRegion *, CoreSurfaceBufferLock *, const DFBRegion *, CoreSurfaceBufferLock *)' {aka 'DFBResult (*)(struct __DFB_CoreLayer *, void *, void *, void *, struct __DFB_CoreSurface *, const DFBRegion *, struct __DFB_CoreSurfaceBufferLock *, const DFBRegion *, struct __DFB_CoreSurfaceBufferLock *)'} from incompatible pointer type 'DFBResult (*)(CoreLayer *, void *, void *, void *, CoreSurface *, const DFBRegion *, CoreSurfaceBufferLock *)' {aka 'DFBResult (*)(struct __DFB_CoreLayer *, void *, void *, void *, struct __DFB_CoreSurface *, const DFBRegion *, struct __DFB_CoreSurfaceBufferLock *)'} [-Wincompatible-pointer-types]
  331 |      .UpdateRegion      = primaryUpdateRegion,
      |                           ^~~~~~~~~~~~~~~~~~~
primary.c:331:27: note: (near initialization for 'primaryLayerFuncs.UpdateRegion')
make[3]: *** [Makefile:758: primary.lo] Error 1
make[3]: Leaving directory '/home/frestein/.cache/yay/directfb/src/DirectFB-DIRECTFB_1_7_7/systems/sdl'
make[2]: *** [Makefile:546: all-recursive] Error 1
make[2]: Leaving directory '/home/frestein/.cache/yay/directfb/src/DirectFB-DIRECTFB_1_7_7/systems'
make[1]: *** [Makefile:707: all-recursive] Error 1
make[1]: Leaving directory '/home/frestein/.cache/yay/directfb/src/DirectFB-DIRECTFB_1_7_7'
make: *** [Makefile:575: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: directfb-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
directfb - exit status 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions