Re: [PATCH] libselinux: fix compiler flags for linux + clang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/01/2016 04:54 PM, William Roberts wrote:
> On Tue, Nov 1, 2016 at 1:55 PM, Stephen Smalley <sds@xxxxxxxxxxxxx> wrote:
>> On 11/01/2016 04:32 PM, William Roberts wrote:
>>> On Tue, Nov 1, 2016 at 1:32 PM, Stephen Smalley <sds@xxxxxxxxxxxxx> wrote:
>>>> On 11/01/2016 04:23 PM, william.c.roberts@xxxxxxxxx wrote:
>>>>> From: William Roberts <william.c.roberts@xxxxxxxxx>
>>>>>
>>>>> As reported by Nicolas Iooss, the clang + linux build seems
>>>>> broken:
>>>>>
>>>>>  clang-3.9: warning: argument unused during compilation: '-undefined
>>>>> dynamic_lookup'
>>>>>   /usr/bin/ld: unrecognised option: -install_name
>>>>>   clang-3.9: error: linker command failed with exit code 1 (use -v to
>>>>> see invocation)
>>>>>
>>>>> We already have those options set for Darwin, just drop them from the
>>>>> clang side.
>>>>
>>>> Thanks, applied.
>>>
>>> Did you check this with clang-3.9 locally and reproduce the error?
>>
>> Yes.  I think casting to void* will clear it.
> 
> That's what I was leaning towards myself.

Actually, if you just switch the parameter type for buf in both
functions to void*, everything is fine.


_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux