rhdunn / espeak

eSpeak NG is an open source speech synthesizer that supports 101 languages and accents.
http://reecedunn.co.uk/espeak-for-android
GNU General Public License v3.0
386 stars 16 forks source link

build: fix duplicated symbol when linking #104

Closed yorkie closed 7 years ago

yorkie commented 7 years ago

Hey @rhdunn, I'm starting to build this awesome project on my OSX, but meet the following error when linking:

duplicate symbol _init_MBR in:
    src/libespeak-ng/.libs/src_libespeak_ng_la-synth_mbrola.o
    src/libespeak-ng/.libs/src_libespeak_ng_la-mbrowrap.o
duplicate symbol _reset_MBR in:
    src/libespeak-ng/.libs/src_libespeak_ng_la-synth_mbrola.o
    src/libespeak-ng/.libs/src_libespeak_ng_la-mbrowrap.o
...

This error is caused by here we occurs the same issue as stackoverflow#c-duplicate-symbol-from-function-pointer. This patch'd fix this problem :)