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 for centos release 6.7(final) failure #276

Closed
yifeizuo opened this issue Oct 6, 2016 · 5 comments
Closed

./configure for centos release 6.7(final) failure #276

yifeizuo opened this issue Oct 6, 2016 · 5 comments

Comments

@yifeizuo
Copy link

yifeizuo commented Oct 6, 2016

seems somewhere failed of ./configure

checking if gcc -std=gnu99 static flag -static works... no
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for -Bsymbolic-functions linker flag... yes
./configure: line 13121: syntax error near unexpected token `-Wall'
./configure: line 13121: `AX_APPEND_COMPILE_FLAGS(-Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations)'
~/json-c$ make
make: *** No targets specified and no makefile found.  Stop.
@yifeizuo yifeizuo changed the title no makefile found after ./configure for centos release 6.7(final) ./configure for centos release 6.7(final) failure Oct 6, 2016
@hawicz
Copy link
Member

hawicz commented Oct 6, 2016

This is actually indicative of a failure earlier, during the autogen.sh step. What version of json-c are you attempting to build?

@yifeizuo
Copy link
Author

yifeizuo commented Oct 6, 2016

Directly cloned from master, would it be better to use the latest release?

@yifeizuo
Copy link
Author

yifeizuo commented Oct 6, 2016

Just tried with the latest release, unfortunately, things go as:

/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Werror -Wno-error=deprecated-declarations -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -g -O2 -MT arraylist.lo -MD -MP -MF .deps/arraylist.Tpo -c -o arraylist.lo arraylist.c
libtool: Version mismatch error.  This is libtool 2.4.2, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
libtool: and run autoconf again.
make[2]: *** [arraylist.lo] Error 63

seems related to libtool, looking into that

@yifeizuo
Copy link
Author

yifeizuo commented Oct 6, 2016

Cool, working now 👍

@yifeizuo yifeizuo closed this as completed Oct 6, 2016
@vote539
Copy link

vote539 commented Dec 12, 2016

For the record, to anyone finding this issue from Google, I solved it by doing,

$ sudo yum install autoconf-archive
$ autoreconf -fi

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

3 participants