Bug 233503

Summary: audio/fluidsynth-dssi: fails to build with fluidsynth 2.x
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Tobias Kortkamp <tobik>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: needs-patch
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 233448    

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