File `-lselinux' does not exist.
Justin P. Mattock
justinmattock at gmail.com
Sun Aug 16 18:02:16 PDT 2009
Dan Nicholson wrote:
> On Sun, Aug 16, 2009 at 5:31 PM, Justin P.
> Mattock<justinmattock at gmail.com> wrote:
>
>> Dan Nicholson wrote:
>>
>>> On Sun, Aug 16, 2009 at 4:52 PM, Dan Nicholson<dbn.lists at gmail.com>
>>> wrote:
>>>
>>>
>>>> On Sun, Aug 16, 2009 at 2:11 PM, Justin Mattock<justinmattock at gmail.com>
>>>> wrote:
>>>>
>>>>
>>>>> I've been racking my brain on this for a few days
>>>>> without any results.
>>>>> I can compile the xserver normally, but as seen as I enable
>>>>> selinux I get an error during compilation time.
>>>>>
>>>>> make -d shows this:
>>>>>
>>>>> No need to remake target `../../xkb/libxkb.la'.
>>>>> Considering target file `-lselinux'.
>>>>> File `-lselinux' does not exist.
>>>>>
>>>>>
>>>> Try commenting the automake rule for libxorg_la_DEPENDENCIES in
>>>> hw/xfree86/Makefile.am. The problem is that libxorg_la_DEPENDENCIES is
>>>> defined as libxorg_la_LIBADD, which (rightly) includes -lselinux.
>>>> However, DEPENDENCIES are used as make prerequisites, so make will try
>>>> to find a file named "-lselinux". DEPENDENCIES and LIBADD need to be
>>>> untangled so that external libraries don't appear as make prereqs.
>>>>
>>>>
>>> Try this (untested) patch.
>>>
>>> --
>>> Dan
>>>
>>>
>> Thanks you very much for the info,
>> and patch.
>>
>> I cleaned out the xserver(distclean) then
>> applied your patch.
>> unfortunately I'm still hitting this
>> same error.
>>
>> I can go and try looking at the Makefile to see,
>> if this approach works.
>>
>
> You'd have to rebuild the Makefile.in first. Just run "autreconf -iv"
> and continue as usual.
>
> --
> Dan
>
>
ooops!
(as you can see my brain is mush, from looking
at this all day). After doing the autoreconf
with your patch finally the xserver compiled all the way through.
(nice catch).
Thank you for this.
(I thought the xserver was looking
at /lib /usr/lib instead of /usr/lib64 /lib64 during the compile process).
Justin P. Mattock
More information about the xorg
mailing list