Hi,
I'm trying to integrate a rump kernel into an existing application which
needs to create UDF filesystem images in userspace. The code is currently
using UDFtoolkit but it turns out that is rather unstable for writing.
I'd prefer to use static linking to simplify installation and deployment of
the app. As a test, I tried building a static copy of tests/fstest_img
from the buildrump.sh repo, but I can't quite get it to work:
1) I built rump statically based on the Wiki instructions, using something
like this:
$ ./buildrump.sh -j2 -q -d ../rump-static -V MKPIC=no fullbuild
2) I then tried to build fstest2.c manually:
$ gcc -o fstest2 fstest2.c -I../common -I../../../rump-static/include/
-L../../../rump-static/lib ../../../rump-static/lib/librump.a
../../../rump-static/lib/librumpuser.a
../../../rump-static/lib/librumpfs_sysvbfs.a -lrt -ldl
(It turns out this still needs libdl, so I added that in)
The result links fine but fails in the rump_sys_mkdir() call:
$ RUMP_VERBOSE=1 ./fstest2
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.1 (RUMP-ROAST) #0: Tue Sep 23 11:58:08 CEST 2014
mato@dezo:/home/mato/projects/rump/buildrump.sh/obj/lib/librump
total memory = unlimited (host limit)
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "rumpclk" frequency 100 Hz quality 0
cpu0 at thinair0: rump virtual cpu
cpu1 at thinair0: rump virtual cpu
kern.module.path=/stand/amd64/7.99.1/modules
mkdir /mnt
What am I missing?
Martin
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users