Cezary napisał/a:I jak widzisz już jest źle, bo wywołałeś samo make (i to jeszcze z -j...), a on stosuje g++ zamiast tego co chciałeś. \
checking for armle-unknown-linux-g++... no
checking for armle-unknown-linux-c++... no
checking for armle-unknown-linux-gpp... no
checking for armle-unknown-linux-aCC... no
checking for armle-unknown-linux-CC... no
checking for armle-unknown-linux-cxx... no
checking for armle-unknown-linux-cc++... no
checking for armle-unknown-linux-cl.exe... no
checking for armle-unknown-linux-FCC... no
checking for armle-unknown-linux-KCC... no
checking for armle-unknown-linux-RCC... no
checking for armle-unknown-linux-xlC_r... no
checking for armle-unknown-linux-xlC... no
Zobacz że configure Ci kompilatora nie znajduje.
Jak pisałem nie mam doświadczenia w kompilowaniu ... ale jest progres 
Zmieniłem zawartość conf.sh na
#!/bin/sh
export CC=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
export CXX=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
export STRIP=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-strip
export LD=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld
export RANLIB=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabiranlib
export CFLAGS="-I /usr/local/arm-none-linux-gnueabi/include"
export LDFLAGS="-L /usr/local/arm-none-linux-gnueabi/lib"
./configure --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi --build=i686-pc-linux --prefix=/usr/local --enable-pcre=no
Teraz mam problem z zlib, choć niby znajduje się w
/usr/local/arm-none-linux-gnueabi/include/linux/zlib.h
cinek@debian:~/build/dansguardian-2.10.1.1$ ./conf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-none-linux-gnueabi-strip... /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-strip
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++... gcc3
checking for arm-none-linux-gnueabi-gcc... /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc accepts -g... yes
checking for /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc option to accept ISO C89... none needed
checking dependency style of /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc... gcc3
checking how to run the C preprocessor... /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C++ preprocessor... /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for sys/types.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking whether byte ordering is bigendian... no
checking if zlib should be statically linked... no
checking for zlib... checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking for gzdopen in -lz... no
configure: error: no zlib!
Nie mam pojęcia jak poprawnie wskazać zlib.h przy configure.
cinek@debian:~/build/dansguardian-2.10.1.1$ ./configure --help
`configure' configures dansguardian 2.10.1.1 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/dansguardian]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types:
--build=BUILD configure for building on BUILD [guessed]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-static-zlib[=no]
Enable static linking of zlib
--enable-pcre[=yes] Enable support for the PCRE library
--enable-segv-backtrace[=no]
Enable logging a backtrace when a segmentation fault
occurs
--enable-lfs[=yes] Enable large file support on 32 bit systems
--enable-orig-ip[=no] Enable support for checking the client's original
destination IP address against HTTP request details
when deployed as a transparent proxy (US-CERT
VU#435052). Currently only works on Linux.
--enable-clamav[=no] Enable support for the libClamAV content scanner.
Please note that the ClamD-compatible scanner is
always built, and is preferable to this plugin for
most usage scenarios.
--enable-clamd[=no] Enable support for the ClamD content scanner
--enable-icap[=no] Enable support for ICAP AV server content scanner
--enable-kavd[=no] Enable support for the Kaspersky AV daemon content
scanner
--enable-commandline[=no]
Enable support for command-line content scanners
--enable-fancydm[=yes] Enable support for the fancy download manager
--enable-trickledm[=no] Enable support for the trickle download manager
--enable-ntlm[=no] Enable support for the NTLM auth plugin
--enable-email[=no] Enable support for email reporting functionality
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-zlib[=NONE] non-standard search path for zlib library
--with-dgdebug[=off] switch on debug build mode
--with-proxyuser[=nobody]
name of proxy user
--with-proxygroup[=nobody]
name of proxy group
--with-piddir[=PREFIX/LOCALSTATEDIR/run]
path for pid file
--with-logdir[=PREFIX/LOCALSTATEDIR/log/dansguardian]
path for log files
--with-libiconv[=NONE] Specify search path on a system which requires an
external iconv library (only used in conjunction
with NTLM auth plugin).
--with-sysconfsubdir[=dansguardian]
subdirectory under sysconfdir in which to place
config files
Some influential environment variables:
CXX C++ compiler command
CXXFLAGS C++ compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CC C compiler command
CFLAGS C compiler flags
CPP C preprocessor
CXXCPP C++ preprocessor
PKG_CONFIG path to pkg-config utility
PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
PCRE_LIBS linker flags for PCRE, overriding pkg-config
CLAMAV_CFLAGS
C compiler flags for CLAMAV, overriding pkg-config
CLAMAV_LIBS linker flags for CLAMAV, overriding pkg-config
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Próbowałem z "--with-zlib[=NONE] non-standard search path for zlib library" ale skutek żaden.
APU2 @ OpenWrt 18.06-SNAPSHOT, r7852-7ac6044632