prosodylab / Prosodylab-Aligner

Python interface for forced audio alignment using HTK and SoX
http://prosodylab.org/tools/aligner/
MIT License
331 stars 77 forks source link

Fatal error during installation (OS X) #51

Closed seanstappas closed 7 years ago

seanstappas commented 8 years ago

After calling make -j4 all in the htk directory, the following error was thrown:

strarr.c:21:10: fatal error: 'malloc.h' file not found

This was fixed for me by replacing #include <malloc.h>with #include <malloc/malloc.h> in htk/HTKLib/strarr.c. (OS X El Capitan 10.11.4 15E65)

kylebgorman commented 8 years ago

Thanks for that report. Let me suggest a more-general solution: replace any import of malloc.h with stdlib.h. malloc.h is non-standard, but ANSI C onward requires that malloc be defined in stdlib.h. (I'm looking at p. 252 of K&R, ANSI C edition.)

If you're interested, please report this issue upstream to the HTK folks. (You may not be the first person complaining about it).

On Tue, Jul 26, 2016 at 11:52 AM Sean Stappas notifications@github.com wrote:

After calling make -j4 all in the htk directory, the following error was thrown:

strarr.c:21:10: fatal error: 'malloc.h' file not found

This was fixed for me by replacing #include with #include <malloc/malloc.h> in htk/HTKLib/strarr.c. (OS X El Capitan 10.11.4 15E65)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/prosodylab/Prosodylab-Aligner/issues/51, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJuOXh5FvaHR2K581Kbap2HMpx5tZpBks5qZi0lgaJpZM4JVTEC .

seanstappas commented 8 years ago

Hey, thanks for the quick reply. Replacing with stdlib.h did indeed do the trick as well. I will make sure to report it upstream.