From owner-freebsd-ports Tue Apr 30 8:33:57 2002 Delivered-To: freebsd-ports@freebsd.org Received: from goku.cl.msu.edu (goku.cl.msu.edu [35.8.3.20]) by hub.freebsd.org (Postfix) with ESMTP id 18ACE37B404 for ; Tue, 30 Apr 2002 08:33:50 -0700 (PDT) Received: from goku.cl.msu.edu (guru@localhost.msu.edu [127.0.0.1]) by goku.cl.msu.edu (8.12.3/8.12.3) with ESMTP id g3UFXnbw078911; Tue, 30 Apr 2002 11:33:49 -0400 (EDT) (envelope-from guru@goku.cl.msu.edu) Received: (from guru@localhost) by goku.cl.msu.edu (8.12.3/8.12.3/Submit) id g3UFXlMM078910; Tue, 30 Apr 2002 11:33:47 -0400 (EDT) Date: Tue, 30 Apr 2002 11:33:47 -0400 From: Bush Doctor To: Stephen Hilton Cc: freebsd-ports@FreeBSD.ORG, lx@matey.org, zietlow@securepipe.com Subject: Re: audio/aureal-kmod port unbuildable on 4.5-STABLE Message-ID: <20020430153347.GA77252@goku.cl.msu.edu> Mail-Followup-To: Stephen Hilton , freebsd-ports@FreeBSD.ORG, lx@matey.org, zietlow@securepipe.com References: <20020429155654.23f7832e.nospam@hiltonbsd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <20020429155654.23f7832e.nospam@hiltonbsd.com> User-Agent: Mutt/1.3.28i X-Operating-System: FreeBSD 5.0-CURRENT i386 WWW-Home-Page: http://bantu.cl.msu.edu Organisation: Information Systems - Michigan State University Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Out of da blue Stephen Hilton aka (nospam@hiltonbsd.com) said: > Build of aureal-kmod port fails on recent 4.5-STABLE here's a patch that allowed me to build aureal-kmod on my -CURRENT box. Not sure if you'll have to rebuild your kernel. > > 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Apr 24 19:11:23 CDT 2002 > > /usr/ports/audio/aureal-kmod > PORTNAME= aureal-kmod > PORTVERSION= 1.5 > PORTREVISION= 3 > CATEGORIES= audio > MASTER_SITES= http://home.columbus.rr.com/amatey/au88x0/ > DISTNAME= au88x0-${PORTVERSION}_${PORTREVISION} > > MAINTAINER= lx@matey.org > > -------------------------------------------------- > # make build > ===> Building for aureal-kmod-1.3_3 > ===> 10 > Warning: Object directory not changed from original /usr/ports/audio/aureal-kmod/work/10 > 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@/../include -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:793: 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:942: 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. > ----------------------------------------------- > > Thanks for looking into this. > > Regards, > > Stephen Hilton > nospam@hiltonbsd.com > #;@0 -- "Consider a spherical bear, in simple harmonic motion..." -- Professor in the UCB physics department bush doctor --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-au88x0.c.good.20020429" --- work/au88x0.c Thu Jun 21 22:58:17 2001 +++ au88x0.c Mon Apr 29 16:11:19 2002 @@ -32,7 +32,8 @@ */ #include -#include +#include "au88x0.h" +#include #include #include @@ -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, }; --LZvS9be/3tNcYl/X-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message