Hi,
Yes there was a problem with dev utils
Code: Select all
lib64gcc-4.7-dev : Depends: lib64gcc1 (>= 1:4.7.3-4) but it is not going to be installed
Depends: libx32gcc1 (>= 1:4.7.3-4) but it is not going to be installed
Depends: lib64gomp1 (>= 4.7.3-4) but it is not going to be installed
Depends: libx32gomp1 (>= 4.7.3-4) but it is not going to be installed
Depends: lib64itm1 (>= 4.7.3-4) but it is not going to be installed
Depends: libx32itm1 (>= 4.7.3-4) but it is not going to be installed
Depends: lib64quadmath0 (>= 4.7.3-4) but it is not going to be installed
Depends: libx32quadmath0 (>= 4.7.3-4) but it is not going to be installed
libc6-dev-amd64 : Depends: libc6-amd64 (= 2.17-7) but it is not going to be installed
Recommends: gcc-multilib but it is not going to be installed
libc6-dev-x32 : Depends: libc6-x32 (= 2.17-7) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I run apt-get install
Code: Select all
The following extra packages will be installed:
gcc-4.7-multilib lib64gcc-4.7-dev lib64gcc1 lib64gomp1 lib64itm1 lib64quadmath0 libc6-amd64 libc6-dev-amd64 libc6-dev-x32 libc6-x32 libx32gcc-4.7-dev libx32gcc1 libx32gomp1 libx32itm1
libx32quadmath0
Suggested packages:
lib64mudflap0 libx32mudflap0
The following NEW packages will be installed:
gcc-4.7-multilib gcc-multilib git-core lib64gcc-4.7-dev lib64gcc1 lib64gomp1 lib64itm1 lib64quadmath0 libc6-amd64 libc6-dev-amd64 libc6-dev-x32 libc6-x32 libx32gcc-4.7-dev libx32gcc1 libx32gomp1
libx32itm1 libx32quadmath0
0 upgraded, 17 newly installed, 0 to remove and 44 not upgraded.
Need to get 14.5 MB/19.8 MB of archives.
After this operation, 47.3 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Err http://ftp.pl.debian.org/debian/ testing/main libc6-amd64 i386 2.17-7
404 Not Found [IP: 153.19.251.221 80]
Err http://ftp.pl.debian.org/debian/ testing/main libc6-dev-amd64 i386 2.17-7
404 Not Found [IP: 153.19.251.221 80]
Err http://ftp.pl.debian.org/debian/ testing/main libc6-x32 i386 2.17-7
404 Not Found [IP: 153.19.251.221 80]
Err http://ftp.pl.debian.org/debian/ testing/main libc6-dev-x32 i386 2.17-7
404 Not Found [IP: 153.19.251.221 80]
Failed to fetch http://ftp.pl.debian.org/debian/pool/main/e/eglibc/libc6-amd64_2.17-7_i386.deb 404 Not Found [IP: 153.19.251.221 80]
Failed to fetch http://ftp.pl.debian.org/debian/pool/main/e/eglibc/libc6-dev-amd64_2.17-7_i386.deb 404 Not Found [IP: 153.19.251.221 80]
Failed to fetch http://ftp.pl.debian.org/debian/pool/main/e/eglibc/libc6-x32_2.17-7_i386.deb 404 Not Found [IP: 153.19.251.221 80]
Failed to fetch http://ftp.pl.debian.org/debian/pool/main/e/eglibc/libc6-dev-x32_2.17-7_i386.deb 404 Not Found [IP: 153.19.251.221 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I am investigating, and I have installed all required
Code: Select all
/media/proc/test/gargoyle/dev-utils# ./debian_install_build_deps.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
flex is already the newest version.
g++ is already the newest version.
gawk is already the newest version.
gcc-multilib is already the newest version.
automake is already the newest version.
bison is already the newest version.
build-essential is already the newest version.
curl is already the newest version.
git-core is already the newest version.
libncurses5-dev is already the newest version.
subversion is already the newest version.
vim is already the newest version.
wget is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 142 not upgraded.
root@root:/media/proc/test/gargoyle/dev-utils#
iptables are not pached
I am comletly sure that there is a problem in integrate_netfilter_modules.sh
in section
Code: Select all
if [ "$patch_kernel" = 1 ] ; then
target_name=$(cat .config | egrep "CONFIG_TARGET_([^_]+)=y" | sed 's/^.*_//g' | sed 's/=y$//g' )
result
target_name=$(cat .config | egrep "CONFIG_TARGET_([^_]+)=y" | sed 's/^.*_//g' | sed 's/=y$//g' ) && echo $target_name
ramips OPTIONS
next section
compile@root:/media/proc/test/gargoyle/custom-src$ test_names=$(cat .config | egrep "CONFIG_TARGET_.*=y" | sed 's/CONFIG_TARGET_//g' | sed 's/_.*$//g' )
compile@root:/media/proc/test/gargoyle/custom-src$
result
echo $test_names
ramips=y ramips ramips ROOTFS ROOTFS OPTIONS=y PREINIT PREINIT INIT
compile@root:/media/proc/test/gargoyle/custom-src$
Result from run full script
Code: Select all
sh -x ../netfilter-match-modules/integrate_netfilter_modules.sh /media/proc/test/gargoyle/custom-src /media/proc/test/gargoyle/netfilter-match-modules 1 1
+ openwrt_buildroot_dir=/media/proc/test/gargoyle/custom-src
+ module_dir=/media/proc/test/gargoyle/netfilter-match-modules
+ patch_openwrt=1
+ patch_kernel=1
+ '[' -z 1 ']'
+ '[' -z 1 ']'
+ '[' -z /media/proc/test/gargoyle/custom-src ']'
+ '[' -z /media/proc/test/gargoyle/netfilter-match-modules ']'
+ '[' '!' -e /media/proc/test/gargoyle/custom-src/.config ']'
+ new_module_dirs=
++ ls /media/proc/test/gargoyle/netfilter-match-modules
+ new_module_list='bandwidth
integrate_netfilter_modules.sh
integrate_netfilter_modules.sh~
timerange
webmon
weburl'
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/bandwidth ']'
++ cat /media/proc/test/gargoyle/netfilter-match-modules/bandwidth/name
+ new_name=bandwidth
+ '[' -n bandwidth ']'
+ new_module_dirs='bandwidth '
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/integrate_netfilter_modules.sh ']'
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/integrate_netfilter_modules.sh~ ']'
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/timerange ']'
++ cat /media/proc/test/gargoyle/netfilter-match-modules/timerange/name
+ new_name=timerange
+ '[' -n timerange ']'
+ new_module_dirs='timerange bandwidth '
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/webmon ']'
++ cat /media/proc/test/gargoyle/netfilter-match-modules/webmon/name
+ new_name=webmon
+ '[' -n webmon ']'
+ new_module_dirs='webmon timerange bandwidth '
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/weburl ']'
++ cat /media/proc/test/gargoyle/netfilter-match-modules/weburl/name
+ new_name=weburl
+ '[' -n weburl ']'
+ new_module_dirs='weburl webmon timerange bandwidth '
+ '[' -z 'weburl webmon timerange bandwidth ' ']'
++ pwd
+ exec_dir=/media/proc/test/gargoyle/custom-src
+ cd /media/proc/test/gargoyle/custom-src
++ pwd
+ openwrt_buildroot_dir=/media/proc/test/gargoyle/custom-src
+ cd /media/proc/test/gargoyle/custom-src
+ cd /media/proc/test/gargoyle/netfilter-match-modules
++ pwd
+ module_dir=/media/proc/test/gargoyle/netfilter-match-modules
+ cd /media/proc/test/gargoyle/custom-src
+ cd /media/proc/test/gargoyle/custom-src
+ mkdir -p nf-patch-build
+ rm -rf nf-patch-build/iptables.new nf-patch-build/iptables.orig nf-patch-build/iptables-patch-dir nf-patch-build/Makefile
+ '[' '!' -d dl ']'
+ '[' 1 = 1 ']'
++ sed 's/^.*_//g'
++ sed 's/=y$//g'
++ cat .config
++ egrep 'CONFIG_TARGET_([^_]+)=y'
+ target_name='ramips
OPTIONS'
+ '[' -z 'ramips
OPTIONS' ']'
++ cat target/linux/ramips OPTIONS/Makefile
++ grep 'BOARD.*:='
cat: target/linux/ramips: Is a directory
cat: OPTIONS/Makefile: No such file or directory
+ board_var=
++ grep 'KERNEL.*:='
++ cat target/linux/ramips OPTIONS/Makefile
cat: target/linux/ramips: Is a directory
cat: OPTIONS/Makefile: No such file or directory
+ kernel_var=
++ grep 'LINUX_VERSION.*:='
++ cat target/linux/ramips OPTIONS/Makefile
cat: target/linux/ramips: Is a directory
cat: OPTIONS/Makefile: No such file or directory
+ linux_ver_var=
++ printf '\n\n\n'
+ defines=
+ cat
+ printf '\n'
+ cat
+ echo TOPDIR:=..
+ echo 'SCRIPT_DIR:=$(TOPDIR)/scripts'
+ echo 'DL_DIR:=$(TOPDIR)/dl'
+ sed s/=/:=/g
+ egrep 'CONFIG_LINUX_.*=y' .config
++ cat package/iptables/Makefile
++ egrep -n 'include.*package.mk'
++ sed 's/:.*$//g'
+ package_include_line_num=30
+ head -n 30 package/iptables/Makefile
+ awk ' { if( ( $0 !~ /^include/ ) && ($0 !~ /^#/ )){ print $0 ; }} '
+ echo all:
+ echo ' if [ ! -e "$(DL_DIR)/$(PKG_SOURCE)" ] ; then $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) ; fi ; '
+ echo ' cp $(DL_DIR)/$(PKG_SOURCE) . '
+ echo ' tar xjf $(PKG_SOURCE)'
+ echo ' rm *.bz2'
+ echo ' mv iptables* iptables'
+ echo ' $(SCRIPT_DIR)/patch-kernel.sh iptables $(TOPDIR)/package/iptables/patches/'
+ echo ' echo $(TOPDIR)/package/iptables/patches/ > iptables-patch-dir'
+ cd nf-patch-build
+ '[' 1 = 1 ']'
+ mv linux-download-make Makefile
+ make
if [ ! -e "../dl/linux-.tar.bz2" ] ; then ../scripts/download.pl ../dl linux-.tar.bz2 x @KERNEL/linux/kernel/v. ; fi ;
cp ../dl/linux-.tar.bz2 .
rm -rf linux linux-
tar xjf linux-.tar.bz2
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
make: *** [all] Error 2
+ mv linux linux.orig
mv: cannot stat ‘linux’: No such file or directory
+ cp -r linux.orig linux.new
cp: cannot stat ‘linux.orig’: No such file or directory
+ mv iptables-download-make Makefile
+ make
if [ ! -e "../dl/iptables-1.4.10.tar.bz2" ] ; then ../scripts/download.pl ../dl iptables-1.4.10.tar.bz2 f382fe693f0b59d87bd47bea65eca198 http://www.netfilter.org/projects/iptables/files ftp://ftp.be.netfilter.org/pub/netfilter/iptables/ ftp://ftp.de.netfilter.org/pub/netfilter/iptables/ ftp://ftp.no.netfilter.org/pub/netfilter/iptables/ ; fi ;
cp ../dl/iptables-1.4.10.tar.bz2 .
tar xjf iptables-1.4.10.tar.bz2
rm *.bz2
mv iptables* iptables
../scripts/patch-kernel.sh iptables ../package/iptables/patches/
Applying ../package/iptables/patches//002-layer7_2.22.patch using plaintext:
patching file extensions/libxt_layer7.c
Applying ../package/iptables/patches//009-table-alignment.patch using plaintext:
patching file libiptc/libiptc.c
Applying ../package/iptables/patches//010-multiport-linux-2.4-compat.patch using plaintext:
patching file extensions/libxt_multiport.c
Applying ../package/iptables/patches//011-recent-add-reap.patch using plaintext:
patching file extensions/libxt_recent.c
patching file extensions/libxt_recent.man
patching file include/linux/netfilter/xt_recent.h
Applying ../package/iptables/patches//020-iptables-disable-modprobe.patch using plaintext:
patching file xtables.c
Applying ../package/iptables/patches//030-no-libnfnetlink.patch using plaintext:
patching file configure
patching file configure.ac
Applying ../package/iptables/patches//100-bash-location.patch using plaintext:
patching file autogen.sh
patching file iptables-apply
Applying ../package/iptables/patches//110-linux_3.2_compat.patch using plaintext:
patching file include/linux/types.h
Applying ../package/iptables/patches//200-configurable_builtin.patch using plaintext:
patching file extensions/GNUmakefile.in
Applying ../package/iptables/patches//300-imq.patch using plaintext:
patching file extensions/libxt_IMQ.c
patching file extensions/libxt_IMQ.man
patching file include/linux/netfilter/xt_IMQ.h
echo ../package/iptables/patches/ > iptables-patch-dir
+ mv iptables iptables.orig
+ cp -r iptables.orig iptables.new
++ cat generic-config-file
cat: generic-config-file: No such file or directory
+ generic_config_file=
++ cat generic-patch-dir
cat: generic-patch-dir: No such file or directory
+ generic_patch_dir=
++ cat config-file
cat: config-file: No such file or directory
+ config_file=
++ cat patch-dir
cat: patch-dir: No such file or directory
+ patch_dir=
++ cat iptables-patch-dir
+ iptables_patch_dir=../package/iptables/patches/
+ mkdir -p ''
mkdir: cannot create directory ‘’: No such file or directory
+ mkdir -p ../package/iptables/patches/
+ mkdir -p ''
mkdir: cannot create directory ‘’: No such file or directory
+ for new_d in '$new_module_dirs'
+ new_d=/media/proc/test/gargoyle/netfilter-match-modules/weburl
++ cat /media/proc/test/gargoyle/netfilter-match-modules/weburl/name
+ new_name=weburl
++ echo weburl
++ tr '[:lower:]' '[:upper:]'
+ upper_name=WEBURL
++ echo weburl
++ tr '[:upper:]' '[:lower:]'
+ lower_name=weburl
+ echo 'found WEBURL module, patching...'
found WEBURL module, patching...
+ '[' 1 = 1 ']'
+ cp -r /media/proc/test/gargoyle/netfilter-match-modules/weburl/module/ipt_weburl.c /media/proc/test/gargoyle/netfilter-match-modules/weburl/module/weburl_deps linux.new/net/ipv4/netfilter/
cp: target ‘linux.new/net/ipv4/netfilter/’ is not a directory
+ cp -r /media/proc/test/gargoyle/netfilter-match-modules/weburl/header/ipt_weburl.h linux.new/include/linux/netfilter_ipv4/
cp: cannot create regular file ‘linux.new/include/linux/netfilter_ipv4/’: No such file or directory
++ sed 's/:.*$//g'
++ cat linux.new/net/ipv4/netfilter/Makefile
++ egrep -n '#.*[Mm][Aa][Tt][Cc][Hh]'
cat: linux.new/net/ipv4/netfilter/Makefile: No such file or directory
+ match_comment_line_num=
+ config_line='obj-$(CONFIG_IP_NF_MATCH_WEBURL) += ipt_weburl.o'
+ insert_lines_at '' 'obj-$(CONFIG_IP_NF_MATCH_WEBURL) += ipt_weburl.o' linux.new/net/ipv4/netfilter/Makefile 1
+ insert_after=
+ lines='obj-$(CONFIG_IP_NF_MATCH_WEBURL) += ipt_weburl.o'
+ file=linux.new/net/ipv4/netfilter/Makefile
+ default_end=1
++ sed 's/ .*$//g'
++ wc -l
++ cat linux.new/net/ipv4/netfilter/Makefile
cat: linux.new/net/ipv4/netfilter/Makefile: No such file or directory
+ file_length=0
+ '[' -z '' ']'
+ '[' 1 = 0 ']'
+ =1
../netfilter-match-modules/integrate_netfilter_modules.sh: line 13: =1: command not found
../netfilter-match-modules/integrate_netfilter_modules.sh: line 16: 0 - : syntax error: operand expected (error token is "- ")
That pach script does not predict that option for ramips in kernel modules when is set to =Y
the option is
CONFIG_TARGET_OPTIONS=Y
it founds 2 lines and because of that crashed every time
when you mark in "Advanced configuration option (for developers) the star that line is set in .config for =Y
after remark it for empty the build spedup option inside still set for =Y
When you mark that the patch for iptables crashing
There is a bug in the script - should be corrected - I lost one week for find it.
Regards
Robert
PS
And finall error in .config
'PACKAGE_plugin-gargoyle-webcam' refer to undefined symbol 'PACKAGE_gargoyle-mjpg-streamer'
that is not block - but probably something is wrong in packahges (there is a build mentioned by Eric)