Re: About using mixing libc and rump APIs in the same code

  • From: Antti Kantee <pooka@xxxxxx>
  • To: rumpkernel-users@xxxxxxxxxxxxx
  • Date: Wed, 03 Jun 2015 12:32:22 +0000

On 03/06/15 12:20, Liming Sun wrote:

By the way, below is a small change which appears to fix the link issue I
saw yesterday.

diff --git a/configure b/configure
index 2713aec..202d73a 100755
--- a/configure
+++ b/configure
@@ -12528,7 +12528,7 @@ fi
EXTRA_LIBS=""
case $target_os in #(
linux*) :
- EXTRA_LIBS="-lrumpnet_sockin -lrumpnet_net -lrumpnet
-lrumpkern_sys_linux" ;; #(
+ EXTRA_LIBS="-lrumpnet_sockin -lrumpnet_net -lrumpnet" ;; #(
solaris*) :
EXTRA_LIBS="-lrumpkern_sys_sunos" ;; #(
cygwin*) :

Well, yes, that will fix the link issue, but it will also make fs-utils not work entirely correctly on Linux (observe the output of fsu_ls -l, for example).

On Tue, Jun 2, 2015 at 10:20 PM, Liming Sun <liming.sun5@xxxxxxxxx> wrote:

Thanks! fs-utils seems exactly what I was looking for...
I got some link error (like below) when compiling fs_utils, but the
Makefile gave me enough information to write a small example which seems
working.

/home/lsun/workspace/gitrepo/rump/rumpctrl/rumpdyn/lib/librumpkern_sys_linux.so:
undefined reference to `rumpns_compat_50_sys_settimeofday'

I know how to fix it, but I need to batch the fix with some other changes, so it'll take a few more hours.

- antti

p.s. please don't top-post on the mailing list. as you can see from my response being "upside-down", it makes responding to specific parts of mails very inconvenient.

Other related posts: