[Swan] build error on CentOS 6.4

Pavel Kopchyk pkopchyk at gmail.com
Wed Mar 13 18:37:13 EET 2013


Thanks it works!


Remained only non-critical (and todo) warnings:

** snip **
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/lib/libswan/alg_info.c:715:2:
warning: #warning paul check and redo me

/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/lib/libipsecconf/parser.y:
conflicts: 2 shift/reduce, 4 reduce/reduce
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/lib/libipsecconf/parser.y:
conflicts: 2 shift/reduce, 4 reduce/reduce

/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/plutoalg.c:478:2:
warning: #warning todo: needs to handle ikev2 now as well -

/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/ikev2_parent.c:2432:2:
warning: #warning check msgid code here
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/spdb_v2_struct.c:1061:2:
warning: #warning gotmatch is always true - this code needs to be verified
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/spdb_v2_struct.c:1365:2:
warning: #warning gotmatch is always true - this code needs to be verified

/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/kernel_netlink.c:
In function 'netlink_acquire':
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/kernel_netlink.c:1292:
warning: format '%lu' expects type 'long unsigned int', but argument 2 has
type 'unsigned int'
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/kernel_netlink.c:1293:
warning: format '%lu' expects type 'long unsigned int', but argument 2 has
type 'unsigned int'
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/kernel_netlink.c:1294:
warning: format '%lu' expects type 'long unsigned int', but argument 2 has
type 'unsigned int'
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/kernel_netlink.c:1312:
warning: format '%lu' expects type 'long unsigned int', but argument 2 has
type 'int'
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/kernel_netlink.c:1327:
warning: format '%lu' expects type 'long unsigned int', but argument 2 has
type 'int'
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/kernel_netlink.c:1332:
warning: format '%lu' expects type 'long unsigned int', but argument 3 has
type 'int'

/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/crypt_dh.c:
In function 'calc_dh_shared':
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/crypt_dh.c:166:
warning: format '%lu' expects type 'long unsigned int', but argument 2 has
type 'unsigned int'

/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/spdb_v1_struct.c:
In function 'parse_secctx_attr':
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/spdb_v1_struct.c:104:
warning: format '%lu' expects type 'long unsigned int', but argument 3 has
type 'unsigned int'
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/spdb_v1_struct.c:
In function 'parse_ipsec_transform':
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/spdb_v1_struct.c:1670:
warning: suggest parentheses around comparison in operand of '&'
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/spdb_v1_struct.c:1727:
warning: comparison between signed and unsigned integer expressions
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/spdb_v1_struct.c:1727:
warning: signed and unsigned type in conditional expression

/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/xauth.c: In
function 'get_internal_addresses':
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/xauth.c:302:
warning: unused variable 'buftest'

/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/addresspool.c:230:
warning: 'free_remembered_addresspools' defined but not used
/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/programs/pluto/addresspool.c:42:
warning: 'delete_lease_list' defined but not used
** snip **


And another problem is if build KLIPS:

** snip **
/usr/bin/make -C /lib/modules/2.6.32-358.0.1.el6.i386/build
BUILDDIR=/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/BUILD.i686
SUBDIRS=/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/BUILD.i686
MODULE_DEF_INCLUDE=/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/packaging/linus/config-all.h
MODULE_DEFCONFIG=/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/linux/net/ipsec/defconfig
MODULE_EXTRA_INCLUDE= ARCH=i386 V= modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.32-358.0.1.el6.i386/build: No such file or
directory. Stop.
make: Leaving an unknown directory
make[1]: *** [module26] Error 2
make[1]: Leaving directory
`/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git'
make: *** [module] Error 2
make: Leaving directory `/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git'
** snip **

===
$ ls -alh /lib/modules/2.6.32-358.0.1.el6.i686/
total 3.4M
drwxr-xr-x 7 root root 4.0K Mar 11 08:38 .
dr-xr-xr-x. 3 root root 4.0K Mar 11 17:57 ..
lrwxrwxrwx 1 root root 48 Mar 11 08:36 build ->
../../../usr/src/kernels/2.6.32-358.0.1.el6.i686


And if manually change "ARCH=i386" to "ARCH=i686":

** snip **
/usr/bin/make -C /lib/modules/2.6.32-358.0.1.el6.i686/build
BUILDDIR=/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/BUILD.i686
SUBDIRS=/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/BUILD.i686
MODULE_DEF_INCLUDE=/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/packaging/linus/config-all.h
MODULE_DEFCONFIG=/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git/linux/net/ipsec/defconfig
MODULE_EXTRA_INCLUDE= ARCH=i686 V= modules
make[2]: Entering directory `/usr/src/kernels/2.6.32-358.0.1.el6.i686'
Makefile:558: /usr/src/kernels/2.6.32-358.0.1.el6.i686/arch/i686/Makefile:
No such file or directory
make[2]: *** No rule to make target
`/usr/src/kernels/2.6.32-358.0.1.el6.i686/arch/i686/Makefile'. Stop.
make[2]: Leaving directory `/usr/src/kernels/2.6.32-358.0.1.el6.i686'
make[1]: *** [module26] Error 2
make[1]: Leaving directory
`/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git'
make: *** [module] Error 2
make: Leaving directory `/home/buildtest/rpmbuild/BUILD/libreswan-3.1_git'
** snip **

$ ls -alh /usr/src/kernels/2.6.32-358.0.1.el6.i686/arch/
total 104K
drwxr-xr-x 25 root root 4.0K Mar 11 08:36 .
drwxr-xr-x 22 root root 4.0K Mar 11 08:36 ..
drwxr-xr-x 8 root root 4.0K Mar 11 08:36 alpha
drwxr-xr-x 77 root root 4.0K Mar 11 08:36 arm
drwxr-xr-x 9 root root 4.0K Mar 11 08:36 avr32
drwxr-xr-x 15 root root 4.0K Mar 11 08:36 blackfin
drwxr-xr-x 8 root root 4.0K Mar 11 08:36 cris
drwxr-xr-x 7 root root 4.0K Mar 11 08:36 frv
drwxr-xr-x 7 root root 4.0K Mar 11 08:36 h8300
drwxr-xr-x 14 root root 4.0K Mar 11 08:36 ia64
-rw-r--r-- 1 root root 3.8K Feb 27 04:47 Kconfig
drwxr-xr-x 8 root root 4.0K Mar 11 08:36 m32r
drwxr-xr-x 20 root root 4.0K Mar 11 08:36 m68k
drwxr-xr-x 6 root root 4.0K Mar 11 08:36 m68knommu
drwxr-xr-x 7 root root 4.0K Mar 11 08:36 microblaze
drwxr-xr-x 36 root root 4.0K Mar 11 08:36 mips
drwxr-xr-x 10 root root 4.0K Mar 11 08:36 mn10300
drwxr-xr-x 8 root root 4.0K Mar 11 08:36 parisc
drwxr-xr-x 12 root root 4.0K Mar 11 08:36 powerpc
drwxr-xr-x 12 root root 4.0K Mar 11 08:36 s390
drwxr-xr-x 6 root root 4.0K Mar 11 08:36 score
drwxr-xr-x 13 root root 4.0K Mar 11 08:36 sh
drwxr-xr-x 9 root root 4.0K Mar 11 08:36 sparc
drwxr-xr-x 10 root root 4.0K Mar 11 08:36 um
drwxr-xr-x 19 root root 4.0K Mar 11 08:36 x86
drwxr-xr-x 8 root root 4.0K Mar 11 08:36 xtensa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20130313/6b9dd691/attachment.html>


More information about the Swan mailing list