cuse4bsd doesn't work on recent -HEAD?

Ted Faber faber at
Tue Jun 22 17:59:38 UTC 2010

On Tue, Jun 22, 2010 at 07:11:09PM +0200, Hans Petter Selasky wrote:
> Are you sure the kernel sources are matched with your kernel. I find this 
> rather odd.

I find it pretty odd too.  As I say, the example module isn't loading
either, though plenty of other modules compiled with the kernel do.

I build the kernel from source yesterday, using the standard sequence.

cd /usr/src
make update
make buildworld
make kernel

mount -t ufs -a
mergemaster -p 
cd /usr/src
make installworld
mergemaster -i 

After that I did a portupgrade -vf cuse4bsd-kmod-0.1.11 and that worked

> The Cuse4BSD printout is called from a SYSINIT. If sysinits don't work then 
> something fundamental is wrong.

That's my understanding as well.  But I really don't see what I could do
to break it.  I may have, but I don't know how.  The kernel's GENERIC,
compiled from source in the usual way, and I've been doing it that way
for a fairly long time.

>                                 Also check:
> find /boot -name "cuse4bsd*"

$ find /boot -name "cuse4bsd*"

I only see the one installed from the port.  As you can see in my
earlier mail, it was compiled after the kernel install.

Here's the output of making the port by hand (I only see the two warnings):

praxis:/usr/ports/multimedia/cuse4bsd-kmod$ sudo make
===>  Configuring for cuse4bsd-kmod-0.1.11
===>  Building for cuse4bsd-kmod-0.1.11
make -f
Warning: Object directory not changed from original /usr/ports/multimedia/cuse4bsd-kmod/work/cuse4bsd-kmod-0.1.11
cc -O2 -pipe -fno-strict-aliasing  -std=gnu99 -fstack-protector  -c cuse4bsd_lib.c
building static cuse4bsd library
ranlib libcuse4bsd.a
cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing  -std=gnu99 -fstack-protector  -c cuse4bsd_lib.c -o cuse4bsd_lib.So
building shared library
gzip -cn cuse4bsd.3 > cuse4bsd.3.gz
make -f
/usr/ports/multimedia/cuse4bsd-kmod/work/cuse4bsd-kmod-0.1.11/Makefile.kmod all
Warning: Object directory not changed from original /usr/ports/multimedia/cuse4bsd-kmod/work/cuse4bsd-kmod-0.1.11
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c cuse4bsd_kmod.c
ld  -d -warn-common -r -d -o cuse4bsd.kld cuse4bsd_kmod.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk cuse4bsd.kld  export_syms | xargs -J%
objcopy % cuse4bsd.kld
ld -Bshareable  -d -warn-common -o cuse4bsd.ko cuse4bsd.kld
objcopy --strip-debug cuse4bsd.ko


If you want to make sure that the awk scripts are doing the right thing,
I tarred up the work/cuse4bsd-kmod-0.1.11 directory after that make.
It's available from

It all seems weird to me, too.  Maybe there's a clue in there somewhere.

Ted Faber           PGP:
Unexpected attachment on this mail? See
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-multimedia mailing list