Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680128 - media-plugins/calf-0.90.1 with media-sound/fluidsynth-2.0.4 - fluidsynth.cpp:82:24: error: aggregate ‘fluid_preset_t tmp’ has incomplete type and cannot be defined
Summary: media-plugins/calf-0.90.1 with media-sound/fluidsynth-2.0.4 - fluidsynth.cpp:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-12 14:02 UTC by Anton Gubarkov
Modified: 2019-04-06 20:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2019-03-12 14:02:27 UTC
calf-0.90.1 fails to build against media-sound/fluidsynth-2.0.4, builds fine with media-sound/fluidsynth-1.1.11



fluidsynth.cpp:82:24: error: aggregate ‘fluid_preset_t tmp’ has incomplete type and cannot be defined
         fluid_preset_t tmp;
                        ^~~
fluidsynth.cpp:84:20: error: invalid use of incomplete type ‘fluid_sfont_t’ {aka ‘struct _fluid_sfont_t’}
         while(sfont->iteration_next(sfont, &tmp))
                    ^~
In file included from /usr/include/fluidsynth.h:95,
                 from ./calf/modules_dev.h:27,
                 from fluidsynth.cpp:22:
/usr/include/fluidsynth/types.h:40:16: note: forward declaration of ‘fluid_sfont_t’ {aka ‘struct _fluid_sfont_t’}
 typedef struct _fluid_sfont_t fluid_sfont_t;                    /**< SoundFont */
                ^~~~~~~~~~~~~~
fluidsynth.cpp: In member function ‘void calf_plugins::fluidsynth_audio_module::update_preset_num(int)’:
fluidsynth.cpp:137:43: error: invalid use of incomplete type ‘fluid_preset_t’ {aka ‘struct _fluid_preset_t’}
         last_selected_presets[channel] = p->get_num(p) + 128 * p->get_banknum(p);
                                           ^~
In file included from /usr/include/fluidsynth.h:95,
                 from ./calf/modules_dev.h:27,
                 from fluidsynth.cpp:22:
/usr/include/fluidsynth/types.h:41:16: note: forward declaration of ‘fluid_preset_t’ {aka ‘struct _fluid_preset_t’}
 typedef struct _fluid_preset_t fluid_preset_t;                  /**< SoundFont preset */
                ^~~~~~~~~~~~~~~
fluidsynth.cpp:137:65: error: invalid use of incomplete type ‘fluid_preset_t’ {aka ‘struct _fluid_preset_t’}
         last_selected_presets[channel] = p->get_num(p) + 128 * p->get_banknum(p);
                                                                 ^~
In file included from /usr/include/fluidsynth.h:95,
                 from ./calf/modules_dev.h:27,
                 from fluidsynth.cpp:22:
/usr/include/fluidsynth/types.h:41:16: note: forward declaration of ‘fluid_preset_t’ {aka ‘struct _fluid_preset_t’}
 typedef struct _fluid_preset_t fluid_preset_t;                  /**< SoundFont preset */
                ^~~~~~~~~~~~~~~
giface.cpp: In function ‘char* calf_plugins::load_gui_xml(const string&)’:
giface.cpp:321:26: warning: catching polymorphic type ‘struct calf_utils::file_exception’ by value [-Wcatch-value=]
     catch(file_exception e)
                          ^
make[3]: *** [Makefile:784: fluidsynth.lo] Error 1
Comment 1 Anton Gubarkov 2019-03-12 14:02:37 UTC
PF16W6Y2 ~ # emerge --info calf
Portage 2.3.62 (python 3.6.8-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-8.3.0, glibc-2.28-r5, 4.20.15-gentoo-zfs x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.20.15-gentoo-zfs-x86_64-Intel-R-_Core-TM-_i7-8850H_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    32684632 total,   2838840 free
KiB Swap:   33554428 total,  33421052 free
Timestamp of repository gentoo: Tue, 12 Mar 2019 07:44:16 +0000
Head commit of repository gentoo: 345ce8de9c6fcae4656c702a4376c1ff8dbb993e

sh bash 5.0_p2-r2
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          5.0_p2-r2::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo
dev-util/cmake:           3.13.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.16::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r4::gentoo, 2.32::gentoo
sys-devel/gcc:            7.4.0-r1::gentoo, 8.2.0-r6::gentoo, 8.3.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://github.com/gentoo-mirror/gentoo.git
    priority: -1000

bobwya
    location: /var/lib/layman/bobwya
    masters: gentoo
    priority: 50

dlang
    location: /var/lib/layman/dlang
    masters: gentoo
    priority: 50

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 50

rugubara
    location: /var/lib/layman/rugubara
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 -mtune=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -mtune=native"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aio alsa amd64 berkdb bluetooth branding bzip2 cacert cairo cdda cdr cli client colord crypt cups cxx dbus djvu dri dri3 dts dvd dvdr eds emboss encode evo exif fam fat ffmpeg flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jack jpeg jpeg2k lcms ldap libnotify libsecret libtirpc libzfs lm_sensors lv2 mad mng mp3 mp4 mpeg multilib native-headset nautilus ncat ncurses networkmanager nls nptl nvenc nvme ogg opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 raw readline sdl sdl2 seccomp smp sna sound spell spice ssl startup-notification svg systemd tcpd thunderbolt tiff tracker truetype udev udisks uefi unicode upower usb usbredir user-session vaapi vala vdpau virgl vorbis wxwidgets x264 x265 xattr xcb xml xv xvid zeroconf zfs zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-plugins/calf-0.90.1::gentoo was built with the following:
USE="experimental gtk jack lv2 -lash -static-libs" ABI_X86="(64)" CPU_FLAGS_X86="sse"
Comment 2 Richard Hering 2019-04-03 14:17:40 UTC
upstream bug report: https://github.com/calf-studio-gear/calf/issues/225
Comment 3 Andreas Sturmlechner gentoo-dev 2019-04-03 18:21:45 UTC
Could you test this patch then, please:

https://github.com/calf-studio-gear/calf/commit/bba03b6080dc198f3513b5c29fe1ba4ff9e4aa59.patch
Comment 4 Anton Gubarkov 2019-04-04 06:45:46 UTC
The patch worked for me. Thanks.
Comment 5 Larry the Git Cow gentoo-dev 2019-04-06 20:47:09 UTC
The bug has been closed via the following commit(s):

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

commit da177b66a409bd6be238fdfac3b676d580a0f130
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-04-06 20:42:22 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-04-06 20:46:51 +0000

    media-plugins/calf: Fix build with >=fluidsynth-2
    
    Reported-by: Anton Gubarkov <anton.gubarkov@gmail.com>
    Closes: https://bugs.gentoo.org/680128
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-plugins/calf/calf-0.90.1.ebuild              |  3 +-
 .../calf/files/calf-0.90.1-fluidsynth-2.patch      | 66 ++++++++++++++++++++++
 2 files changed, 68 insertions(+), 1 deletion(-)