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

error in configure file #442

Closed
itssivashankar opened this issue Aug 19, 2018 · 9 comments
Closed

error in configure file #442

itssivashankar opened this issue Aug 19, 2018 · 9 comments

Comments

@itssivashankar
Copy link

itssivashankar commented Aug 19, 2018

Hi,
I am trying to build json-c using (./congigure) command i am getting this error on coreos.
so, kindly help me to solve this error

./configure: line 12361: syntax error near unexpected token -Wall' ./configure: line 12361: AX_APPEND_COMPILE_FLAGS(-Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations)'

@hawicz
Copy link
Member

hawicz commented Aug 19, 2018

What version of the code are you using? If you're using a release tarball or branch, that error shouldn't be possible. If you're using the most recent code from the master branch, you need to make sure you have a recent enough version of autoconf and automake. See https://github.com/json-c/json-c/blob/master/README.md

@itssivashankar
Copy link
Author

i am using the latest version autoconf(2.69)

@hawicz
Copy link
Member

hawicz commented Aug 21, 2018

So you get:

$ autoreconf --version | head -1
autoreconf (GNU Autoconf) 2.69
$ automake --version | head -1
automake (GNU automake) 1.15

? hmm... Did you see any errors when you ran autogen.sh ?

@itssivashankar
Copy link
Author

their is no error on autogen.sh i am getting error only on the configure file
can you tell me what is the reason for the error

@ploxiln
Copy link
Contributor

ploxiln commented Aug 21, 2018

./autogen.sh is how configure is generated. Your error looks like you just renamed configure.ac to configure and tried to run it.

If you downloaded a release tarball it should have had a properly generated configure in it, but if you cloned the git repo, or downloaded a tarball generated by github, it would be lacking the configure script, and you would have to run ./autogen.sh to generate it, and you would need new-enough versions of autoconf and automake.

@hawicz
Copy link
Member

hawicz commented Aug 22, 2018

I think it's more complicated than just renaming the configure.ac script, look at the line number of the error. You'd get the error that itssivashankar sees if the autoconf-archive/m4 directory is missing, or if the AC_CONFIG_MACRO_DIRS isn't working properly. That macro wasn't available with too early of a version of automake, and he still hasn't told us what version of that he is using, so my guess is that it's too old to work.

@ploxiln
Copy link
Contributor

ploxiln commented Aug 22, 2018

yeah that makes more sense

@sperumalcse
Copy link

Hi Ploxiln,

This post saved my day! I was banging my head why 'configure' file is available in release tar ball not in git clone.

Thank you very much!!

@hawicz
Copy link
Member

hawicz commented Sep 9, 2019

There doesn't seem to be anything that needs to be fixed in json-c here, closing.

@hawicz hawicz closed this as completed Sep 9, 2019
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

4 participants