DISTRHO / Cardinal

Virtual modular synthesizer plugin
https://cardinal.kx.studio/
GNU General Public License v3.0
2.07k stars 141 forks source link

Build breaks with liblo: error: typedef redefinition with different types ('struct lo_server_ *' vs 'void *') #641

Closed yurivict closed 2 months ago

yurivict commented 2 months ago

Version

23.10

Plugin type

Native / JACK

OS

FreeBSD

DAW / Host (if applicable)

No response

Description

Build failure:

In file included from CardinalCommon.cpp:71:
In file included from /usr/local/include/lo/lo.h:29:
/usr/local/include/lo/lo_types.h:85:28: error: typedef redefinition with different types ('struct lo_server_ *' vs 'void *')
typedef struct lo_server_ *lo_server;
                           ^
/wrkdirs/usr/ports/audio/cardinal/work/cardinal-23.10/src/CardinalCommon.hpp:90:15: note: previous definition is here
typedef void* lo_server;
              ^
In file included from CardinalCommon.cpp:71:
In file included from /usr/local/include/lo/lo.h:29:
/usr/local/include/lo/lo_types.h:92:35: error: typedef redefinition with different types ('struct lo_server_thread_ *' vs 'void *')
typedef struct lo_server_thread_ *lo_server_thread;
                                  ^
/wrkdirs/usr/ports/audio/cardinal/work/cardinal-23.10/src/CardinalCommon.hpp:91:15: note: previous definition is here
typedef void* lo_server_thread;
              ^
Compiling common.cpp
Compiling CardinalUI.cpp
2 errors generated.

log

Disabling liblo fixes the build.

liblo-0.32 FreeBSD 14.0

falkTX commented 2 months ago

This is fixed in 24.04