Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2007 23:39:26 GMT
From:      "O. Hartmann"<ohartman@zedat.fu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/109147: snd_envy24ht does not compile into kernel, but module .ko does
Message-ID:  <200702132339.l1DNdQjA066530@www.freebsd.org>
Resent-Message-ID: <200702132340.l1DNe6pC064477@freefall.freebsd.org>

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

>Number:         109147
>Category:       kern
>Synopsis:       snd_envy24ht does not compile into kernel, but module .ko does
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 13 23:40:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     O. Hartmann
>Release:        FreeBSD 7.0-CURRENT/AMD64
>Organization:
Freie UNiversität Berlin
>Environment:
FreeBSD foo.org 7.0-CURRENT FreeBSD 7.0-CURRENT #91: Tue Feb 13 18:47:14 UTC 2007     root@foo.org:/usr/obj/usr/src/sys/FOO  amd64

>Description:
Trying to compile driver snd_envy24ht into kernel fails (see below), but kernel module compiles well and is loadable. FreeBSD 7.0-CURRENT/AMD64 as cvsupdated and buildworld today:


cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=opteron -std=c99  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -fformat-extensions -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror  /usr/src/sys/dev/sound/pci/envy24ht.c
/usr/src/sys/dev/sound/pci/envy24ht.c: In function `envy24htchan_init':
/usr/src/sys/dev/sound/pci/envy24ht.c:1426: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1426: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1450: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1450: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1452: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1452: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1457: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1457: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c: In function `envy24htchan_free':
/usr/src/sys/dev/sound/pci/envy24ht.c:1471: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1471: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1476: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1476: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c: In function `envy24htchan_setformat':
/usr/src/sys/dev/sound/pci/envy24ht.c:1493: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1493: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1500: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1500: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1507: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1507: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1531: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1531: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c: In function `envy24htchan_trigger':
/usr/src/sys/dev/sound/pci/envy24ht.c:1627: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1627: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1711: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1711: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c: In function `envy24htchan_getptr':
/usr/src/sys/dev/sound/pci/envy24ht.c:1727: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1727: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1730: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1730: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c: In function `envy24htchan_getcaps':
/usr/src/sys/dev/sound/pci/envy24ht.c:1749: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1749: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c:1762: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1762: error: request for member `mtx_lock' in something not a structure or union
/usr/src/sys/dev/sound/pci/envy24ht.c: In function `envy24htmixer_init':
/usr/src/sys/dev/sound/pci/envy24ht.c:1796: warning: dereferencing `void *' pointer
/usr/src/sys/dev/sound/pci/envy24ht.c:1796: error: request for member `mtx_lock' in something not a structure or union

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



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