media-libs/mesa undefined reference to `gbm_bo_create_with_modifiers'

Project:Linux software
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Related pages:#14518: media-libs/mesa
Tags:mesa
Description

While building media-libs/mesa-17.1.10 :

./.libs/libEGL_common.a(platform_drm.o): In function `get_back_bo':
platform_drm.c:(.text+0x28d): undefined reference to `gbm_bo_create_with_modifiers'
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libEGL.la' with the above command before installing it

Comments

#1

Bug 616398 - media-libs/mesa-9999 fails building: undefined reference to `gbm_bo_create_with_modifiers'
https://bugs.gentoo.org/616398

#2

Title:media-libs/mesa» media-libs/mesa undefined reference to `gbm_bo_create_with_modifiers'

#3

Moved old libs out of the way:

gentoo-victoria usr # cd lib32
gentoo-victoria lib32 # lld libE
lrwxrwxrwx 1 root root   15 Jun 10  2017 libEGL.so -> libEGL.so.1.0.0
lrwxrwxrwx 1 root root   15 Jun 10  2017 libEGL.so.1 -> libEGL.so.1.0.0
-rwxr-xr-x 1 root root 232K Jun 10  2017 libEGL.so.1.0.0
gentoo-victoria lib32 # mkdir tt
gentoo-victoria lib32 # mv libEGL.so* tt
renamed 'libEGL.so' -> 'tt/libEGL.so'
renamed 'libEGL.so.1' -> 'tt/libEGL.so.1'
renamed 'libEGL.so.1.0.0' -> 'tt/libEGL.so.1.0.0'
gentoo-victoria lib32 # cd ..
gentoo-victoria usr # cd lib64
gentoo-victoria lib64 # cd lib65
bash: cd: lib65: No such file or directory
gentoo-victoria lib64 # mkdir tt
gentoo-victoria lib64 # mv libEGL.so* tt
renamed 'libEGL.so' -> 'tt/libEGL.so'
renamed 'libEGL.so.1' -> 'tt/libEGL.so.1'
renamed 'libEGL.so.1.0.0' -> 'tt/libEGL.so.1.0.0'
gentoo-victoria lib64 # pwd
/usr/lib64                                                                                                                                                                                   
gentoo-victoria lib64 #

emerging mesa failed but I manually copied the new libs into place:

# cd /var/tmp/portage/media-libs/mesa-17.1.10/work/
# cd mesa-17.1.10-abi_x86_64.amd64/
# cd lib64/
# cp libEGL.so* libgbm.so* /usr/lib64/
# cd ../../mesa-17.1.10-abi_x86_32.x86/lib32/
# cp -v libEGL.so* libgbm.so* /usr/lib32/

#4

re-emerging now works.
Deleted the old libs.

The upstream bug is still not fixed.