Date: Sun, 15 Mar 1998 02:08:03 -0600 From: "Justin A. Kolodziej" <4wg7kolodzie@vmsb.csd.mu.edu> To: freebsd-current@FreeBSD.ORG Subject: Compiling "original" sound code into the kernel bombs Message-ID: <350B8C63.794BDF32@vms.csd.mu.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?350B8C63.794BDF32>