Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735810 - media-sound/audacity-2.4.2-r1 build fails in AudioIOBase.cpp: "error: invalid use of incomplete type 'const struct PaDeviceInfo'"
Summary: media-sound/audacity-2.4.2-r1 build fails in AudioIOBase.cpp: "error: invalid...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-08-03 19:46 UTC by Matt Whitlock
Modified: 2020-08-06 04:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,533.18 KB, text/plain)
2020-08-03 19:46 UTC, Matt Whitlock
Details
audacity-2.4.2-add-missing-include-portaudio.patch (audacity-2.4.2-add-missing-include-portaudio.patch,346 bytes, patch)
2020-08-04 21:42 UTC, Matt Whitlock
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2020-08-03 19:46:30 UTC
Created attachment 652784 [details]
build.log

Building media-sound/audacity-2.4.2-r1 fails with the following error:

../audacity-Audacity-2.4.2/src/AudioIOBase.cpp: In static member function 'static wxString AudioIOBase::DeviceName(const PaDeviceInfo*)':
../audacity-Audacity-2.4.2/src/AudioIOBase.cpp:80:47: error: invalid use of incomplete type 'const struct PaDeviceInfo'
   80 |    wxString infoName = wxSafeConvertMB2WX(info->name);
      |                                               ^~
In file included from ../audacity-Audacity-2.4.2/src/AudioIOBase.cpp:12:
../audacity-Audacity-2.4.2/src/AudioIOBase.h:25:8: note: forward declaration of 'struct PaDeviceInfo'
   25 | struct PaDeviceInfo;
      |        ^~~~~~~~~~~~

Complete build log is attached.


# emerge -pqv media-sound/audacity
[ebuild     U ] media-sound/audacity-2.4.2-r1 [2.3.3] USE="alsa ffmpeg flac id3tag lame mad ogg%* vorbis -doc -jack -ladspa -lv2 -midi -nls -oss% -portmidi% -portmixer -portsmf% -sbsms -soundtouch -twolame -vamp -vst" CPU_FLAGS_X86="sse"


# emerge --info '=media-sound/audacity-2.4.2-r1::gentoo'
Portage 3.0.1 (python 3.8.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.31-r6, 4.19.0-rc7-00047-g4718dcad7dec-dirty x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.0-rc7-00047-g4718dcad7dec-dirty-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
KiB Mem:     8161516 total,   2966544 free
KiB Swap:    8388604 total,   5239852 free
Timestamp of repository gentoo: Mon, 03 Aug 2020 18:45:01 +0000
Head commit of repository gentoo: 3d0366096e6a57e1d18bc0aba912a744764d377b
sh dash 0.5.11.1
ld GNU gold (Gentoo 2.34 p6 2.34.0) 1.16
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.11 [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.6.10-r2::gentoo, 3.8.5::gentoo
dev-util/ccache:          3.7.11::gentoo
dev-util/cmake:           3.18.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            10.2.0::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

local
    location: /var/db/repos/local
    masters: gentoo
    priority: -2000

4nykey
    location: /var/lib/layman/4nykey
    sync-type: laymansync
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: -1500

bitcoin
    location: /var/lib/layman/bitcoin
    sync-type: laymansync
    sync-uri: https://gitlab.com/bitcoin/gentoo.git
    masters: gentoo
    priority: -1500

eigenlay
    location: /var/lib/layman/eigenlay
    sync-type: laymansync
    sync-uri: https://gitlab.com/eigennet/eigenlay.git
    masters: gentoo
    priority: -1500

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/kde.git
    masters: gentoo
    priority: -1500

vmware
    location: /var/lib/layman/vmware
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/vmware.git
    masters: gentoo
    priority: -1500

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/X11/xkb /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/i18n/locales/en_US /usr/share/sddm/scripts/Xsetup /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O3 -ggdb -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --unordered-display --verbose-conflicts --usepkg --load-average=8"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="        http://mirror.leaseweb.com/gentoo/      http://mirrors.rit.edu/gentoo/  http://gentoo.mirrors.pair.com/    http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ "
INSTALL_MASK="/etc/systemd /lib/systemd/system /usr/lib/systemd         /usr/share/bash-completion      /usr/share/locale/*/ -/usr/share/locale/en -/usr/share/locale/en_US"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j5 -l8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git --exclude=/CACHEDIR.TAG"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo cdda cdparanoia cdr cli crypt cups curl dbus declarative dri dts dvd dvdr elogind emboss encode evdev exif ffmpeg flac fontconfig gdbm gif git gmp gtk iconv icu id3tag ipv6 jpeg kde kwallet lame lcms libnotify libsamplerate libtirpc lzma mad matroska mng mp3 mp4 mpeg multilib ncurses nptl ogg opengl openmp opus pam pango pcre pdf phonon php plasma png policykit ppds qt5 quicktime readline sctp sdl seccomp smp spell split-usr ssl startup-notification subversion svg taglib tcmalloc theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vnc vorbis vpx webkit webp widgets x264 xcb xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en-US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="mceusb" LLVM_TARGETS="AMDGPU" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres12" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" QEMU_SOFTMMU_TARGETS="arm" RUBY_TARGETS="ruby25" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matt Whitlock 2020-08-04 21:42:27 UTC
Created attachment 653164 [details, diff]
audacity-2.4.2-add-missing-include-portaudio.patch

Looks to be a simple case of omitting a necessary #include "portaudio.h" when USE_PORTMIXER is not defined. The attached patch fixes the build for me.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-06 04:57:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9043667c3f03113d9bed94fc64132e2519b17657

commit 9043667c3f03113d9bed94fc64132e2519b17657
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-08-06 04:57:26 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-08-06 04:57:26 +0000

    media-sound/audacity: fixed compilation wrt portaudio in 2.4.2-r1
    
    patch by Matt Whitlock <gentoo@mattwhitlock.name>
    
    Closes: https://bugs.gentoo.org/735810
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 media-sound/audacity/audacity-2.4.2-r1.ebuild                 |  1 +
 .../files/audacity-2.4.2-add-missing-include-portaudio.patch  | 11 +++++++++++
 2 files changed, 12 insertions(+)