From owner-freebsd-current Sun Mar 15 00:11:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA29012 for freebsd-current-outgoing; Sun, 15 Mar 1998 00:11:28 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from VMSD.CSD.MU.EDU (vmsd.csd.mu.edu [134.48.20.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA29007 for ; Sun, 15 Mar 1998 00:11:26 -0800 (PST) (envelope-from 4wg7kolodzie@vmsb.csd.mu.edu) Received: from mcd7-31.mccormick.mu.edu ([134.48.208.1]) by vms.csd.mu.edu (PMDF V5.1-9 #27588) with SMTP id <01IUOG0PGK3K07I9I8@vms.csd.mu.edu> for freebsd-current@FreeBSD.ORG; Sun, 15 Mar 1998 02:11:08 CST Date: Sun, 15 Mar 1998 02:08:03 -0600 From: "Justin A. Kolodziej" <4wg7kolodzie@vmsb.csd.mu.edu> Subject: Compiling "original" sound code into the kernel bombs To: freebsd-current@FreeBSD.ORG Message-id: <350B8C63.794BDF32@vms.csd.mu.edu> Organization: Marquette University MIME-version: 1.0 X-Mailer: Mozilla 3.04 (X11; I; FreeBSD 3.0-980314-SNAP i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG OK, now that I've already made a total fool to thousands of users, let me milk the moment: I'm Justin Kolodiej, and I just moved from Linux to FreeBSD a few days ago. I started out with the "release" release, but since the Linux emulation wasn't good enough, I moved to the "current" version. The latest snapshot has been out for a half a day now, so I'm sure the following bug has been already reported hundreds of times, ;-) but here it is: Compiling the "original" sound drivers into a custom kernel causes some strange errors. gcc chokes on the following code, taken from sound_calls.h, with a "parse error before snd_rw_buf": int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); I believe that is the original version, but I can't guarantee it; I changed the spacing trying to get it to work, but no such luck. In fact, wherever snd_rw_buf appears, there's a "Parse error." The following code, taken from os.h, I assume, is supposed to define snd_rw_buf as a structure, but it doesn't seem to work: typedef struct uio snd_rw_buf; Let me get to the point. If you MUST have sound, use pcm instead. At least that compiles. ;-) Don't flame me TOO hard, Justin K. -- I sense a great disturbance in the Source. Justin A. Kolodziej I am vms.csd.mu.edu Marquette University is http://www.mu.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message