On 22/08/16 10:43, Geoffrey Clements wrote:
Hi Guys,
Sorry but a bit of a noob here. I've followed all the tutorials and watched
all the youtube videos and followed along so I /think/ I'm getting a handle on
rumprun, well at least the basics. So now I am experimenting.
Sorry but we're all noobs here.
I'm trying to work out the absolute minimum devices I can link in with the
kernel. I created a simple hello_world example with a call to sleep mixed in
with it. I also created my own configuration which is empty. When I try to
bake I get the following link error:
rumprun/rumprun-x86_64/lib/rumprun-hw/librumprun_base.a(config.o): In function
`handle_net':
/home/geoff/work/rumprun/lib/librumprun_base/config.c:404: undefined reference
to `rump_pub_netconfig_ifcreate'
Plus a few others all relating to config.o. Adding "add -lrumpnet_config" to
my config cures these errors but introduces a whole load of others which means
I need to add more modules to my config.
The short version is: network configuration should not use
rumpnet_config, but it does.
This thread touches the subject, with a slightly longer version:
https://www.freelists.org/post/rumpkernel-users/Library-Guide-Minimization
If even the longer version explains insufficiently, feel free to press
for more details.
It seems I need to include networking for a simple hello world program which
does not feel right to me given the philosophy of unikernels.
Philosophy and reality are not always aligned ;)
It is definitely possible to avoid including the networking stack.
That's in fact what I did, IIRC, for rumprun-nethack. However, it
requires a bit of recompilation. Of course, it's not impossible or even
hard to fix properly, but nobody has had a pressing need to fix it and
contribute their fix for others to enjoy.