Squid Verzeichnisrechte diverse Fragen ...

Wen ich mich richtig erinnere, funktioniert epoll zumindest auf einigen Boxen nicht richtig. Das das configure Programm das nicht selbst testen kann, musst Du die Antwort dafür vorgeben.
 
Obwohl die Patches nicht richtig funktionieren:
Code:
applying patch file make/squid/patches/100-cross_configure.patch
patching file configure
Hunk #1 succeeded at 45699 with fuzz 2.
Hunk #2 succeeded at 45901 with fuzz 2.
Hunk #3 succeeded at 45978 with fuzz 2.
Hunk #4 succeeded at 46066 with fuzz 2.
Hunk #5 succeeded at 46148 with fuzz 2.
----------------------------------------------------------------------
applying patch file make/squid/patches/110-cross_compile.patch
patching file src/ctype.c
patching file src/Makefile.in
Hunk #1 succeeded at 5521 (offset 38 lines).
----------------------------------------------------------------------
applying patch file make/squid/patches/130_configure_cflags.patch
patching file configure
Hunk #1 succeeded at 21544 (offset 322 lines).
kann ich für bzw. mit "target-mipsel_uClibc-0.9.31.1", squid ohne Probleme compilieren:
Code:
...
make[3]: Leaving directory `/home/gm/myfreetz/freetz7561/freetz-trunk/source/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24/tools'
make[2]: Leaving directory `/home/gm/myfreetz/freetz7561/freetz-trunk/source/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24/tools'
make[2]: Entering directory `/home/gm/myfreetz/freetz7561/freetz-trunk/source/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24'
Build Successful.
make[2]: Leaving directory `/home/gm/myfreetz/freetz7561/freetz-trunk/source/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24'
make[1]: Leaving directory `/home/gm/myfreetz/freetz7561/freetz-trunk/source/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24'
mkdir -p packages/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24/root/usr/sbin/; cp source/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24/src/squid packages/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24/root/usr/sbin/squid; /home/gm/myfreetz/freetz7561/freetz-trunk/toolchain/build/mipsel_gcc-4.5.3_uClibc-0.9.31.1/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-strip --remove-section={.comment,.note,.pdr} packages/target-mipsel_uClibc-0.9.31.1/squid-3.0.STABLE24/root/usr/sbin/squid;
[COLOR=red][B]done[/B][/COLOR].
 
Zuletzt bearbeitet:
Wenn Patches mit offset oder fuzz passen, dann heißt das nicht, dass sie nicht richtig funktionieren. In den meisten Fällen ist das okay.

@Ralf
Und gerade weil epoll nicht geht haben wir den Wert doch bestimmt "vorbelegt" bzw. in unserer config.mipsel stehen.

Gruß
Oliver
 
Ich vermute eher, dass der Ersteller des Patches sich nicht darum gesorgt hat, da es wie gesagt kein Fehler ist. (http://freetz.org/changeset/4367)

Gruß
Oliver
 
Und gerade weil epoll nicht geht haben wir den Wert doch bestimmt "vorbelegt" bzw. in unserer config.mipsel stehen.
Daran kann ich mich auch erinnern, aber offensichtlich passiert das hier so nicht.

Bei mir kommt übrigens auch
Code:
checking for epoll_ctl... (cached) no
und nicht "yes", und configure läuft durch.

Was kommt denn bei
Code:
grep epoll include/site/freetz
 
Hier der Auszug:

grep epoll include/site/freetz
# disable all epoll functions as they are known to cause problems on some boxes (probably a kernel bug, affected versions 2.6.13.x/2.6.19.x)
ac_cv_header_sys_epoll_h=no
ac_cv_epoll=no
ac_cv_epoll_works=no
ac_cv_epoll_create=no
ac_cv_func_epoll_create=no
ac_cv_epoll_create1=no
ac_cv_func_epoll_create1=no
ac_cv_epoll_ctl=no
ac_cv_func_epoll_ctl=no
ac_cv_epoll_wait=no
ac_cv_func_epoll_wait=no

Ich habe heute nochmal den Squid getestet, das caching funktioniert nur sauber mit einer Squid 2.7 Version.
Demnach müsste ich die sources von der 2.7 kompilieren.

Ist das ein grosser Akt das Makefile für freetz anzupassen, bzw. gab es mal 2.7 sources?
 
Versuch mal ob es funktioniert, wenn Du in der squid.mk, folgenden Eintrag (an der richtigen Stelle) machst:
Code:
$(PKG)_CONFIGURE_ENV += ac_cv_header_sys_epoll_h=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_works=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_create=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_create=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_create1=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_create1=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_ctl=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_ctl=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_wait=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_wait=no
 
In der freetz-trunk/make/squid/squid.mk gibt es die Conf_ENV Variablen nicht .. habe sie dann hinzugefügt...

Leider unverändert ..

$(call PKG_INIT_BIN, 3.0.STABLE24)
$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.bz2
$(PKG)_SOURCE_MD5:=325c8977b64397666bf538d54bb6f128
$(PKG)_SITE:=http://www.squid-cache.org/Versions/v$(firstword $(subst ., ,$($(PKG)_VERSION)))/$(firstword $(subst ., ,$($(PKG)_VERSION))).$(word 2,$(subst ., ,$($(PKG)_VERSION)))
$(PKG)_BINARY:=$($(PKG)_DIR)/src/squid
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/squid

$(PKG)_DEPENDS_ON := $(STDCXXLIB)
$(PKG)_REBUILD_SUBOPTS += FREETZ_STDCXXLIB

$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_SQUID_TRANSPARENT

$(PKG)_CONFIGURE_OPTIONS += $(if $(FREETZ_PACKAGE_SQUID_TRANSPARENT),--enable-linux-netfilter,--disable-linux-netfilter)

$(PKG_SOURCE_DOWNLOAD)
$(PKG_UNPACKED)
$(PKG_CONFIGURED_CONFIGURE)
$(PKG)_CONFIGURE_ENV += ac_cv_header_sys_epoll_h=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_works=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_create=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_create=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_create1=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_create1=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_ctl=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_ctl=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_wait=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_wait=no
$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
$(SUBMAKE) -C $(SQUID_DIR)

$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
$(INSTALL_BINARY_STRIP)

Andere Frage bevor wir hier noch weiter machen:

Kann ich die Version 3.0 auf diese Version umschreiben?
wget http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.gz

Ich brauche die Sourcen ja eigentlich nur mit einem Crosscompiler durchjagen und entsprechend auf die FB kopieren ....
Gibt es noch alternative Crosscompiler für die 7320 CPU Architektur?
 
In der freetz-trunk/make/squid/squid.mk gibt es die Conf_ENV Variablen nicht .. habe sie dann hinzugefügt...

Leider unverändert ..
...
$(PKG_CONFIGURED_CONFIGURE)
$(PKG)_CONFIGURE_ENV += ac_cv_header_sys_epoll_h=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_works=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_create=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_create=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_create1=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_create1=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_ctl=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_ctl=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_wait=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_wait=no

$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
$(SUBMAKE) -C $(SQUID_DIR)
...
Ist das die richtige Stelle für das Einfügen der Conf_ENV Variablen?

EDIT:

An deiner Stelle, hätte ich mit:
Code:
find make -iname '*.mk' -exec grep -H "(PKG)_CONFIGURE_ENV" {} \;
geschaut, wo man die ENV-Variablen einfügen soll.;)
 
Zuletzt bearbeitet:
Hm,

da gibt es einen Haufen aber keinen Squid
Code:
make/mtr/mtr.mk:$(PKG)_CONFIGURE_ENV += ac_cv_lib_resolv_res_mkquery=yes
make/iptables/iptables.mk:$(PKG)_CONFIGURE_ENV += AR="$(TARGET_AR)"
make/iptables/iptables.mk:$(PKG)_CONFIGURE_ENV += RANLIB="$(TARGET_RANLIB)"
make/vim/vim.mk:$(PKG)_CONFIGURE_ENV += vim_cv_getcwd_broken=no
make/vim/vim.mk:$(PKG)_CONFIGURE_ENV += vim_cv_memmove_handles_overlap=yes
make/vim/vim.mk:$(PKG)_CONFIGURE_ENV += vim_cv_stat_ignores_slash=yes
make/vim/vim.mk:$(PKG)_CONFIGURE_ENV += vim_cv_tgetent=zero
make/vim/vim.mk:$(PKG)_CONFIGURE_ENV += vim_cv_terminfo=yes
make/vim/vim.mk:$(PKG)_CONFIGURE_ENV += vim_cv_toupper_broken=no
make/vim/vim.mk:$(PKG)_CONFIGURE_ENV += vim_cv_tty_group=root
make/vim/vim.mk:$(PKG)_CONFIGURE_ENV += vim_cv_tty_mode=0620
make/gnu-make/gnu-make.mk:$(PKG)_CONFIGURE_ENV += gnu_make_cv_lib_elf_elf_begin=no
make/gnu-make/gnu-make.mk:$(PKG)_CONFIGURE_ENV += make_cv_sys_gnu_glob=no
make/gnu-make/gnu-make.mk:$(PKG)_CONFIGURE_ENV += GLOBINC='-Iglob/'
make/gnu-make/gnu-make.mk:$(PKG)_CONFIGURE_ENV += GLOBLIB=glob/libglob.a
make/gdb/gdb.mk:$(PKG)_CONFIGURE_ENV += bash_cv_func_strcoll_broken=no
make/gdb/gdb.mk:$(PKG)_CONFIGURE_ENV += bash_cv_must_reinstall_sighandlers=no
make/gdb/gdb.mk:$(PKG)_CONFIGURE_ENV += bash_cv_func_sigsetjmp=present
make/gdb/gdb.mk:$(PKG)_CONFIGURE_ENV += bash_cv_have_mbstate_t=yes
make/gdb/gdb.mk:$(PKG)_CONFIGURE_ENV += CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)"
make/gdb/gdb.mk:$(PKG)_CONFIGURE_ENV += CPPFLAGS_FOR_TARGET="-I$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include"
make/gdb/gdb.mk:$(PKG)_CONFIGURE_ENV += LDFLAGS_FOR_TARGET="-L$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib"
make/git/git.mk:$(PKG)_CONFIGURE_ENV += ac_cv_c_c99_format=yes
make/git/git.mk:$(PKG)_CONFIGURE_ENV += ac_cv_fread_reads_directories=no
make/git/git.mk:$(PKG)_CONFIGURE_ENV += ac_cv_snprintf_returns_bogus=no
make/ncftp/ncftp.mk:$(PKG)_CONFIGURE_ENV += wi_cv_shared_libgcc=yes
make/ncftp/ncftp.mk:$(PKG)_CONFIGURE_ENV += wi_cv_unix_domain_sockets=yes
make/ncftp/ncftp.mk:$(PKG)_CONFIGURE_ENV += wi_cv_look_for_resolv=no
make/ncftp/ncftp.mk:$(PKG)_CONFIGURE_ENV += wi_cv_snprintf_terminates=yes
make/ncftp/ncftp.mk:$(PKG)_CONFIGURE_ENV += wi_cv_snprintf_returns_ptr=no
make/subversion/subversion.mk:$(PKG)_CONFIGURE_ENV += $(foreach ac_variable,$($(PKG)_AC_VARIABLES),subversion_cv_$(ac_variable)=none)
make/stunnel/stunnel.mk:$(PKG)_CONFIGURE_ENV += OPENSSL_ALTERNATIVE=cyassl
make/stunnel/stunnel.mk:$(PKG)_CONFIGURE_ENV += ac_cv_file__dev_ptmx=no
make/stunnel/stunnel.mk:$(PKG)_CONFIGURE_ENV += ac_cv_file__dev_ptc=no
make/stunnel/stunnel.mk:$(PKG)_CONFIGURE_ENV += ac_cv_file__dev_urandom=yes
make/nmap/nmap.mk:$(PKG)_CONFIGURE_ENV += ac_cv_header_lua_h=$(if $(FREETZ_PACKAGE_NMAP_WITH_SHARED_LUA),yes,no)
make/nmap/nmap.mk:$(PKG)_CONFIGURE_ENV += LUAINCLUDE=-I"$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/lua"
make/apache/apache.mk:$(PKG)_CONFIGURE_ENV += CC="$(TARGET_CC)"
make/apache/apache.mk:$(PKG)_CONFIGURE_ENV += LD_SHLIB="$(TARGET_CC)"
make/apache/apache.mk:$(PKG)_CONFIGURE_ENV += CFLAGS="$(TARGET_CFLAGS)"
make/apache/apache.mk:$(PKG)_CONFIGURE_ENV += LDFLAGS="$(if $(FREETZ_PACKAGE_APACHE_STATIC),-static)"
make/apache/apache.mk:$(PKG)_CONFIGURE_ENV += EXTRA_LIBS="-ldl"
make/htop/htop.mk:$(PKG)_CONFIGURE_ENV += ac_cv_file__proc_stat=yes
make/htop/htop.mk:$(PKG)_CONFIGURE_ENV += ac_cv_file__proc_meminfo=yes
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += DEBUG="$(TARGET_CFLAGS)"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LSOF_CC="$(TARGET_CC)"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LSOF_AR="$(TARGET_AR) cr"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LSOF_RANLIB="$(TARGET_RANLIB)"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LSOF_CCV="$(FREETZ_TARGET_GCC_VERSION)"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LINUX_HASIPV6="$(LSOF_HASIPV6)"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LINUX_HASSELINUX="N"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LINUX_CLIB="-DGLIBCV=2"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LSOF_INCLUDE="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include"
make/lsof/lsof.mk:$(PKG)_CONFIGURE_ENV += LSOF_VSTR="$(FREETZ_KERNEL_VERSION)"
make/tmux/tmux.mk:$(PKG)_CONFIGURE_ENV += ac_cv_search_event_init="-lpthread -levent"
make/streamripper/streamripper.mk:$(PKG)_CONFIGURE_ENV += sr_disable_oggvorbis_support=yes
make/rrdtool/rrdtool.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_setpgrp_void=yes
make/rrdtool/rrdtool.mk:$(PKG)_CONFIGURE_ENV += rd_cv_ieee_works=yes
make/curl/curl.mk:$(PKG)_CONFIGURE_ENV += curl_cv_writable_argv=yes
make/sane-backends/sane-backends.mk:$(PKG)_CONFIGURE_ENV+=BACKENDS="$(SANE_BACKENDS)"
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ICONV_IN_LIBC_DIR="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr"
make/php/php.mk:$(PKG)_CONFIGURE_ENV += php_cv_sizeof_ssize_t=4
make/php/php.mk:$(PKG)_CONFIGURE_ENV += php_cv_sizeof_ptrdiff_t=4
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_c_bigendian_php=$(if $(FREETZ_TARGET_ARCH_BE),yes,no)
make/php/php.mk:$(PKG)_CONFIGURE_ENV += php_cv_sizeof_intmax_t=8
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_getaddrinfo=yes
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_c_stack_direction=-1
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_ebcdic=no
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_header_atomic_h=no
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_header_stdc=yes
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_memcmp_clean=no
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_utime_null=no
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_time_r_type=POSIX
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_what_readdir_r=POSIX
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_write_stdout=yes
make/php/php.mk:$(PKG)_CONFIGURE_ENV += ac_cv_lib_png_png_write_image=yes
make/php/php.mk:$(PKG)_CONFIGURE_ENV += cookie_io_functions_use_off64_t=yes
make/php/php.mk:$(PKG)_CONFIGURE_ENV += lt_cv_prog_gnu_ldcxx=yes
make/php/php.mk:$(PKG)_CONFIGURE_ENV += lt_cv_path_NM="$(TARGET_NM) -B"
make/nfs-utils/nfs-utils.mk:$(PKG)_CONFIGURE_ENV += ac_cv_type_getgroups=gid_t
make/nfs-utils/nfs-utils.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_getgroups_works=yes
make/nfs-utils/nfs-utils.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_stat_empty_string_bug=no
make/nfs-utils/nfs-utils.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_lstat_empty_string_bug=no
make/nfs-utils/nfs-utils.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_lstat_dereferences_slashed_symlink=no
make/libs/libevent/libevent.mk:$(PKG)_CONFIGURE_ENV += libeventheader_zlib_h=no
make/libs/openobex/openobex.mk:$(PKG)_CONFIGURE_ENV += $(foreach ac_variable,$($(PKG)_AC_VARIABLES),openobex_cv_$(ac_variable)=no)
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += CC="$(TARGET_CC)"
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += CFLAGS="$(TARGET_CFLAGS)"
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_prog_cc_ansi_proto=no
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_has__inline=yes
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_has__inline__=yes
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_hasinline=yes
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_sane_realloc=yes
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_va_copy=no
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv___va_copy=yes
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_va_val_copy=yes
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_rtldglobal_broken=no
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_uscore=no
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_func_pthread_mutex_trylock_posix=yes
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_func_pthread_cond_timedwait_posix=yes
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_sizeof_gmutex=24
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += glib_cv_byte_contents_gmutex="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += lt_cv_deplibs_check_method=pass_all
make/libs/glib/glib.mk:$(PKG)_CONFIGURE_ENV += lt_cv_path_NM="$(TARGET_NM) -B"
make/libs/zlib/zlib.mk:$(PKG)_CONFIGURE_ENV += CC="$(TARGET_CC)"
make/libs/zlib/zlib.mk:$(PKG)_CONFIGURE_ENV += CFLAGS="$(TARGET_CFLAGS)"
make/libs/zlib/zlib.mk:$(PKG)_CONFIGURE_ENV += AR="$(TARGET_AR)"
make/libs/zlib/zlib.mk:$(PKG)_CONFIGURE_ENV += RANLIB="$(TARGET_RANLIB)"
make/libs/zlib/zlib.mk:$(PKG)_CONFIGURE_ENV += NM="$(TARGET_NM)"
make/libs/zlib/zlib.mk:$(PKG)_CONFIGURE_ENV += CROSS_PREFIX="$(TARGET_CROSS)"
make/libs/zlib/zlib.mk:$(PKG)_CONFIGURE_ENV += prefix=/usr
make/libs/readline/readline.mk:$(PKG)_CONFIGURE_ENV += bash_cv_func_ctype_nonascii=no
make/libs/readline/readline.mk:$(PKG)_CONFIGURE_ENV += bash_cv_func_sigsetjmp=present
make/libs/readline/readline.mk:$(PKG)_CONFIGURE_ENV += bash_cv_func_strcoll_broken=no
make/libs/readline/readline.mk:$(PKG)_CONFIGURE_ENV += bash_cv_must_reinstall_sighandlers=no
make/libs/glib2/glib2.mk:$(PKG)_CONFIGURE_ENV += glib_cv_stack_grows=no
make/libs/glib2/glib2.mk:$(PKG)_CONFIGURE_ENV += glib_cv_uscore=no
make/libs/glib2/glib2.mk:$(PKG)_CONFIGURE_ENV += glib_cv_long_long_format=11
make/libs/glib2/glib2.mk:$(PKG)_CONFIGURE_ENV += glib_cv_have_strlcpy=yes
make/libs/glib2/glib2.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_mmap_fixed=yes
make/libs/glib2/glib2.mk:$(PKG)_CONFIGURE_ENV += glib_cv_pcre_has_unicode=yes
make/libs/js/js.mk:$(PKG)_CONFIGURE_ENV += ac_cv_va_copy=C99
make/libs/apr/apr.mk:$(PKG)_CONFIGURE_ENV += ac_cv_file__dev_zero=yes
make/libs/apr/apr.mk:$(PKG)_CONFIGURE_ENV += ac_cv_sizeof_struct_iovec=8
make/libs/apr/apr.mk:$(PKG)_CONFIGURE_ENV += apr_cv_process_shared_works=no
make/libs/apr/apr.mk:$(PKG)_CONFIGURE_ENV += apr_cv_mutex_robust_shared=no
make/libs/apr/apr.mk:$(PKG)_CONFIGURE_ENV += apr_cv_tcp_nodelay_with_cork=yes
make/libs/apr/apr.mk:$(PKG)_CONFIGURE_ENV += ac_cv_struct_rlimit=yes
make/libs/apr/apr.mk:$(PKG)_CONFIGURE_ENV += apr_cv_pthreads_lib=-lpthread
make/libs/popt/popt.mk:$(PKG)_CONFIGURE_ENV += ac_cv_va_copy=yes
make/libs/ncurses/ncurses.mk:$(PKG)_CONFIGURE_ENV += cf_cv_func_nanosleep=yes
make/libs/ncurses/ncurses.mk:$(PKG)_CONFIGURE_ENV += cf_cv_link_dataonly=yes
make/libs/ncurses/ncurses.mk:$(PKG)_CONFIGURE_ENV += cf_cv_type_of_bool='unsigned char'
make/libs/ncurses/ncurses.mk:$(PKG)_CONFIGURE_ENV += cf_cv_working_poll=no
make/libs/libpng/libpng.mk:$(PKG)_CONFIGURE_ENV += gl_cv_func_malloc_0_nonnull=yes
make/libs/libpng/libpng.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_strtod=yes
make/libs/libnet/libnet.mk:$(PKG)_CONFIGURE_ENV += ac_cv_libnet_endianess=$(if $(FREETZ_TARGET_ARCH_BE),big,lil)
make/libs/libnet/libnet.mk:$(PKG)_CONFIGURE_ENV += ac_cv_lbl_unaligned_fail=no
make/libs/libnet/libnet.mk:$(PKG)_CONFIGURE_ENV += libnet_cv_have_packet_socket=yes
make/libs/libnet/libnet.mk:$(PKG)_CONFIGURE_ENV += ac_cv_libnet_linux_procfs=yes
make/libs/libnet/libnet.mk:$(PKG)_CONFIGURE_ENV += CROSS_TOOLCHAIN_STAGING_DIR=$(TARGET_TOOLCHAIN_STAGING_DIR)
make/libs/apr-util/apr-util.mk:$(PKG)_CONFIGURE_ENV += ac_cv_file_dbd_apr_dbd_mysql_c=no
make/libs/apr-util/apr-util.mk:$(PKG)_CONFIGURE_ENV += APR_BUILD_DIR="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/share/apr-$(APR_UTIL_MAJOR_VERSION)/build"
make/libs/libdaemon/libdaemon.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_setpgrp_void=yes
make/libs/libelf/libelf.mk:$(PKG)_CONFIGURE_ENV += mr_cv_target_elf=yes
make/libs/libelf/libelf.mk:$(PKG)_CONFIGURE_ENV += libelf_cv_working_memmove=yes
make/libs/libelf/libelf.mk:$(PKG)_CONFIGURE_ENV += libelf_64bit=yes
make/libs/libelf/libelf.mk:$(PKG)_CONFIGURE_ENV += libelf_cv_struct_elf64_ehdr=yes
make/libs/libelf/libelf.mk:$(PKG)_CONFIGURE_ENV += libelf_cv_type_elf64_addr=no
make/libs/libelf/libelf.mk:$(PKG)_CONFIGURE_ENV += libelf_cv_struct_elf64_rel=yes
make/e2fsprogs/e2fsprogs.mk:$(PKG)_CONFIGURE_ENV += ac_cv_path_LDCONFIG=$(TARGET_LDCONFIG)
make/e2fsprogs/e2fsprogs.mk:$(PKG)_CONFIGURE_ENV += gt_cv_func_printf_posix=yes
make/e2fsprogs/e2fsprogs.mk:$(PKG)_CONFIGURE_ENV += gt_cv_int_divbyzero_sigfpe=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += ac_cv_rl_prefix="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr"
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += ac_cv_rl_version=6.2
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_dup2_broken=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_func_ctype_nonascii=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_func_sigsetjmp=present
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_func_strcoll_broken=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_getcwd_malloc=yes
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_getenv_redef=yes
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_job_control_missing=present
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_must_reinstall_sighandlers=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_opendir_not_robust=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_pgrp_pipe=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_printf_a_format=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_sys_named_pipes=present
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_sys_siglist=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_ulimit_maxfds=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_under_sys_siglist=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_unusable_rtsigs=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += bash_cv_wcontinued_broken=no
make/bash/bash.mk:$(PKG)_CONFIGURE_ENV += gt_cv_int_divbyzero_sigfpe=no
make/bluez-utils/bluez-utils.mk:$(PKG)_CONFIGURE_ENV += $(foreach ac_variable,$($(PKG)_AC_VARIABLES),bluez_utils_cv_$(ac_variable)=no)
make/bluez-utils/bluez-utils.mk:$(PKG)_CONFIGURE_ENV += bluez_utils_cv_prog_cc_stdc=no
make/inotify-tools/inotify-tools.mk:$(PKG)_CONFIGURE_ENV += LD="$(TARGET_LD)"
make/wol/wol.mk:$(PKG)_CONFIGURE_ENV := jm_cv_func_working_malloc=yes
make/tcpdump/tcpdump.mk:$(PKG)_CONFIGURE_ENV += td_cv_buggygetaddrinfo="no"
make/tcpdump/tcpdump.mk:$(PKG)_CONFIGURE_ENV += ac_cv_path_PCAP_CONFIG=$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/bin/pcap-config
make/mc/mc.mk:$(PKG)_CONFIGURE_ENV += mc_cv_have_zipinfo=yes
make/privoxy/privoxy.mk:$(PKG)_CONFIGURE_ENV += ac_cv_func_setpgrp_void=yes
make/screen/screen.mk:$(PKG)_CONFIGURE_ENV += $(foreach flag,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime,ac_cv_func_$(flag)=yes )
make/tinyproxy/tinyproxy.mk:$(PKG)_CONFIGURE_ENV += tinyproxy_cv_regex_broken=no
make/gnutls/gnutls.mk:$(PKG)_CONFIGURE_ENV += ac_cv_path_GAA=false
make/samba/samba.mk:$(PKG)_CONFIGURE_ENV += libreplace_cv_HAVE_IPV6=no
make/samba/samba.mk:$(PKG)_CONFIGURE_ENV += \
make/samba/samba.mk:$(PKG)_CONFIGURE_ENV += fu_cv_sys_stat_statfs2_bsize=yes
make/samba/samba.mk:$(PKG)_CONFIGURE_ENV += $(PKG)_fu_cv_sys_stat_statvfs=no
make/minidlna/minidlna.mk:$(PKG)_CONFIGURE_ENV := CROSS_TOOLCHAIN_SYSROOT="$(TARGET_TOOLCHAIN_STAGING_DIR)"
make/collectd/collectd.mk:$(PKG)_CONFIGURE_ENV += LIBLTDL_PREFIX="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr"
make/lighttpd/lighttpd.mk:$(PKG)_CONFIGURE_ENV += OPENSSL_ALTERNATIVE=cyassl
make/lighttpd/lighttpd.mk:$(PKG)_CONFIGURE_ENV += OPENSSL_ALTERNATIVE_EXTRALIBS="-lm -lz"
make/lighttpd/lighttpd.mk:$(PKG)_CONFIGURE_ENV += PCRE_LIB="-lpcre"
make/lighttpd/lighttpd.mk:$(PKG)_CONFIGURE_ENV += $(if $(FREETZ_PACKAGE_E2FSPROGS_STATIC),UUID_PIC_LIB=uuid_pic)
make/lighttpd/lighttpd.mk:$(PKG)_CONFIGURE_ENV += ac_cv_header_uuid_uuid_h=yes
make/ltrace/ltrace.mk:$(PKG)_CONFIGURE_ENV += LD="$(TARGET_LD)"
make/classpath/classpath.mk:$(PKG)_CONFIGURE_ENV += HAVE_INET6_I_KNOW_IT_BETTER=$(if $(FREETZ_TARGET_IPV6_SUPPORT),yes,no)
make/classpath/classpath.mk:$(PKG)_CONFIGURE_ENV += JAVAC=javac
make/bird/bird.mk:#$(PKG)_CONFIGURE_ENV += CFLAGS="$(TARGET_CFLAGS) -D_XOPEN_SOURCE=600"
make/bird/bird.mk:#$(PKG)_CONFIGURE_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -D_XOPEN_SOURCE=600"
make/bird/bird.mk:$(PKG)_CONFIGURE_ENV += bird_cv_c_endian=little-endian
make/tor/tor.mk:$(PKG)_CONFIGURE_ENV += CROSS_COMPILE="yes"
make/tor/tor.mk:$(PKG)_CONFIGURE_ENV += ac_cv_libevent_linker_option='(none)'
make/tor/tor.mk:$(PKG)_CONFIGURE_ENV += ac_cv_openssl_linker_option='(none)'
make/tor/tor.mk:$(PKG)_CONFIGURE_ENV += ac_cv_libevent_normal=yes
make/tor/tor.mk:$(PKG)_CONFIGURE_ENV += tor_cv_null_is_zero=yes
make/tor/tor.mk:$(PKG)_CONFIGURE_ENV += tor_cv_unaligned_ok=yes
make/tor/tor.mk:$(PKG)_CONFIGURE_ENV += tor_cv_time_t_signed=yes
make/util-linux-ng/util-linux-ng.mk:#$(PKG)_CONFIGURE_ENV += util_cv_syscall_ioprio_set=no
make/util-linux-ng/util-linux-ng.mk:#$(PKG)_CONFIGURE_ENV += util_cv_syscall_ioprio_get=no
make/util-linux-ng/util-linux-ng.mk:#$(PKG)_CONFIGURE_ENV += util_cv_syscall_fallocate=no
make/util-linux-ng/util-linux-ng.mk:#$(PKG)_CONFIGURE_ENV += util_cv_syscall_unshare=no
 
Zuletzt bearbeitet von einem Moderator:
Das es so nicht bei mir funktioniet ....?!?

Habe in den Sources 2.7 / 3.0 probiert

./configure --build=i386-linux-gnu --target=mipsel-unknown-linux-gnu --host=mipsel-unknown-linux-gnu./configure --build=i386-linux-gnu --target=mipsel-unknown-linux-gnu --host=mipsel-unknown-linux-gnu

Ist aber so richtig, oder


checking for epoll_ctl... yes
checking for crypt... yes
checking if epoll works... configure: error: cannot run test program while cross compiling

Warum geht das bei euch?
 
Ja, das hier:

cat squid.mk
$(call PKG_INIT_BIN, 3.0.STABLE24)
$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.bz2
$(PKG)_SOURCE_MD5:=325c8977b64397666bf538d54bb6f128
$(PKG)_SITE:=http://www.squid-cache.org/Versions/v$(firstword $(subst ., ,$($(PKG)_VERSION)))/$(firstword $(subst ., ,$($(PKG)_VERSION))).$(word 2,$(subst ., ,$($(PKG)_VERSION)))
$(PKG)_BINARY:=$($(PKG)_DIR)/src/squid
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/squid

$(PKG)_DEPENDS_ON := $(STDCXXLIB)
$(PKG)_REBUILD_SUBOPTS += FREETZ_STDCXXLIB

$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_SQUID_TRANSPARENT

$(PKG)_CONFIGURE_OPTIONS += $(if $(FREETZ_PACKAGE_SQUID_TRANSPARENT),--enable-linux-netfilter,--disable-linux-netfilter)

$(PKG_SOURCE_DOWNLOAD)
$(PKG_UNPACKED)
$(PKG_CONFIGURED_CONFIGURE)


$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
$(SUBMAKE) -C $(SQUID_DIR)

$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
$(INSTALL_BINARY_STRIP)

$(pkg):

$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)

$(pkg)-clean:
-$(SUBMAKE) -C $(SQUID_DIR) clean
$(RM) $(SQUID_DIR)/.configured

$(pkg)-uninstall:
$(RM) $(SQUID_TARGET_BINARY)

$(PKG_FINISH)
 
Benutze mal das hier:
Code:
$(call PKG_INIT_BIN, 3.0.STABLE24)
$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.bz2
$(PKG)_SOURCE_MD5:=325c8977b64397666bf538d54bb6f12 8
$(PKG)_SITE:=http://www.squid-cache.org/Versions/v$(firstword $(subst ., ,$($(PKG)_VERSION)))/$(firstword $(subst ., ,$($(PKG)_VERSION))).$(word 2,$(subst ., ,$($(PKG)_VERSION)))
$(PKG)_BINARY:=$($(PKG)_DIR)/src/squid
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/squid

$(PKG)_DEPENDS_ON := $(STDCXXLIB)
$(PKG)_REBUILD_SUBOPTS += FREETZ_STDCXXLIB

$(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_SQUID_TRANSPARENT

$(PKG)_CONFIGURE_ENV += ac_cv_header_sys_epoll_h=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_works=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_create=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_create=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_create1=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_create1=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_ctl=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_ctl=no
$(PKG)_CONFIGURE_ENV += ac_cv_epoll_wait=no
$(PKG)_CONFIGURE_ENV += ac_cv_func_epoll_wait=no
$(PKG)_CONFIGURE_OPTIONS += $(if $(FREETZ_PACKAGE_SQUID_TRANSPARENT),--enable-linux-netfilter,--disable-linux-netfilter)

$(PKG_SOURCE_DOWNLOAD)
$(PKG_UNPACKED)
$(PKG_CONFIGURED_CONFIGURE)


$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
$(SUBMAKE) -C $(SQUID_DIR)

$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
$(INSTALL_BINARY_STRIP)

$(pkg):

$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)

$(pkg)-clean:
-$(SUBMAKE) -C $(SQUID_DIR) clean
$(RM) $(SQUID_DIR)/.configured

$(pkg)-uninstall:
$(RM) $(SQUID_TARGET_BINARY)

$(PKG_FINISH)
nach einem "make squid-clean".
 
@sf3978: Du machst aber auch ein Geheimnis daraus! Eine Info, das alle $(PKG)_CONFIGURE_ENV vor das $(PKG_CONFIGURED_CONFIGURE) gehören, hätte wohl auch gereicht.
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.