compilation fails with --disable-glamor
Submitted by Dq8CokMHloQZw
Assigned to xf86-video-ati maintainers
Link to original bug (#111688)
Description
I'm trying to compile latest xf86-video-ati git aka
commit c7ed12cb (HEAD -> makepkg, origin/master, origin/HEAD, master)
Date: Thu Jul 18 18:14:48 2019 +0200
like this:
export CFLAGS=${CFLAGS/-fno-plt}
export CXXFLAGS=${CXXFLAGS/-fno-plt}
export LDFLAGS=${LDFLAGS/,-z,now}
./autogen.sh
./configure --prefix=/usr <br>
--enable-option-checking <br>
--enable-debug <br>
--disable-glamor
I encounter this error:
CC radeon_kms.lo
CC radeon_present.lo
radeon_dri2.c: In function ‘radeon_dri2_exchange_buffers’:
radeon_dri2.c:732:19: warning: unused variable ‘info’ [-Wunused-variable]
732 | RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen));
| ^~~~
CC radeon_sync.lo
CC radeon_vbo.lo
CC drmmode_display.lo
CC radeon_bo_helper.lo
CCLD ati_drv.la
radeon_present.c: In function ‘radeon_present_check_flip’:
radeon_present.c:283:21: error: dereferencing pointer to incomplete type ‘struct radeon_pixmap’
283 | if (priv && priv->fb_failed)
| ^~
make[2]: *** [Makefile:689: radeon_present.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/user/build/1packages/4used/xf86-video-ati-git/makepkg_pacman/xf86-video-ati/src/xf86-video-ati/src'
make[1]: *** [Makefile:461: all-recursive] Error 1
make[1]: Leaving directory '/home/user/build/1packages/4used/xf86-video-ati-git/makepkg_pacman/xf86-video-ati/src/xf86-video-ati'
make: *** [Makefile:393: all] Error 2
Note: it works with --enable-glamor but I hit other non-compilation issues like:
coredump/crash: https://bugs.freedesktop.org/show_bug.cgi?id=74096
and
white screen if xfwm4 vsync is not off: https://bugs.freedesktop.org/show_bug.cgi?id=111687