Skip to content

Instantly share code, notes, and snippets.

@filipecifali
Created November 20, 2017 16:20
Show Gist options
  • Save filipecifali/fe2ab466f6589eed2e4bb61202658481 to your computer and use it in GitHub Desktop.
Save filipecifali/fe2ab466f6589eed2e4bb61202658481 to your computer and use it in GitHub Desktop.
lighttpd 1.4.48
# ./autogen.sh
configure.ac:72: warning: macro `AM_PROG_AR' not found in library
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `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'
configure.ac:72: warning: macro `AM_PROG_AR' not found in library
configure.ac:72: error: possibly undefined macro: AM_PROG_AR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:1282: error: possibly undefined macro: AS_VAR_APPEND
autoreconf: /usr/bin/autoconf failed with exit status: 1
@filipecifali
Copy link
Author

autoconf --version

autoconf (GNU Autoconf) 2.63
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later
http://gnu.org/licenses/old-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 David J. MacKenzie and Akim Demaille.

libtool --version

ltmain.sh (GNU libtool) 2.2.6b
Written by Gordon Matzigkeit gord@gnu.ai.mit.edu, 1996

Copyright (C) 2008 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.

automake --version

automake (GNU automake) 1.11.1
Copyright (C) 2009 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.

m4 --version

m4 (GNU M4) 1.4.13
Copyright (C) 2009 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.

@filipecifali
Copy link
Author

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/opt/autoconf/2.69
make
make install
cd ..
wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
tar xvf automake-1.14.tar.gz
cd automake-1.14
./configure --prefix=/opt/automake/1.14
make
make install
cd ..
wget http://ftp.gnu.org/gnu/libtool/libtool-2.2.10.tar.gz
tar xvf libtool-2.2.10.tar.gz
cd libtool-2.2.10
./configure --prefix=/opt/libtool/2.2.10
make
make install
cd ..
wget https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz
tar xvf m4-1.4.18.tar.xz
cd m4-1.4.18
./configure --prefix=/opt/m4/1.4.18
make
make install
cd ..
PATH=/opt/m4/1.4.18/bin:/opt/libtool/2.2.10/bin:/opt/automake/1.14/bin:/opt/autoconf/2.69/bin:$PATH

@filipecifali
Copy link
Author

Current old version problem:

libtoolize: putting auxiliary files in .'. libtoolize: copying file ./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, 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'
configure.ac:1282: error: possibly undefined macro: AS_VAR_APPEND
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

@filipecifali
Copy link
Author

1.4.45 + patch(https://redmine.lighttpd.net/projects/lighttpd/repository/revisions/9f02df2d3973be12cc832c7a3d1e27bba13ef1f4/diff?utf8=%E2%9C%93&type=sbs) + sock_addr.h + base_decls.h

libtool: link: ( cd ".libs" && rm -f "mod_status.la" && ln -s "../mod_status.la" "mod_status.la" )
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR=""/usr/local/lib"" -DSBIN_DIR=""/usr/local/sbin"" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MT mod_accesslog.lo -MD -MP -MF .deps/mod_accesslog.Tpo -c -o mod_accesslog.lo mod_accesslog.c
libtool: compile: gcc -DHAVE_CONFIG_H -DHAVE_VERSION_H -DLIBRARY_DIR="/usr/local/lib" -DSBIN_DIR="/usr/local/sbin" -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MT mod_accesslog.lo -MD -MP -MF .deps/mod_accesslog.Tpo -c mod_accesslog.c -fPIC -DPIC -o .libs/mod_accesslog.o
In file included from sock_addr.h:8,
from mod_accesslog.c:6:
base_decls.h:9: error: redefinition of typedef ‘server’
base.h:691: note: previous declaration of ‘server’ was here
base_decls.h:12: error: conflicting types for ‘connection’
base.h:482: note: previous declaration of ‘connection’ was here
base_decls.h:15: error: conflicting types for ‘sock_addr’
base.h:141: note: previous declaration of ‘sock_addr’ was here
mod_accesslog.c: In function ‘log_access_write’:
mod_accesslog.c:781: error: dereferencing pointer to incomplete type
mod_accesslog.c:791: error: dereferencing pointer to incomplete type
mod_accesslog.c:792: error: dereferencing pointer to incomplete type
mod_accesslog.c:812: error: dereferencing pointer to incomplete type
mod_accesslog.c:849: error: dereferencing pointer to incomplete type
mod_accesslog.c:898: error: dereferencing pointer to incomplete type
mod_accesslog.c:900: error: dereferencing pointer to incomplete type
mod_accesslog.c:920: error: dereferencing pointer to incomplete type
mod_accesslog.c:927: error: dereferencing pointer to incomplete type
mod_accesslog.c:934: error: dereferencing pointer to incomplete type
mod_accesslog.c:935: error: dereferencing pointer to incomplete type
mod_accesslog.c:939: error: dereferencing pointer to incomplete type
mod_accesslog.c:943: error: dereferencing pointer to incomplete type
mod_accesslog.c:945: error: dereferencing pointer to incomplete type
mod_accesslog.c:945: error: dereferencing pointer to incomplete type
mod_accesslog.c:945: error: dereferencing pointer to incomplete type
mod_accesslog.c:945: error: dereferencing pointer to incomplete type
mod_accesslog.c:951: error: dereferencing pointer to incomplete type
mod_accesslog.c:958: error: dereferencing pointer to incomplete type
mod_accesslog.c:966: error: dereferencing pointer to incomplete type
mod_accesslog.c:973: error: dereferencing pointer to incomplete type
mod_accesslog.c:974: error: dereferencing pointer to incomplete type
mod_accesslog.c:980: error: dereferencing pointer to incomplete type
mod_accesslog.c:981: error: dereferencing pointer to incomplete type
mod_accesslog.c:987: error: dereferencing pointer to incomplete type
mod_accesslog.c:988: error: dereferencing pointer to incomplete type
mod_accesslog.c:994: error: dereferencing pointer to incomplete type
mod_accesslog.c:995: error: dereferencing pointer to incomplete type
mod_accesslog.c:1001: error: dereferencing pointer to incomplete type
mod_accesslog.c:1002: error: dereferencing pointer to incomplete type
mod_accesslog.c:1009: error: dereferencing pointer to incomplete type
mod_accesslog.c:1012: error: dereferencing pointer to incomplete type
mod_accesslog.c:1022: error: dereferencing pointer to incomplete type
mod_accesslog.c:1037: error: dereferencing pointer to incomplete type
mod_accesslog.c:1040: error: dereferencing pointer to incomplete type
mod_accesslog.c:1054: error: dereferencing pointer to incomplete type
mod_accesslog.c:1057: error: dereferencing pointer to incomplete type
mod_accesslog.c:1060: error: dereferencing pointer to incomplete type
mod_accesslog.c:1061: error: dereferencing pointer to incomplete type
mod_accesslog.c:1071: error: dereferencing pointer to incomplete type
mod_accesslog.c:1072: error: dereferencing pointer to incomplete type
mod_accesslog.c:1078: error: dereferencing pointer to incomplete type
make[3]: *** [mod_accesslog.lo] Error 1
make[3]: Leaving directory /usr/local/install/System-packages/lighttpd-1.4.45-patch-mod-accesslog/src' make[2]: *** [all] Error 2 make[2]: Leaving directory /usr/local/install/System-packages/lighttpd-1.4.45-patch-mod-accesslog/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/install/System-packages/lighttpd-1.4.45-patch-mod-accesslog'
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment