On Fri, Feb 07, 2003 at 08:34:56AM -0800, Rodney Thayer wrote:
>At 03:58 PM 2/6/2003 -0700, you wrote:
>>I got a fresh copy of linux-2.4.20 from kernel.org and attempted to apply
>>the
>>bridge-nf-0.0.10-against-2.4.20.diff patch. There were two errors (see
>>below).
>
>...
>
>I saw this too, you have to apply the ebtables patch first.
>
>Not sure why starting with .10 you need ebtables...
I'm glad everything is working fine for everyone else. :-)
The need for the bridge-nf patch came up for me when the bridging
firewall I'm building failed to catch packets with iptables. This
discussion was relieving, but while the patch goes okay, I can't
configure. Here are my steps, corrections welcome!
$ gcc --version
2.95.4
$ tar xjf ../linux-2.4.20.tar.bz2
$ cat ../ebtables-v2.0.003_vs_2.4.20.diff | patch -p0
... no errors ...
$ cat ../bridge-nf-0.0.10-against-2.4.20.diff | patch -p0
... no errors ...
$ cd linux-2.4.20
$ make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/stg/linux-2.4.20/scripts/lxdialog'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE
-DCURSES_LOC="<ncurses.h>" -c -o checklist.o checklist.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE
-DCURSES_LOC="<ncurses.h>" -c -o menubox.o menubox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE
-DCURSES_LOC="<ncurses.h>" -c -o textbox.o textbox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE
-DCURSES_LOC="<ncurses.h>" -c -o yesno.o yesno.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE
-DCURSES_LOC="<ncurses.h>" -c -o inputbox.o inputbox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE
-DCURSES_LOC="<ncurses.h>" -c -o util.o util.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE
-DCURSES_LOC="<ncurses.h>" -c -o lxdialog.o lxdialog.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE
-DCURSES_LOC="<ncurses.h>" -c -o msgbox.o msgbox.c
gcc -o lxdialog checklist.o menubox.o textbox.o yesno.o inputbox.o util.o lxdialog.o
msgbox.o -lncurses
make[1]: Leaving directory `/usr/src/stg/linux-2.4.20/scripts/lxdialog'
/bin/sh scripts/Menuconfig arch/i386/config.in
Using defaults found in arch/i386/defconfig
Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 29880 Segmentation
fault awk "$1"
Awk died with error code 139. Giving up.
make: *** [menuconfig] Error 1
The end of "strace make menuconfig" is below... It looks to me as if
something does not mix with the default config and the patches:
wait4(-1, Using defaults found in arch/i386/defconfig
Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 30016 Segmentation
fault awk "$1"
Awk died with error code 139. Giving up.
How are other people making this work?
// George
stat64("arch/i386/RCS", 0xbfffdb2c) = -1 ENOENT (No such file or directory)
stat64("arch/i386/SCCS", 0xbfffdb2c) = -1 ENOENT (No such file or directory)
stat64("menuconfig", 0xbfffdf2c) = -1 ENOENT (No such file or directory)
stat64("include/linux/version.h", {st_mode=S_IFREG|0640, st_size=126, ...}) = 0
stat64("symlinks", 0xbfffdf2c) = -1 ENOENT (No such file or directory)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40014000
write(1, "rm -f include/asm\n", 18rm -f include/asm
) = 18
pipe([3, 4]) = 0
close(4) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork() = 29995
--- SIGCHLD (Child exited) ---
sigreturn() = ? (mask now [HUP INT QUIT TERM XCPU XFSZ])
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 29995
write(1, "( cd include ; ln -sf asm-i386 a"..., 36( cd include ; ln -sf asm-i386 asm)
) = 36
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork() = 29996
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 29996
--- SIGCHLD (Child exited) ---
sigreturn() = ? (mask now [])
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork() = 29999
--- SIGCHLD (Child exited) ---
sigreturn() = ? (mask now [HUP INT QUIT TERM XCPU XFSZ])
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 29999
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat64("symlinks", 0xbfffdedc) = -1 ENOENT (No such file or directory)
write(1, "make -C scripts/lxdialog all\n", 29make -C scripts/lxdialog all
) = 29
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork(make[1]: Entering directory `/usr/src/stg/linux-2.4.20/scripts/lxdialog'
) = 30000
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, make[1]: Leaving directory `/usr/src/stg/linux-2.4.20/scripts/lxdialog'
[WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 30000
--- SIGCHLD (Child exited) ---
sigreturn() = ? (mask now [])
write(1, "/bin/sh scripts/Menuconfig arch/"..., 47/bin/sh scripts/Menuconfig
arch/i386/config.in
) = 47
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
vfork() = 30010
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
wait4(-1, Using defaults found in arch/i386/defconfig
Preparing scripts: functions, parsingscripts/Menuconfig: line 1: 30016 Segmentation
fault awk "$1"
Awk died with error code 139. Giving up.
[WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 30010
--- SIGCHLD (Child exited) ---
sigreturn() = ? (mask now [])
write(2, "make: ", 6make: ) = 6
write(2, "*** [menuconfig] Error 1", 24*** [menuconfig] Error 1) = 24
write(2, "\n", 1
) = 1
rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM XCPU XFSZ], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
chdir("/usr/src/stg/linux-2.4.20") = 0
munmap(0x40014000, 4096) = 0
_exit(2) = ?
--
GEORGE GEORGALIS, System Admin/Architect cell: 347-451-8229
Security Services, Web, Mail, mailto:[EMAIL PROTECTED]
Multimedia, DB, DNS and Metrics. http://www.galis.org/george
_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge