Bug 41571 - libglapi.so.0: undefined symbol: is_selinux_enabled
Summary: libglapi.so.0: undefined symbol: is_selinux_enabled
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: All All
: medium major
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 13:31 UTC by Alexandre Demers
Modified: 2011-11-04 23:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
link with -lselinux (737 bytes, patch)
2011-11-04 01:36 UTC, Chia-I Wu
Details | Splinter Review

Description Alexandre Demers 2011-10-07 13:31:34 UTC
After building mesa from git and trying to launch some application, it seems there is a problem with a missing link to selinux.

Poking libglapi gives the following:

ldd -r /usr/lib/x86_64-linux-gnu/libglapi.so.0
	linux-vdso.so.1 =>  (0x00007fffba5ff000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f620ab0c000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f620a76d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f620af90000)
undefined symbol: security_get_boolean_active	(/usr/lib/x86_64-linux-gnu/libglapi.so.0)
undefined symbol: is_selinux_enabled	(/usr/lib/x86_64-linux-gnu/libglapi.so.0)
undefined symbol: security_get_boolean_pending	(/usr/lib/x86_64-linux-gnu/libglapi.so.0)


It was also reported by someone else in Red Hat's bugs list: https://bugzilla.redhat.com/show_bug.cgi?id=737259
Comment 1 Alexandre Demers 2011-10-10 20:22:38 UTC
Can't reproduce anymore as of today.
Comment 2 Alexandre Demers 2011-11-02 15:39:47 UTC
Reappeared in the last couple of days. I'll try to bisect.
Comment 3 Alexandre Demers 2011-11-02 17:27:53 UTC
closing. Seems related to something else happening from time to time unrelated to mesa code. (WT...)
Comment 4 Alexandre Demers 2011-11-03 17:20:49 UTC
Well, after fighting a bit with a different bug, it still seems there. Could it be a linker problem? I had a quick look at linked files and it may be missing something when Selinux is enabled.
Comment 5 Chia-I Wu 2011-11-04 01:36:19 UTC
Created attachment 53140 [details] [review]
link with -lselinux

Does this patch help?  You need to re-run autogen.sh.
Comment 6 Alexandre Demers 2011-11-04 16:57:49 UTC
Yes, I just tested it and it now works fine. Thank you.
Comment 7 Alexandre Demers 2011-11-04 16:58:43 UTC
Comment on attachment 53140 [details] [review]
link with -lselinux

Review of attachment 53140 [details] [review]:
-----------------------------------------------------------------

Works great.
Tested by Alexandre Demers
Comment 8 Chia-I Wu 2011-11-04 23:44:01 UTC
Committed.  Thanks for testing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.