[Openswan dev] IPsec.ko compilation fails on linux 2.6.35 (fwd) (debian)

Harald Jenny harald at a-little-linux-box.at
Thu Nov 11 11:50:35 EST 2010


On Thu, Nov 11, 2010 at 11:45:34AM -0500, Simon Deziel wrote:
> On 11/11/2010 11:30 AM, Harald Jenny wrote:
> > On Wed, Nov 10, 2010 at 05:58:26PM -0500, Paul Wouters wrote:
> >>
> >> Any Debian/ubuntu people that could shed light on this error?
> > 
> > Strange - according to http://packages.ubuntu.com/maverick/amd64/linux-headers-2.6.35-22-generic/filelist:
> > 
> > /usr/src/linux-headers-2.6.35-22-generic/include/generated/bounds.h
> > 
> > Could you reinstall the package and look if the file is then there?
> 
> Effectively, reinstalling linux-headers-2.6.35-22-generic fixed the
> issue. Sorry for the false alarm but *generated*/bounds.h led me in the
> wrong direction.

No problem, here generated also means it was generated but from source during
building headers debian package.

> 
> Thank you,
> Simon

Pleasure if I could help you
Harald

> 
> >>
> >> Paul
> > 
> > Kind regards
> > Harald
> > 
> >> DKMS make.log for openswan-2.6.32~dr3 for kernel 2.6.35-22-generic (x86_64)
> >> Tue Nov  9 22:48:51 EST 2010
> >> make: Entering directory `/var/lib/dkms/openswan/2.6.32~dr3/build'
> >> Building module for a 2.6 kernel
> >> make[1]: Entering directory `/var/lib/dkms/openswan/2.6.32~dr3/build'
> >> make[2]: Entering directory `/var/lib/dkms/openswan/2.6.32~dr3/build'
> >> mkdir -p /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26
> >> echo ln -s -f /var/lib/dkms/openswan/2.6.32~dr3/build/linux/net/ipsec/des/*.S /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26
> >> ln -s -f /var/lib/dkms/openswan/2.6.32~dr3/build/linux/net/ipsec/des/dx86unix.S /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26
> >> (rm -f /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/des; mkdir -p /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/des && cd /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/des && ln -s -f /var/lib/dkms/openswan/2.6.32~dr3/build/linux/net/ipsec/des/* . && ln -s -f Makefile.fs2_6 Makefile)
> >> (rm -f /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/aes; mkdir -p /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/aes && cd /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/aes && ln -s -f /var/lib/dkms/openswan/2.6.32~dr3/build/linux/net/ipsec/aes/* . && ln -s -f Makefile.fs2_6 Makefile)
> >> mkdir -p /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/aes
> >> cp /var/lib/dkms/openswan/2.6.32~dr3/build/packaging/makefiles/module26.make /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/Makefile
> >> echo "# "                        >> /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/Makefile
> >> echo "# Local Variables: "       >> /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/Makefile
> >> echo "# compile-command: \"make -C /var/lib/dkms/openswan/2.6.32~dr3/build ARCH=x86_64 KERNELSRC=/lib/modules/2.6.35-22-generic/build MOD26BUILDDIR=/var/lib/dkms/openswan/2.6.32~dr3/build/modobj26 module26\""         >> /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/Makefile
> >> echo "# End: "       >> /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/Makefile
> >> ln -s -f /var/lib/dkms/openswan/2.6.32~dr3/build/linux/net/ipsec/match*.S /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26
> >> make[2]: Leaving directory `/var/lib/dkms/openswan/2.6.32~dr3/build'
> >> make -C /lib/modules/2.6.35-22-generic/build  BUILDDIR=/var/lib/dkms/openswan/2.6.32~dr3/build/modobj26 SUBDIRS=/var/lib/dkms/openswan/2.6.32~dr3/build/modobj26 MODULE_DEF_INCLUDE=/var/lib/dkms/openswan/2.6.32~dr3/build/packaging/linus/config-all.h MODULE_DEFCONFIG=/var/lib/dkms/openswan/2.6.32~dr3/build/linux/net/ipsec/defconfig  MODULE_EXTRA_INCLUDE= ARCH=x86_64 V= modules
> >> make[2]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
> >> ln -s -f /var/lib/dkms/openswan/2.6.32~dr3/build/linux/net/ipsec/ipsec_init.c /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/ipsec_init.c
> >>   CC [M]  /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/ipsec_init.o
> >> In file included from include/linux/gfp.h:4,
> >>                  from include/linux/kmod.h:22,
> >>                  from include/linux/module.h:13,
> >>                  from /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/ipsec_init.c:25:
> >> include/linux/mmzone.h:18:30: error: generated/bounds.h: No such file or directory
> >> include/linux/mmzone.h:252:5: warning: "MAX_NR_ZONES" is not defined
> >> include/linux/mmzone.h:254:7: warning: "MAX_NR_ZONES" is not defined
> >> include/linux/mmzone.h:256:7: warning: "MAX_NR_ZONES" is not defined
> >> In file included from include/linux/gfp.h:4,
> >>                  from include/linux/kmod.h:22,
> >>                  from include/linux/module.h:13,
> >>                  from /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/ipsec_init.c:25:
> >> include/linux/mmzone.h:294: error: ???MAX_NR_ZONES??? undeclared here (not in a function)
> >> In file included from include/linux/scatterlist.h:6,
> >>                  from include/linux/dma-mapping.h:7,
> >>                  from include/linux/dmaengine.h:26,
> >>                  from include/linux/skbuff.h:30,
> >>                  from include/linux/ip.h:108,
> >>                  from /var/lib/dkms/openswan/2.6.32~dr3/build/linux/include/openswan/ipsec_kversion.h:273,
> >>                  from /var/lib/dkms/openswan/2.6.32~dr3/build/linux/include/openswan/ipsec_param.h:33,
> >>                  from /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/ipsec_init.c:28:
> >> include/linux/mm.h:461:63: warning: "NR_PAGEFLAGS" is not defined
> >> include/linux/mm.h:509:62: warning: "NR_PAGEFLAGS" is not defined
> >> In file included from /usr/src/linux-headers-2.6.35-22-generic/arch/x86/include/asm/unistd_64.h:696,
> >>                  from /usr/src/linux-headers-2.6.35-22-generic/arch/x86/include/asm/unistd.h:5,
> >>                  from include/linux/unistd.h:7,
> >>                  from /usr/src/linux-headers-2.6.35-22-generic/arch/x86/include/asm/seccomp_64.h:4,
> >>                  from /usr/src/linux-headers-2.6.35-22-generic/arch/x86/include/asm/seccomp.h:4,
> >>                  from include/linux/seccomp.h:8,
> >>                  from include/linux/sched.h:80,
> >>                  from include/linux/security.h:33,
> >>                  from include/net/sock.h:53,
> >>                  from include/linux/tcp.h:209,
> >>                  from include/linux/ipv6.h:221,
> >>                  from include/net/protocol.h:29,
> >>                  from /var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/ipsec_init.c:45:
> >> /usr/src/linux-headers-2.6.35-22-generic/arch/x86/include/asm/asm-offsets.h:1:35: error: generated/asm-offsets.h: No such file or directory
> >> make[3]: *** [/var/lib/dkms/openswan/2.6.32~dr3/build/modobj26/ipsec_init.o] Error 1
> >> make[2]: *** [_module_/var/lib/dkms/openswan/2.6.32~dr3/build/modobj26] Error 2
> >> make[2]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
> >> make[1]: *** [module26] Error 2
> >> make[1]: Leaving directory `/var/lib/dkms/openswan/2.6.32~dr3/build'
> >> make: *** [module] Error 2
> >> make: Leaving directory `/var/lib/dkms/openswan/2.6.32~dr3/build'
> >> €€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
>> >  €€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
> €€
> >  €€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
> >> _______________________________________________
> >> Dev mailing list
> >> Dev at openswan.org
> >> http://lists.openswan.org/mailman/listinfo/dev
> > 
> > _______________________________________________
> > Dev mailing list
> > Dev at openswan.org
> > http://lists.openswan.org/mailman/listinfo/dev
> 
> _______________________________________________
> Dev mailing list
> Dev at openswan.org
> http://lists.openswan.org/mailman/listinfo/dev


More information about the Dev mailing list