Re: [Users] REDHAT compil Freeswan

From: Danny Retel (redhatguru_at_chello.nl)
Date: Thu Oct 31 2002 - 18:08:46 CET


On Wed, 2002-10-30 at 21:38, Sam Sgro wrote:
> I would like to hear details of the error.
>
> As well, the RedHat kernel sources ship with the kernel definition being
> "2.4.18-17.7.xcustom". RedHat's modutils upgrade now requires that your
> modules have the exact same kernel version as the one you are currently
> running; 2.4.18-17.7.xcustom doesn't match 2.4.18-17.7.x.
>
> We've had 1.99 on the burner for quite a bit now, with a number of fixes
> aimed at RedHat users. Sorry about the delay, but we've been sidetracked by
> some technical issues, that may or may not result in changes to the code
> base. Tomorrow, perhaps?
>
> I can make a few RPMs from the 1.99 candidate for this kernel version, if that
> would be of interest.
>
> - --
> Sam Sgro
> sam_at_freeswan.org

First of all, RPMs for 2.4.18-17.7.x would be excellent since I have no
VPN gateway anymore and I can't get freeswan to compile without errors,
regardless what version of freeswan I'm trying. All the version give the
same error. Tried it with ipsec compiled as a module and ipsec compiled
as part of the kernel.

Procedure used:

1. Changed top level Makefile and deleted the xcustom bit.

2. cd to the /usr/src/freeswan directory. make insert, make program

3. cd to /usr/src/linux

4. make menuconfig. change the networking options to load ipsec.

5. make dep clean zImage. The compile fails at the 'make zImage' with
the following error:

make -C ipsec
make[2]: Entering directory `/usr/src/linux-2.4.18-17.7.x/net/ipsec'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-17.7.x/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -DIPCOMP_PREFIX -I../../include
-I/usr/src/linux-2.4.18-17.7.x/include -I../../lib/zlib -Wall -Werror
-Wpointer-arith -Wstrict-prototypes -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
-DKBUILD_BASENAME=ipsec_init -c -o ipsec_init.o ipsec_init.c
cc1: warnings being treated as errors
In file included from
/usr/src/linux-2.4.18-17.7.x/include/linux/skbuff.h:27,
                 from
/usr/src/linux-2.4.18-17.7.x/include/linux/netdevice.h:147,
                 from ipsec_init.c:39:
/usr/src/linux-2.4.18-17.7.x/include/linux/highmem.h: In function
`bh_kmap':
/usr/src/linux-2.4.18-17.7.x/include/linux/highmem.h:20: warning:
pointer of type `void *' used in arithmetic
make[2]: *** [ipsec_init.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.18-17.7.x/net/ipsec'
make[1]: *** [_subdir_ipsec] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-17.7.x/net'
make: *** [_dir_net] Error 2

Now I've done maybe 20 installs from source (with other kernels) without
problems in the past. This is the first time it fails using the
described procedure above.

cheers,

-danny

_______________________________________________
Users mailing list
Users_at_lists.freeswan.org
http://lists.freeswan.org/mailman/listinfo/users



This archive was generated by hypermail 2.1.5 : Fri Nov 01 2002 - 05:20:36 CET