[ python-Bugs-832236 ] Build fails in ossaudiodev.c with missing macros

SourceForge.net noreply at sourceforge.net
Mon May 10 21:35:38 EDT 2004


Bugs item #832236, was opened at 2003-10-29 04:05
Message generated for change (Comment added) made by gward
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=832236&group_id=5470

Category: Build
Group: Platform-specific
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Daniel Parks (danielparks)
Assigned to: Greg Ward (gward)
Summary: Build fails in ossaudiodev.c with missing macros

Initial Comment:
I'm building Python 2.3.2 with no configure flags on MkLinux 
Pre-R1. uname -a:

Linux gondor.middle.earth 2.0.37-osfmach3 
GENERIC_08alpha-20 Fri Jul 30 11:07:38 PDT 1999 ppc 
unknown

The missing macros are: 
SOUND_MIXER_DIGITAL1, SOUND_MIXER_DIGITAL2, 
SOUND_MIXER_DIGITAL3, SOUND_MIXER_PHONEIN, 
SOUND_MIXER_PHONEOUT, SOUND_MIXER_VIDEO, 
SOUND_MIXER_RADIO, SOUND_MIXER_MONITOR, 
SNDCTL_DSP_GETODELAY

I commented out two lines in setup.py and it seems to have 
built correctly. I would test it, but I need to go to bed, and I 
will forget to add this bug tomorrow.

I will update this if Python actually works.


----------------------------------------------------------------------

>Comment By: Greg Ward (gward)
Date: 2004-05-10 21:35

Message:
Logged In: YES 
user_id=14422

OK, that's good enough -- I was just concerned about
breaking the build, not about getting audio working under an
obsolete version of Linux on ancient hardware.

Fixed in Modules/ossaudiodev.c rev 1.34.8.1 (release23-maint
branch) and rev 1.35 (trunk).


----------------------------------------------------------------------

Comment By: Daniel Parks (danielparks)
Date: 2004-05-08 19:57

Message:
Logged In: YES 
user_id=317142

Compiled Python 2.3.3 with the attached patch (sf-832236.patch). The 
build was successful. This is all I really wanted.

[daniel at gondor Python-2.3.3]$ sudo ./python Lib/test/
test_ossaudiodev.py
Password:
playing test sound file...
elapsed time: 5.4 sec
Traceback (most recent call last):
  File "Lib/test/test_ossaudiodev.py", line 124, in ?
    test()
  File "Lib/test/test_ossaudiodev.py", line 122, in test
    test_setparameters()
  File "Lib/test/test_ossaudiodev.py", line 87, in test_setparameters
    raise RuntimeError("unable to set audio sampling parameters: "
RuntimeError: unable to set audio sampling parameters: you must have 
really weird audio hardware

I had to run the test as root because /dev/dsp was not accessible by 
other users.

The audio clip played, but completely was unintelligible -- it sounded like 
a mistuned radio.

This is the same machine as above; it is a PowerMac 7200/75, with 
whatever sound hardware is on the motherboard. I know that esound 
works properly on a PowerMac 6100/66 (which probably has similar 
audio hardware), but this is not nearly important enough for me to 
pursue. However, I am happy to test any patches.

----------------------------------------------------------------------

Comment By: Greg Ward (gward)
Date: 2004-05-04 21:56

Message:
Logged In: YES 
user_id=14422

Attached patch should fix the problem; I've emailed it to
the original reporter to verify that it does.  Will
checkin/merge/close slip when I hear from him, or in a few
days if I don't hear from him.


----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2003-12-23 14:21

Message:
Logged In: YES 
user_id=11375

The fix is probably straightforward; add #ifdef <macro>...#endif
around each use of the problematic macros.  If you do this, please 
submit a patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=832236&group_id=5470



More information about the Python-bugs-list mailing list