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

configure error "./configure: line 13121: syntax error near unexpected token `-Wall'" #292

Closed
daiziyi opened this issue Dec 9, 2016 · 6 comments

Comments

@daiziyi
Copy link

daiziyi commented Dec 9, 2016

hi, when i execute the follower command, happen error:
# ./configure

default

json-c version: 0.12.99
my os: Linux localhost.localdomain 2.6.32-431.el6.x86_64

thank you!

@hawicz
Copy link
Member

hawicz commented Dec 10, 2016

That's just the kernel version, not the actual OS version. Are you running CentOS or RHEL?

Also, what version of autoconf do you have? If "autoconf -V" doesn't say at least version 2.64 you'll need to update to a newer one.

@hawicz
Copy link
Member

hawicz commented Dec 12, 2016

I updated configure.ac to specify the minimum version of autoconf needed. See commit a443b9f.

Note that if you need to build and run your own newer copy I've tested with autoconf-2.64, automake-1.10.3 and libtool-2.2.6b installed into an arbitrary location.

@hawicz hawicz closed this as completed Dec 12, 2016
@daiziyi
Copy link
Author

daiziyi commented Dec 12, 2016

Thank you @hawicz ! I have use the lastest json-c git version and update autoconf to 2.69, before is autoconf-2.63. And the "./configure" is pass, and then successfully compile json-c lib .
my os is RHEL 6.5.

@hau7626520
Copy link

Hi,

My OS is Mint (linuxmint-18-cinnamon-32bit.iso), and I try the command 'autoconf -V':
autoconf (GNU Autoconf) 2.69

I process the steps below, and got the same error message:
git clone git://github.com/json-c/json-c.git /opt/git/json-c
cd /opt/git/json-c/
autoreconf -i
./configure --prefix=/usr

Could you please help on this?

@daiziyi
Copy link
Author

daiziyi commented Dec 16, 2016

@hau7626520 I just 'git clone' the lastest version of 'json-c' and install 'autoconf' with source code,
and then successfully compile json-c. But I don't know why is work. My system has two version of 'autoconf': 2.63, 2.69. '2.69' is installed in '/usr/local/bin/autoconf', '2.63' is installed in '/usr/bin/autoconf'.
My Path is:
default

@jaartamendi
Copy link

In my case, despite having autoconf 2.69 installed, I also had to install the "autoconf-archive" package to get rid of this error.

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