Hi,
thank you for your work to free the DNS-320L (and the other devices) and
the latest 1.0 release.
I want to build a dedicated backup solution out of the 320L, using
Borgbackup (
https://borgbackup.readthedocs.io/en/stable/) and Syncthing
(
https://syncthing.net/) for multi-site-backup/syncing.
I flashed 1.0 snapshot to the NAS using the web interface, it is running
fine! Syncthing is running out of the box, because it is written in Go
and has very little dependencies.
Borgbackup unfortunately is not, because it needs Python 3.4.0+ and some
more dependencies to build (see
https://borgbackup.readthedocs.io/en/stable/installation.html#source-install)
and the unofficial standalone binary ARM builds (via pyinstaller, see
https://github.com/borgbackup/borg/issues/1018) depend on
/lib/ld-linux.so.3 of glibc.
So I want to build an Alt-F .bin myself and then change the sources to
include Borgbackup and Syncthing right from the beginning. I got stuck
on creating the .bin from the unaltered SVN sources after clearing some
hurdles, so I hope you can help me in how to set up the build environment?
I run a 64bit Linux Mint 18.1 Serena on the build machine.
Problems:
1. bfd.texinfo:325: unknown command `colophon'/`cygnus'
when building binutils-2.23.51 documentation
=> remedy by
find -name '*.texinfo' | sed 's/texinfo$/info/' | xargs touch
after first build fail
2. error: expected ')' before 'int'
when building ncurses
=> remedy by
export CPPFLAGS="-P"
before running the
. exports dns325
3. ../../gcc/toplev.c:536:1: error: redefinition of ‘floor_log2 [etc.]
when building gcc. I was running the default gcc, which seems to be 5.
=> remedy by
apt install gcc-4.7
and switching /usr/bin/gcc and /usr/bin/g++ links to the -4.7 instances.
4.7 seems to be the oldest version available via apt.
4. ./stdint.h:47:13: error: empty filename in #include
when building gettext-0.16.1
=> remedy by simply deleting line 47 (# include "") from
[...]/alt-f-read-only/alt-f/build/build_arm/gettext-0.16.1/gettext-tools/gnulib-lib/stdint.h
5. Directly after this comes the fatal error:
In file included from ./stdint.h:68,
from xsize.h:28,
from linebreak.c:27:
[...]/alt-f-read-only/alt-f/build/build_arm/staging_dir/usr/include/inttypes.h:300:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'imaxabs'
[5 more]
In file included from gl_linkedhash_list.c:24:
./stdint.h:47:13: error: empty filename in #include
In file included from ./stdint.h:68,
from gl_linkedhash_list.c:24:
[...]/alt-f-read-only/alt-f/build/build_arm/staging_dir/usr/include/inttypes.h:300:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'imaxabs'
[5 more]
I also on error 4 tried
# include <stdint.h>
trying to follow the source comment:
> Other systems may have an incomplete or buggy <stdint.h>. Include it
> before <inttypes.h>, since any "#include <stdint.h>" in <inttypes.h>
> would reinclude us, skipping our contents because GL_STDINT_H is
> defined.
But to no avail. It seems to me, something is going wrong here in the
automatic generation? Can you please help?
Thank you very much already in advance!
Cheers,
friesenkiwi