Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 221 - Configure failure on Ubuntu 10.10 and Gentoo "Your version of portaudio does not include required functions"
Configure failure on Ubuntu 10.10 and Gentoo "Your version of portaudio does ...
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Scripts
1.3.14 alpha
Other Linux
: P3 Repeatable
Assigned To: Benjamin Drung
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-03 17:02 UTC by Gale Andrews
Modified: 2018-08-20 11:54 UTC (History)
4 users (show)

See Also:
Steps To Reproduce:
Release Note:
(Linux) Configure step of building may fail with "Your version of portaudio does not include required functions" if using very recent toolchains (reported on Ubuntu 10.10 and Gentoo)
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00


Attachments
configure.ac.patch (3.19 KB, patch)
2010-09-21 07:37 UTC, Benjamin Drung
Details | Diff
configure.ac_v2.patch (3.14 KB, patch)
2010-09-28 03:59 UTC, Benjamin Drung
Details | Diff
autoreconf.patch (153.47 KB, patch)
2010-10-01 06:38 UTC, Benjamin Drung
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2010-09-03 17:02:06 UTC
See

http://audacity.238276.n2.nabble.com/audacity-trunk-fails-to-build-tp5417386p5419334.html

and

http://audacity.238276.n2.nabble.com/configure-error-on-Ubuntu-10-10-td5495951.html#a5495951

(Build logs available there)

configure failed for lib-src/portmixer 

Benjamin Drung gets this problem on Ubuntu 10.10 and says there is no system port audio version nor other portmixer headers installed.

Richard thinks it's an Audacity problem which only shows up with very recent toolchains (maybe GCC-version sensitive). The problem has been reported as a Gentoo bug as well. The speculation there was that some change in recent GCC had broken one of the autoconf macros we use in the portmixer configure script 
(AC_EGREP_HEADERS?).
Comment 1 Benjamin Drung 2010-09-20 07:01:54 UTC
We have found the reason for the failing AC_EGREP_HEADER: gcc 4.5 changed the behavior: If a header named in a #include directive is not found, the compiler exits immediately. This avoids a cascade of errors arising from declarations expected to be found in that header being missing.

The configure script checks the existence of PaMacCore_GetStreamInputDevice in pa_mac_core.h, which is used in src/px_mac_coreaudio.c. Afterwards it checks if src/px_mac_coreaudio.c should be built.

On Ubuntu, we don't want to build src/px_mac_coreaudio.c and we don't have the required AudioUnit/AudioUnit.h header, which leads to this bug.

The fix (suggested by Matthias) is to only run the AC_EGREP_HEADER test, if you build src/px_mac_coreaudio.c. This means to change the order of AC_CHECK_HEADERS and AC_EGREP_HEADER in configure.ac.
Comment 2 Benjamin Drung 2010-09-20 07:02:57 UTC
You can find more details in the Ubuntu bug: https://launchpad.net/bugs/629955
Comment 3 Benjamin Drung 2010-09-21 07:37:33 UTC
Created attachment 44 [details]
configure.ac.patch

Here is my patch for switching the order. After applying the patch you have to run autoreconf in lib-src/portmixer.
Comment 4 Benjamin Drung 2010-09-28 03:59:15 UTC
Created attachment 45 [details]
configure.ac_v2.patch

Here's the patch made with svn (-p0 instead of -p1).
Comment 5 Gale Andrews 2010-10-01 06:28:57 UTC
Fixed by http://code.google.com/p/audacity/source/detail?r=10699. Unless anyone has any other input I think we can just move it to "RESOLVED - FIXED".
Comment 6 Benjamin Drung 2010-10-01 06:38:35 UTC
Created attachment 46 [details]
autoreconf.patch

One thing is missing. The configure files needs to be regenerated by running autoreconf. You can use the attached patch if you don't have autoreconf installed on your system. I wrote that to the mailing list two days ago, but I don't find the mail in the archive [1].

[1] http://sourceforge.net/mailarchive/forum.php?forum_name=audacity-devel
Comment 7 Vaughan Johnson 2010-10-02 16:04:28 UTC
(In reply to comment #6)

autoreconf.patch applied.
Comment 8 Gale Andrews 2010-10-09 06:54:30 UTC
Benjamin, can we resolve this fixed or do you want to retest (which you can't do due to the portaudio build problem: http://audacity.238276.n2.nabble.com/audacity-trunk-fails-to-build-on-Ubuntu-tp5602646p5602646.html ) ?
Comment 9 Benjamin Drung 2010-10-09 07:06:04 UTC
Yes, this bug is fixed. I was able to successfully build audacity revision 10703 on Ubuntu 10.10 (maverick).