patches/linux/2.4.26/130-linux-2.4.26-allow-gcc-3.4-arm-kernel.patch
author |
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> |
|
Sat Apr 26 21:31:05 2008 +0000 (2008-04-26) |
changeset 454 |
372b2f397baa |
permissions |
-rw-r--r-- |
Configure tsocks with a simple heuristic.
Consider the proxy has to be in a 'local' network. It means it is directly
reachable by the local machine, even if the local machine has to hop through
one or more gates to reach the proxy (often the case in enterprise networks
where class A 10.0.0.0/8 is in fact sub-divided into smaller networks, each
one of them in a different location, eg. 10.1.0.0/16 in a place, while
10.2.0.0/16 would be on the other side of the world). Not being in the same
subnet does not mean the proxy is not available.
So we will build a mask with at most high bits set, which defines a network
that has both the local machine and the proxy. Because a machine may have
more than one interface, build a mask for each of them, removing 127.0.0.1
which is added automagically by tsocks, and removing duplicate masks.
If all of this does not work, then it means the local machine can NOT in fact
reach the proxy, which in turn means the user mis-configured something (most
probably a typo...).
/trunk/scripts/crosstool.sh | 61 52 9 0 +++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 52 insertions(+), 9 deletions(-)
yann@402
|
1 |
Fixes
|
yann@402
|
2 |
semaphore.c:180:5: missing terminating " character
|
yann@402
|
3 |
semaphore.c:213:9: missing terminating " character
|
yann@402
|
4 |
make[1]: *** [semaphore.o] Error 1
|
yann@402
|
5 |
make[1]: Leaving directory `/home/dank/queue/jobdir.fast/crosstool-dev/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.2.5/linux-2.4.26/arch/arm/kernel'
|
yann@402
|
6 |
make: *** [_dir_arch/arm/kernel] Error 2
|
yann@402
|
7 |
|
yann@402
|
8 |
when building kernel.org 2.4.26 for arm with gcc-3.3.x
|
yann@402
|
9 |
(Note: one probably wants to apply ftp://ftp.arm.linux.org.uk/pub/armlinux/source/kernel-patches/v2.4/patch-2.4.26-vrs1.bz2
|
yann@402
|
10 |
instead of my patches when really building 2.4.26 for arm;
|
yann@402
|
11 |
my patches only include the bare minimum to get the vanilla kernel to compile.)
|
yann@402
|
12 |
|
yann@402
|
13 |
--- linux-2.4.26/arch/arm/kernel/semaphore.c.old Mon Mar 21 06:50:38 2005
|
yann@402
|
14 |
+++ linux-2.4.26/arch/arm/kernel/semaphore.c Mon Mar 21 06:50:55 2005
|
yann@402
|
15 |
@@ -193,7 +193,7 @@
|
yann@402
|
16 |
bl __down_interruptible \n\
|
yann@402
|
17 |
mov ip, r0 \n\
|
yann@402
|
18 |
ldmfd sp!, {r0 - r3, pc}^ \n\
|
yann@402
|
19 |
-
|
yann@402
|
20 |
+ \n\
|
yann@402
|
21 |
.align 5 \n\
|
yann@402
|
22 |
.globl __down_trylock_failed \n\
|
yann@402
|
23 |
__down_trylock_failed: \n\
|