[lxc-devel] [ruby-lxc/master] Fix: undefined symbol error when loading lxc.so

Jafaral on Github lxc-bot at linuxcontainers.org
Thu Oct 13 18:12:29 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 332 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161013/e2e7de00/attachment.bin>
-------------- next part --------------
From c0712e16d639471d07bda2e7728f7173ff4c8d58 Mon Sep 17 00:00:00 2001
From: Jafar Al-Gharaibeh <Jafaral at users.noreply.github.com>
Date: Thu, 13 Oct 2016 13:07:05 -0500
Subject: [PATCH] Fix: undefined symbol error when loading lxc.so

lxc_strerror() doesn't not exist, it is nothing more than an idea.
LXC folks don't have plans to add it any time soon

Signed-off-by: Jafar Al-Gharaibeh <to.jafar at gmail.com>
---
 ext/lxc/lxc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ext/lxc/lxc.c b/ext/lxc/lxc.c
index 2fd5a62..b45a141 100644
--- a/ext/lxc/lxc.c
+++ b/ext/lxc/lxc.c
@@ -42,7 +42,6 @@ extern void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1,
 
 extern int lxc_wait_for_pid_status(pid_t pid);
 extern long lxc_config_parse_arch(const char *arch);
-extern const char *lxc_strerror(int error);
 
 static VALUE Container;
 static VALUE Error;
@@ -2069,7 +2068,7 @@ container_unfreeze(VALUE self)
 
     ret = RELEASING_GVL(unfreeze_without_gvl, data);
     if (!ret)
-        rb_raise(Error, "unable to unfreeze container: %s", lxc_strerror(ret));
+        rb_raise(Error, "unable to unfreeze container");
 
     return self;
 }


More information about the lxc-devel mailing list