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

Mac: uselocale failed to build #246

Closed
alexukr opened this issue Aug 2, 2016 · 3 comments
Closed

Mac: uselocale failed to build #246

alexukr opened this issue Aug 2, 2016 · 3 comments

Comments

@alexukr
Copy link

alexukr commented Aug 2, 2016

It seems like recent changes (uselocale) broke the build on Mac (I use OS X El Capitan 10.11.6).
I run:
git clone https://github.com/json-c/json-c
cd json-c
./autogen.sh
./configure
make

And it fails with:
Making all in .
CC arraylist.lo
CC debug.lo
CC json_c_version.lo
CC json_object.lo
CC json_object_iterator.lo
CC json_tokener.lo
json_tokener.c:239:3: error: use of undeclared identifier 'locale_t'
locale_t oldlocale = uselocale(NULL);

@hawicz
Copy link
Member

hawicz commented Aug 2, 2016

Does your environment not have locale.h? What does the uselocale man page say about what needs to be included to use it?

@hawicz
Copy link
Member

hawicz commented Aug 2, 2016

Never mind, it needs xlocale.h. It seems that OSX and others use that, and Linux is the odd one out with just locale.h. s/b easy to fix

hawicz added a commit that referenced this issue Aug 3, 2016
@hawicz hawicz closed this as completed Aug 3, 2016
@alexukr
Copy link
Author

alexukr commented Aug 3, 2016

Now it works again. Thanks.

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