[CRIU] How to compile criu static binary

Pavel Emelyanov xemul at parallels.com
Mon Mar 9 08:04:23 PDT 2015


On 03/09/2015 05:09 PM, Christopher Covington wrote:
> On 03/09/2015 09:47 AM, Christopher Covington wrote:
>> Hi John,
>>
>> On 03/09/2015 08:56 AM, Pavel Emelyanov wrote:
>>> On 03/08/2015 02:31 PM, John Statham wrote:
>>>> Is it possible to compile any version of criu binary statically ?
>>>
>>> We didn't try, but if the libraries we use allow for that, I see
>>> no reason why it shouldn't work :)
>>>
>>>> If you have already tried this on any version of criu...could you
>>>> provide some relevant source code/ changes for same.
>>
>> We've done it with older versions, but my vague recollection is that the
>> latest versions have problems in the test suite or libcriu or something like
>> that, which being nonessential you can just not specify for building (test
>> suite) or hack out of the makefiles (libcriu).
> 
> I just remembered I recently changed my build scripts to never build
> statically because of this warning-turned-error:
> 
>     Using 'dlopen' in statically linked applications requires at runtime the
> shared libraries from the glibc version used for linking
> 
> plugin.c uses dlopen.

Yes, this is plugin-related work. I think it's perfectly OK to have an option
(in Makefile?) to compile CRIU statically with this file compiled-out.

Thanks,
Pavel




More information about the CRIU mailing list