Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support compilation on macOS 11.x #8

Open
ravenzachary opened this issue May 2, 2021 · 3 comments
Open

Support compilation on macOS 11.x #8

ravenzachary opened this issue May 2, 2021 · 3 comments

Comments

@ravenzachary
Copy link
Owner

Support (and document steps for) compilation of the code on macOS 11.x.

@ravenzachary
Copy link
Owner Author

  • ./make.all fails due to the following error numerous times:
    fatal error: 'malloc.h' file not found

A Google search results in a recommendation to find and replace all malloc.h with:

"The malloc.h is deprecated and should not be used. It contains some non-standard functions too. If you want to use malloc, then include stdlib.h. Not even the C89 standard mentions malloc.h"

I fixed this problem when I compiled the code on Linux. I need to go back and see if macOS generates additional errors after fixing this one.

@mdhender
Copy link

mdhender commented May 4, 2021

Does macOS 11 using the clang tool chain?

@ravenzachary
Copy link
Owner Author

ravenzachary commented May 4, 2021

masOS includes clang if you install Xcode and the optional Command Line Tools.

The other common method to compile POSIX apps on macOS is to install MacPorts, Homebrew, Fink, or pkgin.

Ideally, I will document the steps for all approaches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants