http://bugs.winehq.org/show_bug.cgi?id=26975
Summary: configure can't find OSSv4 (both Wine and OSSv4 is current from git and mercurial respectively) Product: Wine Version: 1.3.19 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: HASH.DuOrden@gmail.com
Created an attachment (id=34403) --> (http://bugs.winehq.org/attachment.cgi?id=34403) emerge --info
Summary tells it all, only to add is this commit I got from git bisect: be332326ba8fc3def406c5f29adf04fbe9a83976 is the first bad commit commit be332326ba8fc3def406c5f29adf04fbe9a83976 Author: Andrew Eikum aeikum@codeweavers.com Date: Wed Apr 27 09:12:36 2011 -0500
wineoss.drv: Add mmdevapi driver.
:100755 100755 b21b95aa85b833b77c1a80886e6c6dd4e76005e7 f7f4a97bf13911a0a44684d7914b662b3f2991c3 M configure :100644 100644 438693cd229458faa9f89ab7a04840cd072c6e65 63bec11c37b5a9a554044114c55b969760ae21e3 M configure.ac :040000 040000 f3dc8ca5ab358b3e8f29b0db06f6d5df0380ff13 322624c871fdb263c08d003913bc973f4d2a3c1f M dlls :040000 040000 a991a478b05ed01845db6b349eb15d63c3d0cade d65e5295e1c685d2b9a833e630e1fe60405f2f1a M include
I'm running Gentoo x86, in attach emerge --info. And as it is said in "bug writing guidelines" I'll add Andrew Eikum to CC.
Severity set to Major as it is described in "bug writing guidelines": For loss of functionality for a wide range of applications. Sorry if I got that wrong.
http://bugs.winehq.org/show_bug.cgi?id=26975
hash HASH.DuOrden@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |hardware, regression CC| |aeikum@codeweavers.com
--- Comment #1 from hash HASH.DuOrden@gmail.com 2011-04-30 08:15:10 CDT --- Add Andrew Eikum to CC as author of commit git bisect reported.
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #2 from hash HASH.DuOrden@gmail.com 2011-04-30 08:23:22 CDT --- Created an attachment (id=34404) --> (http://bugs.winehq.org/attachment.cgi?id=34404) full configure output
Oh and here is some of configure output(full output in attachment): checking for _oss_ioctl in -lossaudio... no checking for oss_sysinfo... no configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
http://bugs.winehq.org/show_bug.cgi?id=26975
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #3 from Jerome Leclanche adys.wh@gmail.com 2011-04-30 08:52:26 CDT --- Please attach config.log from ./configure --with-oss.
And please attach it as "text/plain" mime.
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #4 from Andrew Eikum aeikum@codeweavers.com 2011-04-30 08:55:42 CDT --- If you look at config.log and search for oss_sysinfo you should find the failed program source code and compiler output. Try attaching config.log here so we can take a look. Thanks.
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #5 from hash HASH.DuOrden@gmail.com 2011-04-30 09:29:08 CDT --- config.log from ./configure --with-oss as requested. http://pastebin.ubuntu.com/601341/plain/
Couldn't post as attach: The file you are trying to attach is 1074 kilobytes (KB) in size. Non-patch attachments cannot be more than 1000 KB.
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #6 from hash HASH.DuOrden@gmail.com 2011-04-30 09:29:57 CDT --- Correct url for config.log: http://pastebin.ubuntu.com/601341/
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #7 from Andrew Eikum aeikum@codeweavers.com 2011-04-30 11:32:09 CDT --- Created an attachment (id=34406) --> (http://bugs.winehq.org/attachment.cgi?id=34406) Relevent section of config.log
To save others the pain of trying to view a 35,000 line file, here's the relevant section of the log. "hash," you might consider using gzip next time :)
Can you open up </usr/include/sys/soundcard.h> and check that it (or whatever file it includes) is actually for OSSv4? There should be a SOUND_VERSION define that starts with 0x04. If it starts with 0x03, then either your OSSv4 installation is broken or it places its headers someplace unexpected.
I guess the value of SOUND_VERSION might be a better thing to check for at configure time than the presence of oss_sysinfo?
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #8 from hash HASH.DuOrden@gmail.com 2011-04-30 12:57:41 CDT --- file /usr/include/sys/soundcard.h: #include <linux/soundcard.h> file /usr/include/linux/soundcard.h belongs to =sys-kernel/linux-headers-2.6.38: #define SOUND_VERSION 0x030802
=media-sound/oss-devel-9999 (/usr/lib/oss/include/sys/soundcard.h) #define OSS_VERSION 0x040100 /* 4.1 */
So the question is, what should I do? :)
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #9 from Andrew Eikum aeikum@codeweavers.com 2011-04-30 14:44:41 CDT --- According to http://manuals.opensound.com/developer/programming.html, the file </etc/oss.conf> can tell us where OSS's header files are. We should probably be using that during configure instead of guessing at one of <soundcard.h>, <sys/soundcard.h>, or <machine/soundcard.h>. I'm not an autoconf wizard, but I'll see if I can figure something out on Monday, if someone hasn't beat me to the punch.
In the meantime, you could use any number of ugly hacks to get it to build. For example, tweak <sys/soundcard.h> to include the correct </usr/lib/oss/include/sys/soundcard.h> instead of <linux/soundcard.h>. Or, mess about with symlinks. Just don't forget to back up anything you change ;)
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #10 from Andrew Eikum aeikum@codeweavers.com 2011-05-02 08:58:05 CDT --- Sigh, and of course </etc/oss.conf> doesn't actually contain OSSLIBDIR on my system. Probably a packaging bug.
So, I guess here's the ideal way to do this:
1. Read </etc/oss.conf> and check for its OSSLIBDIR variable. 2.a. If OSSLIBDIR exists, add -I$(OSSLIBDIR) to the wineoss.drv build flags and include <soundcard.h>. 2.b. If OSSLIBDIR doesn't exist, then check for <soundcard.h>, <sys/soundcard.h>, or <machine/soundcard.h>. 3. Verify that SOUND_VERSION is greater than or equal to 0x04.
If 2a, 2b, or 3 fail, then don't build wineoss.drv.
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #11 from hash HASH.DuOrden@gmail.com 2011-05-02 10:35:09 CDT --- Well, maybe it isn't a bug, maybe it's just that soundcard.h from OSSv4 is in right place from start and so package maintainer just thought if it is where it should be, why fill OSSLIBDIR in first place?
And thanks for advise, I've altered /usr/include/sys/soundcard.h to include /usr/lib/oss/include/sys/soundcard.h and all is nicely found by configure and compiled flawlessly.
http://bugs.winehq.org/show_bug.cgi?id=26975
--- Comment #12 from Jerome Leclanche adys.wh@gmail.com 2011-05-02 14:26:52 CDT --- Should be fixed by f60a0f5e565ab9ec5f13b6b489e03b6b22ebf8f7
http://bugs.winehq.org/show_bug.cgi?id=26975
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #13 from Austin English austinenglish@gmail.com 2011-05-02 15:17:21 CDT --- (In reply to comment #12)
Should be fixed by f60a0f5e565ab9ec5f13b6b489e03b6b22ebf8f7
Fixed.
http://bugs.winehq.org/show_bug.cgi?id=26975
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kevlarman+winebugs@gmail.co | |m
--- Comment #14 from Andrew Eikum aeikum@codeweavers.com 2011-05-03 10:44:57 CDT --- *** Bug 26983 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=26975
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org 2011-05-13 13:32:48 CDT --- Closing bugs fixed in 1.3.20.