
Applying ./patches/001-configure_fixes.patch using plaintext: 
patching file configure.in

Applying ./patches/200-ranlib.patch using plaintext: 
patching file src/port/Makefile

Applying ./patches/800-busybox-default-pager.patch using plaintext: 
patching file src/bin/psql/print.h

Applying ./patches/900-pg_ctl-setuid.patch using plaintext: 
patching file src/bin/pg_ctl/pg_ctl.c
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: /home/bastian/ledebot/source/staging_dir/host/bin/aclocal -I /home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/host/share/aclocal -I /home/bastian/ledebot/source/staging_dir/hostpkg/share/aclocal -I /home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/usr/share/aclocal -I config -I . --force 
aclocal.real: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /home/bastian/ledebot/source/staging_dir/host/bin/autoconf --include=/home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/host/share/aclocal --include=/home/bastian/ledebot/source/staging_dir/hostpkg/share/aclocal --include=/home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/usr/share/aclocal --include=config --include=. --prepend-include=/home/bastian/ledebot/source/staging_dir/host/share/aclocal --force
autoreconf: running: /home/bastian/ledebot/source/staging_dir/host/bin/autoheader --include=/home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/host/share/aclocal --include=/home/bastian/ledebot/source/staging_dir/hostpkg/share/aclocal --include=/home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/usr/share/aclocal --include=config --include=. --prepend-include=/home/bastian/ledebot/source/staging_dir/host/share/aclocal --force
autoreconf: configure.in: not using Automake
autoreconf: Leaving directory `.'
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: /home/bastian/ledebot/source/staging_dir/host/bin/aclocal -I /home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/host/share/aclocal -I /home/bastian/ledebot/source/staging_dir/hostpkg/share/aclocal -I /home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/usr/share/aclocal -I config -I . --force 
aclocal.real: warning: autoconf input should be named 'configure.ac', not 'configure.in'
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /home/bastian/ledebot/source/staging_dir/host/bin/autoconf --include=/home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/host/share/aclocal --include=/home/bastian/ledebot/source/staging_dir/hostpkg/share/aclocal --include=/home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/usr/share/aclocal --include=config --include=. --prepend-include=/home/bastian/ledebot/source/staging_dir/host/share/aclocal --force
autoreconf: running: /home/bastian/ledebot/source/staging_dir/host/bin/autoheader --include=/home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/host/share/aclocal --include=/home/bastian/ledebot/source/staging_dir/hostpkg/share/aclocal --include=/home/bastian/ledebot/source/staging_dir/target-mips_24kc_musl/usr/share/aclocal --include=config --include=. --prepend-include=/home/bastian/ledebot/source/staging_dir/host/share/aclocal --force
autoreconf: configure.in: not using Automake
autoreconf: Leaving directory `.'
configure: WARNING: you should use --build, --host, --target
configure: loading site script /home/bastian/ledebot/source/include/site/mips
checking build system type... x86_64-pc-linux-gnu
checking host system type... mips-openwrt-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for mips-openwrt-linux-gcc... mips-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-openwrt-linux-musl-gcc accepts -g... yes
checking for mips-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking whether mips-openwrt-linux-musl-gcc supports -Wdeclaration-after-statement... no
checking whether mips-openwrt-linux-musl-gcc supports -Wendif-labels... no
checking whether mips-openwrt-linux-musl-gcc supports -Wmissing-format-attribute... no
checking whether mips-openwrt-linux-musl-gcc supports -Wformat-security... no
checking whether mips-openwrt-linux-musl-gcc supports -fno-strict-aliasing... no
checking whether mips-openwrt-linux-musl-gcc supports -fwrapv... no
checking whether mips-openwrt-linux-musl-gcc supports -fexcess-precision=standard... no
checking whether mips-openwrt-linux-musl-gcc supports -funroll-loops... no
checking whether mips-openwrt-linux-musl-gcc supports -ftree-vectorize... no
checking whether mips-openwrt-linux-musl-gcc supports -Wunused-command-line-argument... no
checking whether the C compiler still works... yes
checking how to run the C preprocessor... mips-openwrt-linux-musl-gcc -E
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with GSSAPI support... no
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
checking whether to build with SELinux support... no
checking for grep that handles long lines and -e... /home/bastian/ledebot/source/staging_dir/host/bin/grep
checking for egrep... /home/bastian/ledebot/source/staging_dir/host/bin/grep -E
checking for ld used by GCC... mips-openwrt-linux-musl-ld
checking if the linker (mips-openwrt-linux-musl-ld) is GNU ld... yes
checking for mips-openwrt-linux-ranlib... mips-openwrt-linux-musl-gcc-ranlib
checking for mips-openwrt-linux-strip... mips-openwrt-linux-musl-strip
checking whether it is possible to strip libraries... yes
checking for mips-openwrt-linux-ar... mips-openwrt-linux-musl-gcc-ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for tar... /home/bastian/ledebot/source/staging_dir/host/bin/tar
checking whether ln -s works... yes
checking for gawk... gawk
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for bison... /home/bastian/ledebot/source/staging_dir/host/bin/bison
configure: using bison (GNU Bison) 3.0.4
checking for flex... /home/bastian/ledebot/source/staging_dir/host/bin/flex
configure: using flex 2.6.1
checking for perl... /home/bastian/ledebot/source/staging_dir/host/bin/perl
configure: using perl 5.22.1
checking for zic... /home/bastian/ledebot/source/staging_dir/hostpkg/bin/zic
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... none required
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing crypt... none required
checking for library containing shm_open... none required
checking for library containing shm_unlink... none required
checking for library containing fdatasync... none required
checking for library containing sched_yield... none required
checking for library containing gethostbyname_r... none required
checking for library containing shmget... none required
checking for library containing readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
Makefile:228: recipe for target '/home/bastian/ledebot/source/build_dir/target-mips_24kc_musl/postgresql-9.5.4/.configured_yyyyyyyyy' failed
make[3]: *** [/home/bastian/ledebot/source/build_dir/target-mips_24kc_musl/postgresql-9.5.4/.configured_yyyyyyyyy] Error 1
