Project

General

Profile

[Solved] autogen failure

Added by jiaorenyu over 7 years ago

Hello Everyone,
I have a problem when I was compiling lighttd, when I execute ./autogen.sh it report a error, see below:

configure.ac:104: the top level
configure.ac:104: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
m4/libtool.m4:4161: _LT_LINKER_SHLIBS is expanded from...
m4/libtool.m4:5236: _LT_LANG_C_CONFIG is expanded from...
m4/libtool.m4:138: _LT_SETUP is expanded from...
m4/libtool.m4:67: LT_INIT is expanded from...
m4/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
configure.ac:104: the top level
configure.ac:1: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:38: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:112: error: possibly undefined macro: AC_CHECK_HEADERS
configure.ac:162: error: possibly undefined macro: AC_CHECK_LIB
configure.ac:631: error: possibly undefined macro: AC_MSG_NOTICE
autoreconf: /usr/local/bin/autoconf failed with exit status: 1

I search it on google, it says I should install pkg-config, but I have already installed pkg-config.
This is a paste on this site: https://redmine.lighttpd.net/boards/2/topics/5383.

Does someone have any suggestions?


Replies (5)

RE: autogen failure - Added by stbuehler over 7 years ago

automake and friends are usually not compatible across versions. This means you should at least tell people which version you have :)

In your case it seems you have autoconf >= 2.68, which requires some changes (https://autotools.io/forwardporting/autoconf.html#idm107717609561760), but libtool is too old:

https://lists.gnu.org/archive/html/bug-autoconf/2010-09/msg00099.html

RE: autogen failure - Added by jiaorenyu over 7 years ago

stbuehler wrote:

automake and friends are usually not compatible across versions. This means you should at least tell people which version you have :)

In your case it seems you have autoconf >= 2.68, which requires some changes (https://autotools.io/forwardporting/autoconf.html#idm107717609561760), but libtool is too old:

https://lists.gnu.org/archive/html/bug-autoconf/2010-09/msg00099.html

Thanks for you reply~

The version of related tools on my machine is:

autoconf --version
autoconf (GNU Autoconf) 2.69

automake --version
automake (GNU automake) 1.15

libtool --version
libtool (GNU libtool) 2.4

You can see that I update all the tools to the newest version, and it still have the problem above.
I will try to see the link https://autotools.io/forwardporting/autoconf.html#idm107717609561760, I hope it can help~
Thank you very much~

RE: autogen failure - Added by gstrauss over 7 years ago

jiaorenyu please make sure that pkg-config is in your PATH, and that the m4 in your PATH is not an old version.

e.g from my system:

$ pkg-config --version
0.29
$ m4 --version
m4 (GNU M4) 1.4.17
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.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 Rene' Seindal.

Also, it is good practice to attempt all this as a non-root user.

RE: autogen failure - Added by jiaorenyu over 7 years ago

gstrauss wrote:

jiaorenyu please make sure that pkg-config is in your PATH, and that the m4 in your PATH is not an old version.

e.g from my system:
[...]

Also, it is good practice to attempt all this as a non-root user.

I tried, It works well~

Anyway, Thanks very much~

I uninstall all the newest tools, back to the version on the centos6.4, it works~

But It still makes me confused why it isn't work when use newest version, maybe it has relationship with the centos system itself?

If I have some progress I will paste on this~

RE: autogen failure - Added by gstrauss over 7 years ago

One of those new tools might be picking up old data files from a default location. I have seen that happen with m4. If you want to use all the latest tools, then you have to find which older tools or supporting data still needs to be updated on (or removed from) your centos system.

    (1-5/5)