Hi Martin,

On 23/09/14 10:49, Martin Lucina wrote:
> 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.

Nice, please let us know how it works out.

> 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

If you look at the verbose build output (no -q), you'll see that you're 
missing ...

> 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)

... -Wl,--whole-archive -libs -Wl,--no-whole-archive

It might also be easier to compile the program manually by using 
rumpmake, i.e. when in the fstest_img run "../../obj/tooldir/rumpmake"

Also, you can make rumpmake produce full output by editing the rumpmake 
file (it's a shell script) and setting MAKEVERBOSE to 2 (or by rerunning 
buildrump.sh without -q)

Good luck, let us know if you run into any further roadblocks.

   - antti

------------------------------------------------------------------------------
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

Reply via email to