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 - autoreconf -vif #23

Closed
gzpapp opened this issue Jul 27, 2018 · 12 comments
Closed

configure - autoreconf -vif #23

gzpapp opened this issue Jul 27, 2018 · 12 comments
Labels
documentation Primarily an issue with the documentation.

Comments

@gzpapp
Copy link

gzpapp commented Jul 27, 2018

I'm trying to run autoreconf -vif in the top directory, but getting the following error:

Makefile.am:29: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:29: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:29: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:29: If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:29: its definition is in aclocal's search path.
Makefile.am:38: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined

@zackw
Copy link
Collaborator

zackw commented Jul 27, 2018

LT_INIT does appear in configure.ac, and pkgconfigdir is supposed to be defined by PKG_INSTALLDIR. Also, I frequently use autoreconf -vif myself and it works fine. There must be something else wrong. Could you please post the complete and unedited output of autoconf --version, autoreconf --version, automake --version, aclocal --version, libtoolize --version, and autoreconf -vif in a clean git checkout? This is what I get when I run those commands:

$ autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
$ autoreconf --version
autoreconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
$ automake --version
automake (GNU automake) 1.15.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
$ aclocal --version
aclocal (GNU automake) 1.15.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
$ libtoolize --version
libtoolize (GNU libtool) 2.4.6
Written by Gary V. Vaughan <gary@gnu.org>, 2003

Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ autoreconf -vif
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'm4'.
libtoolize: copying file 'm4/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:26: installing 'm4/compile'
configure.ac:25: installing 'm4/config.guess'
configure.ac:25: installing 'm4/config.sub'
configure.ac:16: installing 'm4/install-sh'
configure.ac:16: installing 'm4/missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing 'm4/depcomp'
parallel-tests: installing 'm4/test-driver'
autoreconf: Leaving directory `.'

It would also be helpful to know what operating system you are trying to build for, in detail (e.g. if Linux then tell us which distribution and its approximate age).

@zackw zackw added the need more information We cannot do anything about this issue until we have more information. label Jul 27, 2018
@gzpapp
Copy link
Author

gzpapp commented Jul 27, 2018 via email

@gzpapp
Copy link
Author

gzpapp commented Jul 27, 2018

Found in the configure log:

configure: line 4372: PKG_PROG_PKG_CONFIG: command not found
configure: line 4373: PKG_INSTALLDIR: command not found

From the configure script the above lines looks like:

Dependencies

PKG_PROG_PKG_CONFIG
PKG_INSTALLDIR

@gzpapp
Copy link
Author

gzpapp commented Jul 27, 2018

My fault again, related to this error:

Makefile.am:38: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined.

From the beginning:

$ autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html, http://gnu.org/licenses/exceptions.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

$ autoreconf --version
autoreconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html, http://gnu.org/licenses/exceptions.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

$ automake --version
automake (GNU automake) 1.15
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl-2.0.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey tromey@redhat.com
and Alexandre Duret-Lutz adl@gnu.org.

$ aclocal --version
aclocal (GNU automake) 1.15
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl-2.0.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey tromey@redhat.com
and Alexandre Duret-Lutz adl@gnu.org.

$ libtoolize --version
libtoolize (GNU libtool) 2.4.6
Written by Gary V. Vaughan gary@gnu.org, 2003

Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ autoreconf -vif
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'm4'.
libtoolize: copying file 'm4/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:26: installing 'm4/compile'
configure.ac:25: installing 'm4/config.guess'
configure.ac:25: installing 'm4/config.sub'
configure.ac:16: installing 'm4/install-sh'
configure.ac:16: installing 'm4/missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing 'm4/depcomp'
Makefile.am:38: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined
parallel-tests: installing 'm4/test-driver'
autoreconf: automake failed with exit status: 1

@gzpapp
Copy link
Author

gzpapp commented Jul 27, 2018

Installing missing pkgconf solved the problem:

$ pkgconf --version
0.28

I was missing libtool and pkgconf. Now autoreconf -vif works fine.

@gzpapp gzpapp closed this as completed Jul 27, 2018
@zackw
Copy link
Collaborator

zackw commented Jul 27, 2018 via email

@gzpapp gzpapp reopened this Jul 27, 2018
@ldv-alt
Copy link
Collaborator

ldv-alt commented Aug 1, 2018

btw, pkgconf is not the only option available, one can use e.g. pkg-config >= 0.27 instead.

@gzpapp
Copy link
Author

gzpapp commented Aug 2, 2018

On debian stable pkg-config is symlink to pkgconf.

@ldv-alt
Copy link
Collaborator

ldv-alt commented Aug 2, 2018

pkg-config is symlink to pkgconf only if pkgconf package is installed.

@gzpapp
Copy link
Author

gzpapp commented Aug 2, 2018

distro madness :-P
Anyway, one of them needed for running autoreconf -vif

@zackw zackw added documentation Primarily an issue with the documentation. and removed need more information We cannot do anything about this issue until we have more information. labels Aug 9, 2018
zackw added a commit that referenced this issue Aug 29, 2018
 * README.md: mention yescrypt
 * README.md: document required tools for building from a Git
   checkout (issue #23)
 * README.md: document that -flto cannot be used due to
   incompatibility with symbol versioning (issue #24)
 * README.md: use curly quotes and apostrophes; use out-of-line
   hyperlinks for better readability as plain text
 * AUTHORS: say that the sunmd5 hash module is a clean-room
   reimplementation to avoid the CDDL
 * THANKS: move prior contributor credits here from README;
   alphabetize; mention Dmitry Levin, Alec Muffett, and Colin Percival

 * crypt_gensalt.3: document errno codes that can occur when
   obtaining random bytes from the operating system fails
@zackw
Copy link
Collaborator

zackw commented Aug 29, 2018

Requirements for building from a git checkout are now documented in README.md. Please let us know if there's still something missing.

@zackw zackw closed this as completed Aug 29, 2018
@gzpapp
Copy link
Author

gzpapp commented Aug 30, 2018

Looks good, thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Primarily an issue with the documentation.
Projects
None yet
Development

No branches or pull requests

3 participants