View Issue Details

IDProjectCategoryView StatusLast Update
0005840ardourbugspublic2020-04-19 20:16
Reporterdavidqo Assigned Tox42  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0005840: affectx.h error: redefinition of typedef ‘VstTimeInfo’
DescriptionBuild with key --windows-vst enabled fails due extra typedef in affectx.h.
Cloned from this repo: git://git.ardour.org/ardour/ardour.git
Additional InformationIn file included from /home/davidqo/Build/Git/ardour/libs/ardour/ardour/vst_types.h:23:0,
                 from ../libs/fst/fst.h:8,
                 from ../libs/fst/fstinfofile.c:1:
/home/davidqo/Build/Git/ardour/libs/ardour/ardour/vestige/aeffectx.h:273:29: error: redefinition of typedef ‘VstTimeInfo’
/home/davidqo/Build/Git/ardour/libs/ardour/ardour/vestige/aeffectx.h:271:3: note: previous declaration of ‘VstTimeInfo’ was here
In file included from ../libs/fst/fstinfofile.c:1:0:
../libs/fst/fst.h:36:1: warning: function declaration isn’t a prototype
In file included from /home/davidqo/Build/Git/ardour/libs/ardour/ardour/vst_types.h:23:0,
                 from ../libs/fst/fst.h:8,
                 from ../libs/fst/fst.c:4:
/home/davidqo/Build/Git/ardour/libs/ardour/ardour/vestige/aeffectx.h:273:29: error: redefinition of typedef ‘VstTimeInfo’
/home/davidqo/Build/Git/ardour/libs/ardour/ardour/vestige/aeffectx.h:271:3: note: previous declaration of ‘VstTimeInfo’ was here
In file included from ../libs/fst/fst.c:4:0:
../libs/fst/fst.h:36:1: warning: function declaration isn’t a prototype
../libs/fst/fst.c:19:1: warning: no previous prototype for ‘default_fst_error_callback’
winegcc: gcc-4.5 failed
winegcc: gcc-4.5 failed

//the reason is the code below:

typedef struct _VstTimeInfo
{
    /* info from online documentation of VST provided by Steinberg */

    double samplePos;
    double sampleRate;
    double nanoSeconds;
    double ppqPos;
    double tempo;
    double barStartPos;
    double cycleStartPos;
    double cycleEndPos;
    int32_t timeSigNumerator;
    int32_t timeSigDenominator;
    int32_t smpteOffset;
    int32_t smpteFrameRate;
    int32_t samplesToNextClock;
    int32_t flags;

} VstTimeInfo;

typedef struct _VstTimeInfo VstTimeInfo;

//possibly you should exclude second typedef, because without it all builds fine. I think that it duplicates first definition.
TagsNo tags attached.

Activities

x42

2014-01-26 18:21

administrator   ~0015623

thanks, fixed in 3.5-311-g241c1aa

system

2020-04-19 20:16

developer   ~0023301

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2014-01-26 06:08 davidqo New Issue
2014-01-26 18:21 x42 Note Added: 0015623
2014-01-26 18:21 x42 Status new => resolved
2014-01-26 18:21 x42 Resolution open => fixed
2014-01-26 18:21 x42 Assigned To => x42
2020-04-19 20:16 system Note Added: 0023301
2020-04-19 20:16 system Status resolved => closed