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

complie error #39

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

complie error #39

merkerxu opened this issue Aug 2, 2016 · 3 comments

Comments

@merkerxu
Copy link

merkerxu commented Aug 2, 2016

after

yum install gdbm-devel -y

I got

/root/tools/QConf/agent/qconf_dump.cc: In function ‘int qconf_init_dbf_(int)’:
/root/tools/QConf/agent/qconf_dump.cc:62: error: invalid conversion from ‘const char*’ to ‘char*’
/root/tools/QConf/agent/qconf_dump.cc:62: error:   initializing argument 1 of ‘<anonymous struct>* gdbm_open(char*, int, int, int, void (*)())’
make[2]: *** [agent/CMakeFiles/qconf_agent.dir/qconf_dump.cc.o] Error 1
make[1]: *** [agent/CMakeFiles/qconf_agent.dir/all] Error 2
make: *** [all] Error 2
@CatKang
Copy link
Contributor

CatKang commented Aug 2, 2016

This may be the incompatibility problem of gdbm-devel, it happened when we call the gdbm_open function.

It is recommend to use the one under QConf/deps/gdbm.

@merkerxu
Copy link
Author

merkerxu commented Aug 3, 2016

when using QConf/deps/gdbm, I got

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /root/tools/QConf/deps/gdbm/build-aux/missing aclocal-1.14 -I m4
/root/tools/QConf/deps/gdbm/build-aux/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make: *** [aclocal.m4] Error 127
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /root/tools/QConf/deps/gdbm/build-aux/missing aclocal-1.14 -I m4
/root/tools/QConf/deps/gdbm/build-aux/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make: *** [aclocal.m4] Error 127
CMake Error at driver/c++/CMakeLists.txt:29 (message):
  message called with incorrect number of arguments

and the yum list is here

#yum list automake autoconf perl m4
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.neusoft.edu.cn
Installed Packages
autoconf.noarch                                              2.63-5.1.el6                                                       @base                                   
automake.noarch                                              1.11.1-4.el6                                                       @base                                   
m4.x86_64                                                    1.4.13-5.el6                                                       @anaconda-CentOS-201508042137.x86_64/6.7
perl.x86_64                                                  4:5.10.1-141.el6_7.1                                               @updates                                

@merkerxu
Copy link
Author

merkerxu commented Aug 8, 2016

finally, ref:
https://github.com/Qihoo360/QConf/wiki/FAQ
reinstall autoocnf2.69 & automake1.14 and the problem resolved

@merkerxu merkerxu closed this as completed Aug 8, 2016
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