[Openswan Users] Failed Hunk NAT-T patch

conn intel connintel at gmail.com
Fri Oct 20 09:55:49 EDT 2006


Hello friends,

After patching the kernel(2.6.8), if i try to compile the following error
appears.

-> I have also tried to disable all the crypto option in my .config file.
But after giving make command it will automatically takes it as Yes and
gives the same following message.
The changes made by me is also attached.
I have also tried to applied the patch at
http://lists.openswan.org/pipermail/users/2006-August/010266.html and the
next in thread. but it still giving me the same message as below.

Thank You.
Ankur

changes made in ,config file ::

#
# Cryptographic options
#
#CONFIG_CRYPTO=y
#CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_MD4 is not set
#CONFIG_CRYPTO_MD5=m
#CONFIG_CRYPTO_SHA1=m
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
#CONFIG_CRYPTO_DES=m
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_AES_586 is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_KHAZAD is not set
#CONFIG_CRYPTO_DEFLATE=y
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_TEST is not set



The Error Message received for both the cases ::

 CC      net/ipsec/ipsec_alg_cryptoapi.o
net/ipsec/ipsec_alg_cryptoapi.c:106: error: syntax error before "static"
net/ipsec/ipsec_alg_cryptoapi.c:107: error: syntax error before "static"
net/ipsec/ipsec_alg_cryptoapi.c:109: error: syntax error before "static"
net/ipsec/ipsec_alg_cryptoapi.c:109: error: redefinition of
`__param_str_debug_crypto'
net/ipsec/ipsec_alg_cryptoapi.c:105: error: `__param_str_debug_crypto'
previously defined here
net/ipsec/ipsec_alg_cryptoapi.c:109: error: redefinition of
`__param_debug_crypto'
net/ipsec/ipsec_alg_cryptoapi.c:105: error: `__param_debug_crypto'
previously defined here
net/ipsec/ipsec_alg_cryptoapi.c:131: error: invalid lvalue in unary `&'
net/ipsec/ipsec_alg_cryptoapi.c:131: error: initializer element is not
constant
net/ipsec/ipsec_alg_cryptoapi.c:131: error: (near initialization for
`__param_arr_des_ede1.num')
net/ipsec/ipsec_alg_cryptoapi.c:137: error: invalid lvalue in unary `&'
net/ipsec/ipsec_alg_cryptoapi.c:137: error: initializer element is not
constant
net/ipsec/ipsec_alg_cryptoapi.c:137: error: (near initialization for
`__param_arr_des_ede3.num')
net/ipsec/ipsec_alg_cryptoapi.c:138: error: invalid lvalue in unary `&'
net/ipsec/ipsec_alg_cryptoapi.c:138: error: initializer element is not
constant
net/ipsec/ipsec_alg_cryptoapi.c:138: error: (near initialization for
`__param_arr_aes.num')
net/ipsec/ipsec_alg_cryptoapi.c:139: error: invalid lvalue in unary `&'
net/ipsec/ipsec_alg_cryptoapi.c:139: error: initializer element is not
constant
net/ipsec/ipsec_alg_cryptoapi.c:139: error: (near initialization for
`__param_arr_blowfish.num')
net/ipsec/ipsec_alg_cryptoapi.c:140: error: invalid lvalue in unary `&'
net/ipsec/ipsec_alg_cryptoapi.c:140: error: initializer element is not
constant
net/ipsec/ipsec_alg_cryptoapi.c:140: error: (near initialization for
`__param_arr_cast.num')
net/ipsec/ipsec_alg_cryptoapi.c:141: error: invalid lvalue in unary `&'
net/ipsec/ipsec_alg_cryptoapi.c:141: error: initializer element is not
constant
net/ipsec/ipsec_alg_cryptoapi.c:141: error: (near initialization for
`__param_arr_serpent.num')
net/ipsec/ipsec_alg_cryptoapi.c:142: error: invalid lvalue in unary `&'
net/ipsec/ipsec_alg_cryptoapi.c:142: error: initializer element is not
constant
net/ipsec/ipsec_alg_cryptoapi.c:142: error: (near initialization for
`__param_arr_twofish.num')
net/ipsec/ipsec_alg_cryptoapi.c: In function `setup_cipher_list':
net/ipsec/ipsec_alg_cryptoapi.c:373: warning: assignment discards qualifiers
from pointer target type
{standard input}: Assembler messages:
{standard input}:58: Error: symbol `__param_str_debug_crypto' is already
defined
{standard input}:64: Error: symbol `__param_debug_crypto' is already defined
make[2]: *** [net/ipsec/ipsec_alg_cryptoapi.o] Error 1
make[1]: *** [net/ipsec] Error 2
make: *** [net] Error 2

On 10/20/06, conn intel <connintel at gmail.com> wrote:
>
> Hello friends,
>
> While applying the patch for NAT-T i found the following output. I want to
> know is there any problem with the failed hunk please ? or what should i
> have to do to apply patch successfully.
>
>
> debian:/usr/src/kernel-source-2.6.8# patch -Np1 -i
> /home/software/openswan/openswan-2.4.6.kernel-2.6-natt.patch
> patching file include/net/xfrmudp.h
> patching file net/ipv4/Kconfig
> Hunk #1 succeeded at 351 with fuzz 1.
> patching file net/ipv4/udp.c
> Hunk #1 FAILED at 108.
> Hunk #2 succeeded at 892 (offset -5 lines).
> Hunk #3 FAILED at 935.
> Hunk #4 succeeded at 949 (offset -5 lines).
> Hunk #5 succeeded at 968 (offset -5 lines).
> Hunk #6 succeeded at 981 (offset -5 lines).
> Hunk #7 succeeded at 1053 (offset -7 lines).
> Hunk #8 succeeded at 1153 (offset -4 lines).
> Hunk #9 succeeded at 1562 (offset -51 lines).
> 2 out of 9 hunks FAILED -- saving rejects to file net/ipv4/udp.c.rej
>
>
> Thank You.
>
> Ankur.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20061020/e13e20f6/attachment.html 


More information about the Users mailing list