Bug#433381: libportaudio0: does not run/work at all on amd64, audio -> white noise

sean finney seanius at debian.org
Mon Jul 16 20:01:28 UTC 2007


Package: libportaudio0
Version: 18.1-6
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

this code is riddled with wordsize-related bugs.  the best part is that
they *tried* to do the right thing by having bit-size typedefs, but failed 
miserably:

#ifndef uint32
    typedef unsigned long uint32;
#endif

....

portaudio authors, meet int32_t.  int32_t, meet portaudio authors.

attached is a patch, which after applying lets me play transcend and
mixxx (both portaudio apps) on my amd64 system without my ears bleeding
from static.  basically, i fixed the above typedefs, and then did
something like:

find . -type f \( -name '*.c' -o -name '*.h' \) -print0 | 
                 xargs -0 -n1 sed -i -e 's/unsigned long/uint32_t/g'

across the source code (which is why there are some unused windows and
mac files touched), and entered in inttypes.h in a few key locations.

you might want to test this on an x86 before applying it, and also note
that it probably breaks the ABI for the library so you may need to
change your soname and have the reverse dependencies rebuilt.


	sean


- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libportaudio0 depends on:
ii  libc6                         2.6-2      GNU C Library: Shared libraries

libportaudio0 recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGm86YynjLPm522B0RAkAZAJ0cmhs8DoNDeFAMMps8PkJCbMG3OwCeMHfO
GqCqSY44urN0PCBYiIzB9qM=
=tTHW
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: portaudio.wordsize.diff
Type: text/x-c
Size: 51135 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20070716/9b444e05/attachment-0001.bin 


More information about the Pkg-voip-maintainers mailing list