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

Configuring on cents 6.5 failed #2607

Closed
articuluxe opened this issue Aug 5, 2020 · 6 comments
Closed

Configuring on cents 6.5 failed #2607

articuluxe opened this issue Aug 5, 2020 · 6 comments

Comments

@articuluxe
Copy link

articuluxe commented Aug 5, 2020

cloning repo and trying to configure on CentOS 6.5:

> uname -a
Linux chi-ldbd332.xrtrading.local 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

> ../configure --prefix=$HOME/opt/stow/ctags --program-prefix=ex --disable-xml


+ type autoreconf
+ type pkg-config
+ '[' -z '' ']'
+ type make
+ MAKE=make
++ make -s -f makefiles/list-optlib2c-input.mak
+ ctags_files='optlib/RSpec.ctags
optlib/cmake.ctags
optlib/ctags-optlib.ctags
optlib/elixir.ctags
optlib/elm.ctags
optlib/gdbinit.ctags
optlib/inko.ctags
optlib/kconfig.ctags
optlib/man.ctags
optlib/markdown.ctags
optlib/passwd.ctags
optlib/pod.ctags
optlib/qemuhx.ctags
optlib/puppetManifest.ctags
optlib/scss.ctags
optlib/systemtap.ctags'
+ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /opt/x3p/xrt_b/base/bin/autoconf --force
configure.ac:129: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:330: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:565: error: possibly undefined macro: AS_IF
autoreconf: /opt/x3p/xrt_b/base/bin/autoconf failed with exit status: 1
+ echo 'failed in running autoreconf'
failed in running autoreconf
+ exit 1
---
--- ../config.h.in WAS NOT FOUND.
--- YOU MIGHT HAVE RUN autoconf ONLY
--- BUT YOU MAY HAVE TO RUN autogen.sh.
---
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
stow: ERROR: The stow directory stow does not contain package ctags (No such file or directory)
@masatake
Copy link
Member

masatake commented Aug 5, 2020

Before running configure, you must install pkgconfig. Did you install it?

@masatake
Copy link
Member

masatake commented Aug 5, 2020

I succesfully biild a ctags executable in centos6.10:

[root@living ctags]# podman pull docker.io/library/centos:6
Trying to pull docker.io/library/centos:6...
Getting image source signatures
Copying blob ff50d722b382 done  
Copying config d0957ffdf8 done  
Writing manifest to image destination
Storing signatures
d0957ffdf8a2ea8c8925903862b65a1b6850dbb019f88d45e927d3d5a3fa0c31
[root@living ctags]# podman run --rm -ti docker.io/library/centos:6 /bin/bash 
[root@8baef1e3de3c /]# cat /etc/redhat-release 
CentOS release 6.10 (Final)
[root@8baef1e3de3c /]# yum -y install git autoconf automake pkgconfig make gcc
...
[root@8baef1e3de3c /]# git clone https://github.com/universal-ctags/ctags
...
[root@8baef1e3de3c /]# cd ctags
[root@8baef1e3de3c ctags]# ./autogen.sh 
...
[root@8baef1e3de3c ctags]# mkdir build
[root@8baef1e3de3c ctags]# cd build
[root@9cd8957517bd build]# echo $HOME
/root
[root@8baef1e3de3c build]# ../configure --prefix=$HOME/opt/stow/ctags --program-prefix=ex --disable-xml
...
[root@8baef1e3de3c build]# make
...
[root@9cd8957517bd build]# ./ctags --version
Universal Ctags 0.0.0(3f0ea94), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Aug  5 2020, 22:08:30
  URL: https://ctags.io/
  Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +packcc

@articuluxe
Copy link
Author

articuluxe commented Aug 6, 2020 via email

@k-takata
Copy link
Member

k-takata commented Aug 6, 2020

autoreconf: running: /opt/x3p/xrt_b/base/bin/autoconf --force

Is your auto(re)conf installed by yum?

@articuluxe
Copy link
Author

articuluxe commented Aug 6, 2020 via email

@articuluxe
Copy link
Author

This was indeed the issue, using the installed autotools addressed the problem. My apologies for the noise.

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