Bug 233503 - audio/fluidsynth-dssi: fails to build with fluidsynth 2.x
Summary: audio/fluidsynth-dssi: fails to build with fluidsynth 2.x
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias Kortkamp
URL:
Keywords: needs-patch
Depends on:
Blocks: 233448
  Show dependency treegraph
 
Reported: 2018-11-25 11:57 UTC by Jan Beich
Modified: 2018-11-25 14:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2018-11-25 11:57:40 UTC
fluidsynth-dssi.c:170:20: error: variable has incomplete type 'fluid_preset_t' (aka 'struct _fluid_preset_t')
    fluid_preset_t preset;
                   ^
/usr/local/include/fluidsynth/types.h:41:16: note: forward declaration of 'struct _fluid_preset_t'
typedef struct _fluid_preset_t fluid_preset_t;                  /**< SoundFont preset */
               ^
fluidsynth-dssi.c:209:16: error: incomplete definition of type 'struct _fluid_sfont_t'
    fluid_sfont->iteration_start(fluid_sfont);
    ~~~~~~~~~~~^
/usr/local/include/fluidsynth/types.h:40:16: note: forward declaration of 'struct _fluid_sfont_t'
typedef struct _fluid_sfont_t fluid_sfont_t;                    /**< SoundFont */
               ^
fluidsynth-dssi.c:210:23: error: incomplete definition of type 'struct _fluid_sfont_t'
    while (fluid_sfont->iteration_next(fluid_sfont, &preset)) {
           ~~~~~~~~~~~^
/usr/local/include/fluidsynth/types.h:40:16: note: forward declaration of 'struct _fluid_sfont_t'
typedef struct _fluid_sfont_t fluid_sfont_t;                    /**< SoundFont */
               ^

build log: https://ptpb.pw/mXqW
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-11-25 14:35:20 UTC
A commit references this bug:

Author: tobik
Date: Sun Nov 25 14:34:54 UTC 2018
New revision: 485865
URL: https://svnweb.freebsd.org/changeset/ports/485865

Log:
  audio/fluidsynth-dssi: Fix build with FluidSynth 2.x

  fluidsynth-dssi.c:170:20: error: variable has incomplete type 'fluid_preset_t' (aka 'struct _fluid_preset_t')
      fluid_preset_t preset;
                     ^

  PR:		233503
  Reported by:	jbeich
  Obtained from:	PLD Linux

Changes:
  head/audio/fluidsynth-dssi/Makefile
  head/audio/fluidsynth-dssi/files/patch-src_fluidsynth-dssi.c