What's new

stock asuswrt AC56U libxml build problem

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

enry

New Around Here
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?

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:
stock asuswrt AC56U libxml build problem [FIXED]

Hi,

Stock AsusWRT on linux mint 17 doesn't seem to build.
... The error is in libxml2. I've pinned down the command that fails. "./configure" on libxml2 succeeded, but the "make all" fails:

UPDATE! This is the fix; how can I submit this for review?
...
EDIT - it seems calling "automake --add-missing" after configure fixes it. I cannot say why. I've patched the

I think you just need to submit a pull request for it on GitHub.
 
Very strange, I build a test version a couple of days ago for my own AC56U and had no issues, I do not use mint though but Gentoo Linux.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top