Mir

Mir fails to build (link) against locally built Mesa+GBM

Bug #1111268 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Daniel van Vugt

Bug Description

Mir fails to build (link) against locally built Mesa+GBM.

The problem is that it's still looking at the system libgbm.so and not the local one I specified in PKG_CONFIG_PATH...

Linking CXX executable ../bin/mir
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libgbm.so: undefined reference to `wayland_buffer_is_drm'
collect2: ld returned 1 exit status
make[2]: *** [bin/mir] Error 1
make[1]: *** [src/CMakeFiles/mirds.dir/all] Error 2
make: *** [all] Error 2

make VERBOSE=1 shows the source of the problem is that we're linking to the specified -lgbm from pkgconfig but ignoring the library path also from pkgconfig.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Linking CXX executable ../bin/render_to_fb
cd /home/dan/bzr/mir/pf/build/examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/render_to_fb.dir/link.txt --verbose=1
/usr/bin/g++-4.6 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -std=c++0x -Werror -Wall -fno-strict-aliasing -pedantic -Wextra -fPIC -D__GBM__ -Wl,-Bsymbolic-functions -Wl,-z,relro CMakeFiles/render_to_fb.dir/render_to_fb.cpp.o -o ../bin/render_to_fb -rdynamic ../lib/libmirplatformgraphics.a ../lib/libmirlogging.a ../lib/libmirdraw.a ../lib/libmircompositor.a -lboost_chrono-mt -lboost_date_time-mt -lboost_filesystem-mt -lboost_system-mt -lboost_thread-mt -lboost_program_options-mt -lboost_regex-mt -ldrm -lgbm /home/dan/mirmesa/lib/libEGL.so /home/dan/mirmesa/lib/libGLESv2.so -Wl,-rpath,/home/dan/mirmesa/lib
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libgbm.so: undefined reference to `wayland_buffer_is_drm'
collect2: ld returned 1 exit status
make[2]: *** [bin/render_to_fb] Error 1

description: updated
Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
status: Fix Committed → Fix Released
milestone: none → 0.0.2
information type: Proprietary → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.