stock asuswrt AC56U libxml build problem [FIXED]
Hi,
Stock AsusWRT on linux mint 17 doesn't seem to build.
1) git clone https://github.com/RMerl/asuswrt-merlin.git
2) wget https://raw.githubusercontent.com/assarbad/build-asuswrt-merlin/master/debian-build-image
3) ./debian-build-image --prereq rt-ac56u
The error is in libxml2. I've pinned down the command that fails. "./configure" on libxml2 succeeded, but the "make all" fails:
Any ideas?
UPDATE! This is the fix; how can I submit this for review?
For google sake this is the original error:
EDIT - it seems calling "automake --add-missing" after configure fixes it. I cannot say why. I've patched the
Hi,
Stock AsusWRT on linux mint 17 doesn't seem to build.
1) git clone https://github.com/RMerl/asuswrt-merlin.git
2) wget https://raw.githubusercontent.com/assarbad/build-asuswrt-merlin/master/debian-build-image
3) ./debian-build-image --prereq rt-ac56u
The error is in libxml2. I've pinned down the command that fails. "./configure" on libxml2 succeeded, but the "make all" fails:
Any ideas?
UPDATE! This is the fix; how can I submit this for review?
Code:
diff --git a/release/src/router/Makefile b/release/src/router/Makefile
index 48650fe..a545cbd 100755
--- a/release/src/router/Makefile
+++ b/release/src/router/Makefile
@@ -3211,6 +3211,7 @@ libxml2/stamp-h1:
cd libxml2 && \
CC=$(CC) AR=$(AR) RANLIB=$(RANLIB) LD=$(LD) CFLAGS="-Os -Wall $(EXTRACFLAGS)" LDFLAGS=-ldl \
./$(CONFIGURE) --prefix=/usr --without-python --disable-dependency-tracking
+ cd libxml2 && automake --add-missing
touch $@
libxml2: libxml2/stamp-h1
For google sake this is the original error:
Code:
adminuser@adminuser-VirtualBox:~/asuswrt-merlin/release/src/router > make -C libxml2 all
make: Entering directory `/home/adminuser/asuswrt-merlin/release/src/router/libxml2'
cd . && automake-1.14 --gnu
automake-1.14: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:69: 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:1022: _LT_SYS_MODULE_PATH_AIX 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:103: AM_PROG_LIBTOOL is expanded from...
configure.in:69: the top level
configure.in:69: 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:103: AM_PROG_LIBTOOL is expanded from...
configure.in:69: the top level
configure.in:50: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.in:50: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.in:53: error: required file './compile' not found
configure.in:53: 'automake --add-missing' can install 'compile'
Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake-1.14: warning: autoconf input should be named 'configure.ac', not 'configure.in'
doc/examples/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
example/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
python/Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
python/Makefile.am:32: warning: source file '$(srcdir)/libxml.c' is in a subdirectory,
python/Makefile.am:32: but option 'subdir-objects' is disabled
automake-1.14: warning: possible forward-incompatibility.
automake-1.14: At least a source file is in a subdirectory, but the 'subdir-objects'
automake-1.14: automake option hasn't been enabled. For now, the corresponding output
automake-1.14: object file(s) will be placed in the top-level directory. However,
automake-1.14: this behaviour will change in future Automake versions: they will
automake-1.14: unconditionally cause object files to be placed in the same subdirectory
automake-1.14: of the corresponding sources.
automake-1.14: You are advised to start using 'subdir-objects' option throughout your
automake-1.14: project, to avoid future incompatibilities.
python/Makefile.am:32: warning: source file '$(srcdir)/types.c' is in a subdirectory,
python/Makefile.am:32: but option 'subdir-objects' is disabled
make: *** [Makefile.in] Error 1
make: Leaving directory `/home/adminuser/asuswrt-merlin/release/src/router/libxml2'
adminuser@adminuser-VirtualBox:~/asuswrt-merlin/release/src/router >
EDIT - it seems calling "automake --add-missing" after configure fixes it. I cannot say why. I've patched the
Last edited: