Citerar "Raine M. Ekman" <[email protected]>:

> Citerar Tres Finocchiaro <[email protected]>:
>> I'm guessing this next message suggests the OpulenZ code has some
>> compatibility issues with clang as well:
>>
>> Linking CXX shared module libOPL2.so
>>> Undefined symbols for architecture x86_64:
>>>    "_OPL_CALC_CH", referenced from:
>>>         _YM3812UpdateOne in fmopl.o
>>>         ..."
>
> Very likely. That emulator code is more or less ancient, borrowed from
> the Adplug project, who took it from an old version of MAME.
>
> Is that the first OpulenZ-related message you get? No warnings before
> that or anything?

Oh well, here's some guesswork, now that I had a look and read this:
http://clang.llvm.org/compatibility.html#inline

In fmopl.c, change

#define INLINE          __inline

to

#define INLINE          static inline

or, if that breaks something on Linux, maybe this:

#ifdef LMMS_BUILD_APPLE
#define INLINE          static inline
#else
#define INLINE          __inline
#endif

or add the -std=gnu89 option when building this file. I think none of  
those INLINE functions are called from the outside, so "static inline"  
should be perfectly fine.

-- 
[email protected]
softrabbit on #lmms



------------------------------------------------------------------------------
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to