Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2010 10:59:37 -0700
From:      Ted Faber <faber@isi.edu>
To:        Hans Petter Selasky <hselasky@freebsd.org>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: cuse4bsd doesn't work on recent -HEAD?
Message-ID:  <20100622175937.GB18012@zod.isi.edu>
In-Reply-To: <201006221911.09409.hselasky@freebsd.org>
References:  <20100622142550.26246636@gmail.com> <20100622175500.73e0ea5d@gmail.com> <20100622160658.GA17496@zod.isi.edu> <201006221911.09409.hselasky@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--E39vaYmALEf/7YXx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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

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


>=20
> The Cuse4BSD printout is called from a SYSINIT. If sysinits don't work th=
en=20
> 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:
>=20
> find /boot -name "cuse4bsd*"

$ find /boot -name "cuse4bsd*"
/boot/modules/cuse4bsd.ko

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
=3D=3D=3D>  Configuring for cuse4bsd-kmod-0.1.11
=3D=3D=3D>  Building for cuse4bsd-kmod-0.1.11
make -f
/usr/ports/multimedia/cuse4bsd-kmod/work/cuse4bsd-kmod-0.1.11/Makefile.lib
all
Warning: Object directory not changed from original /usr/ports/multimedia/c=
use4bsd-kmod/work/cuse4bsd-kmod-0.1.11
cc -O2 -pipe -fno-strict-aliasing  -std=3Dgnu99 -fstack-protector  -c cuse4=
bsd_lib.c
building static cuse4bsd library
ranlib libcuse4bsd.a
cc -fpic -DPIC -O2 -pipe -fno-strict-aliasing  -std=3Dgnu99 -fstack-protect=
or  -c cuse4bsd_lib.c -o cuse4bsd_lib.So
building shared library libcuse4bsd.so.1
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/c=
use4bsd-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=3D8000 --param inline-unit-growth=
=3D100 --param large-function-growth=3D1000 -fno-common -mno-align-long-str=
ings -mpreferred-stack-boundary=3D2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2=
 -mno-sse3 -ffreestanding -fstack-protector -std=3Diso9899:1999 -fstack-pro=
tector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmiss=
ing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-s=
ign -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 http://www.isi.edu/~faber/tmp/cuse.tgz

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


--=20
Ted Faber
http://www.isi.edu/~faber           PGP: http://www.isi.edu/~faber/pubkeys.=
asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#=
SIG

--E39vaYmALEf/7YXx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAkwg+gkACgkQaUz3f+Zf+XuA4QCfe+no8zxolsgwHwXeT/vQC5bY
6qYAn0rQza+Dh02/VAf4L9eF2StLNyDT
=fXeZ
-----END PGP SIGNATURE-----

--E39vaYmALEf/7YXx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100622175937.GB18012>