Annotation of wikisrc/users/haad/rump_zfs_solaris.mdwn, revision 1.1

1.1     ! wiki        1: 
        !             2: ### Some public trash bin
        !             3: 
        !             4: {{{
        !             5: 
        !             6: 08:23 <pwwka> oh, actually, for non-autoload you need to do the symbol renaming
        !             7: 08:25 <pwwka> so, if we assume we have kernfs.kmod
        !             8: 08:25 <pwwka> make RUMP_SYMREN=kernfs.kmod -f /sys/rump/Makefile.rump
        !             9: 08:25 <pwwka> and then you can compile a server:
        !            10: 08:25 <pwwka> cc simpleserver.c kernfs.kmod -lrumpvfs -lrump -lrumpuser -lpthread
        !            11: 08:25 <pwwka> and kernfs shows up in modstat
        !            12: 08:25 <pwwka> pain-rustique:2:~> rump.modstat
        !            13: 08:25 <pwwka> NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
        !            14: 08:25 <pwwka> kernfs           vfs        builtin    0     -        -
        !            15: 08:26 <haad> this make RUMP_SYMREN=kernfs.kmod -f /sys/rump/Makefile.rump will be executed where ? in kernfs module dir ?
        !            16: 08:27 <pwwka> no, don't do that, since it renames the symbols in the binary
        !            17: 08:27 <pwwka> so you won't be able to use it as a regular kernel module anymore
        !            18: 08:27 <pwwka> autoload does this in-memory, see librump/rumpkern/kobj_rename.c
        !            19: 08:28 <pwwka> but if you want to link stuff into a binary, you need to give the renamed file to the linker
        !            20: 08:28 <pwwka> since the linker doesn't know how to rename the symbols ;)
        !            21: 08:31 <pwwka> but, maybe it's easier to get the solaris stuff to compile as a lib
        !            22: 08:31 <pwwka> less magic involved ;)
        !            23: 
        !            24: }}}

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb