[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel compilation problem with Freeswan patch

        Hi again,

        As suggested by Ben, I upgraded my Debian version to testing. I 
installed the 2.4.21 source kernel version.
        First, to run menuconfig, I renamed gcc to gcc.another and created 
a link from gcc to gcc-3.3. But I still can´t compile, here are the erros:

Saving your kernel configuration...

make[1]: Leaving directory `/usr/src/kernel-source-2.4.21'
/usr/bin/make -f ./debian/rules dummy_do_dep
make[1]: Entering directory `/usr/src/kernel-source-2.4.21'
/usr/bin/make    \
                                 ARCH=sparc64  dep
make[2]: Entering directory `/usr/src/kernel-source-2.4.21'
/usr/bin/make -C arch/sparc64/kernel check_asm
make[3]: Entering directory 
gcc -E -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -P tmp.c -o 
/bin/sh ./check_asm.sh -data task tmp.i check_asm_data.c
/bin/sh ./check_asm.sh -data mm tmp.i check_asm_data.c
/bin/sh ./check_asm.sh -data thread tmp.i check_asm_data.c
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -m64 
-mcmodel=medlow -ffixed-g4 -S -o check_asm_data.s check_asm_data.c
/bin/sh ./check_asm.sh -ints check_asm_data.s check_asm.c
/bin/sh ./check_asm.sh -printf task tmp.i check_asm.c
/bin/sh ./check_asm.sh -printf mm tmp.i check_asm.c
/bin/sh ./check_asm.sh -printf thread tmp.i check_asm.c
gcc -o check_asm check_asm.c
check_asm.c:312: error: field name not in record or union initializer
check_asm.c:312: error: (near initialization for `check_asm_data')
check_asm.c:313: warning: initialization makes integer from pointer 
without a cast
make[3]: *** [check_asm] Error 1
make[3]: Leaving directory 
make[2]: *** [check_asm] Error 2
make[2]: Leaving directory `/usr/src/kernel-source-2.4.21'
make[1]: *** [dummy_do_dep] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.21'
make: *** [stamp-kernel-configure] Error 2

        Thanks in advance for the help.

Carlos Emir Mantovani Macedo
Suporte Técnico
Tecnologia Bancária S.A.
+55 11 3244-8400 R. 8817

On Fri, Dec 05, 2003 at 03:05:43PM -0300, Carlos Emir M. Macedo wrote:
>         Hi,
>         First, I'd like to thanks Leith Stevens for the help with my 
> console. I didn't fix it yet, because I can't compile the kernel, as 
> follows...
>         Second, I'm trying to compile my 2.4.18 kernel with Freeswan 
> patch. I followed the instructions of 
> http://www.thing.dyndns.org/debian/wifivpn.htm to compile it with 
> support. As the kernel compiles, it looks like the compilation enters in 

> an infinite loop. The module is des_enc.c and the execution line is:
> sparc64-linux-gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.18/include 
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
> -fno-strict-aliasing -fno-common -m64 -pipe -mno-fpu -mcpu=ultrasparc 
> -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 
> -Wa,--undeclared-regs  -D__KERNEL__ 
> -I/usr/src/kernel-source-2.4.18/include  -c -o des_enc.o des_enc.c
>         Is this a bug concerning with sparc64? Am I doing something 
>         I think the problem is at the ipsec config, that follows:

First off, I'd use a newer kernel, and second off use gcc-3.3 in
sarge/sid. The problem you are having sounds like a bug in egcs64, which
isn't supported anymore after woody.

Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/

To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact 

Reply to: