Date: Tue, 30 Apr 2002 11:53:48 -0400 (EDT) From: Bush Doctor <guru@goku.cl.msu.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/37597: aureal-kmod-1.5_3 fails to build Message-ID: <200204301553.g3UFrmQc088027@goku.cl.msu.edu>
next in thread | raw e-mail | index | archive | help
>Number: 37597 >Category: ports >Synopsis: aureal-kmod-1.5_3 fails to build >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 30 09:00:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Bush Doctor >Release: FreeBSD 5.0-CURRENT i386 >Organization: MSU Computer Laboratory - Information Systems Group >Environment: System: FreeBSD goku.cl.msu.edu 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Mon Apr 29 12:34:21 EDT 2002 root@:/usr/src/sys/i386/compile/GOKOU i386 >Description: The aureal-kmod-1.5_3 port fails to build. Here is the output: ===> Extracting for aureal-kmod-1.5_3 >> Checksum OK for au88x0-1.5_3.tar.gz. ===> Patching for aureal-kmod-1.5_3 ===> Applying FreeBSD patches for aureal-kmod-1.5_3 ===> Configuring for aureal-kmod-1.5_3 ===> Building for aureal-kmod-1.5_3 ===> 10 Warning: Object directory not changed from original /usr/ports/audio/aureal-kmod/work/10 @ -> /usr/src/sys machine -> /usr/src/sys/i386/include perl @/kern/makeobjops.pl -h @/kern/device_if.m perl @/kern/makeobjops.pl -h @/kern/bus_if.m perl @/kern/makeobjops.pl -h @/isa/isa_if.m perl @/kern/makeobjops.pl -h @/dev/pci/pci_if.m perl @/kern/makeobjops.pl -h @/dev/sound/pcm/ac97_if.m perl @/kern/makeobjops.pl -h @/dev/sound/pcm/channel_if.m perl @/kern/makeobjops.pl -h @/dev/sound/pcm/feeder_if.m perl @/kern/makeobjops.pl -h @/dev/sound/pcm/mixer_if.m cc -O -pipe -march=pentiumpro -I/usr/ports/audio/aureal-kmod/work -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I/usr/ports/audio/aureal-kmod/work -I. -I@ -I@/dev -I@/../include -I/usr/include -fno-common -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -c /usr/ports/audio/aureal-kmod/work/au88x0.c /usr/ports/audio/aureal-kmod/work/au88x0.c: In function `au_pci_attach': /usr/ports/audio/aureal-kmod/work/au88x0.c:800: too few arguments to function `snd_mtxcreate' /usr/ports/audio/aureal-kmod/work/au88x0.c: At top level: /usr/ports/audio/aureal-kmod/work/au88x0.c:949: sizeof applied to an incomplete type *** Error code 1 Stop in /usr/ports/audio/aureal-kmod/work/10. *** Error code 1 Stop in /usr/ports/audio/aureal-kmod/work. *** Error code 1 Stop in /usr/ports/audio/aureal-kmod. >How-To-Repeat: Type "make" in the port directory. >Fix: Here is a patch that allowed me to build the port. I found part of it from an earlier problem report and the rest from noting the change in arguments that snd_mtxcreate() needs. --- work/au88x0.c Thu Jun 21 22:58:17 2001 +++ au88x0.c Mon Apr 29 16:11:19 2002 @@ -32,7 +32,8 @@ */ #include <dev/sound/pcm/sound.h> -#include <dev/sound/pci/au88x0.h> +#include "au88x0.h" +#include <sys/systm.h> #include <pci/pcireg.h> #include <pci/pcivar.h> @@ -796,7 +797,7 @@ bzero(au, sizeof(*au)); au->unit = device_get_unit(dev); au->dev_id = pci_get_devid(dev); - au->lock = snd_mtxcreate(device_get_nameunit(dev)); + au->lock = snd_mtxcreate(device_get_nameunit(dev), "sound cdev"); /* init softc list */ SLIST_INIT(&au_info_head); @@ -945,7 +946,7 @@ static driver_t au_driver = { "pcm", au_methods, - sizeof(struct snddev_info), + PCM_SOFTC_SIZE, }; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204301553.g3UFrmQc088027>