[Openswan Users] ipsec_proc.o compile problem...
AirWalker
airwalker at netfabrik.hu
Mon Nov 28 20:59:07 CET 2005
Hi there,
I've tried to complie the openswan module under debian (sid), but i've
got the following error list:
airdesign1:/usr/src/modules/openswan# debian/rules binary-modules
sed -e "s!\$KVERS!`sed -n -e '/UTS_RELEASE/s/^[^"]*"\([^"]*\)".*$/\1/p'
/usr/src/linux/include/linux/version.h`!g; s!\$KSRC!/usr/src/linux!;
s!\$KEMAIL!!; s!\$KMAINT!!; s!\$KDREV!"Custom.1.00"!; s!\$DEBDATE!h, 28
nov 2005 20:46:36 +0000!" debian/control.in > debian/control
dh_testdir
/usr/bin/make module KERNELSRC=/usr/src/linux
OPENSWANSRCDIR=/usr/src/modules/openswan
make[1]: Entering directory `/usr/src/modules/openswan'
WARNING: Kernel source /usr/src/linux has already been patched with
openswan-2, out of tree build might fail!
Building module for a 2.6 kernel
make[2]: Entering directory `/usr/src/modules/openswan'
make[3]: Entering directory `/usr/src/modules/openswan'
make[3]: `/usr/src/modules/openswan/modobj26/Makefile' is up to date.
make[3]: Leaving directory `/usr/src/modules/openswan'
/usr/bin/make -C /usr/src/linux
BUILDDIR=/usr/src/modules/openswan/modobj26
SUBDIRS=/usr/src/modules/openswan/modobj26
MODULE_DEF_INCLUDE=/usr/src/modules/openswan/packaging/linus/config-all.h
MODULE_DEFCONFIG=/usr/src/modules/openswan/linux/net/ipsec/defconfig
MODULE_EXTRA_INCLUDE= ARCH=i386 modules
make[3]: Entering directory `/usr/src/linux-source-2.6.14'
WARNING: Symbol version dump /usr/src/linux-source-2.6.14/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /usr/src/modules/openswan/modobj26/ipsec_proc.o
/usr/src/modules/openswan/modobj26/ipsec_proc.c:827: error: syntax error
before 'read_proc_t'
/usr/src/modules/openswan/modobj26/ipsec_proc.c:827: warning: no
semicolon at end of struct or union
/usr/src/modules/openswan/modobj26/ipsec_proc.c:828: warning: type
defaults to 'int' in declaration of 'writething'
/usr/src/modules/openswan/modobj26/ipsec_proc.c:828: warning: data
definition has no type or storage class
/usr/src/modules/openswan/modobj26/ipsec_proc.c:830: error: syntax error
before '}' token
/usr/src/modules/openswan/modobj26/ipsec_proc.c:831: error: array type
has incomplete element type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:833: error:
'proc_net_ipsec_dir' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:833: error:
'ipsec_klipsdebug_get_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:835: error:
'proc_eroute_dir' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:836: error:
'ipsec_eroute_get_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:837: error:
'proc_spi_dir' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:838: error:
'ipsec_spi_get_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:839: error:
'proc_spigrp_dir' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:840: error:
'ipsec_spigrp_get_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:841: error:
'proc_birth_dir' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:842: error:
'ipsec_birth_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:842: error:
'ipsec_birth_set' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:844: error:
'ipsec_tncfg_get_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:845: error:
'ipsec_xform_get_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:846: error:
'proc_stats_dir' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:847: error:
'ipsec_stats_get_int_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:849: error:
'ipsec_version_get_info' undeclared here (not in a function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:866:2: error: #error You
must have PROC_FS built in to use KLIPS
/usr/src/modules/openswan/modobj26/ipsec_proc.c: In function
'ipsec_proc_init':
/usr/src/modules/openswan/modobj26/ipsec_proc.c:901: warning: implicit
declaration of function 'proc_mkdir'
/usr/src/modules/openswan/modobj26/ipsec_proc.c:901: error: 'proc_net'
undeclared (first use in this function)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:901: error: (Each
undeclared identifier is reported only once
/usr/src/modules/openswan/modobj26/ipsec_proc.c:901: error: for each
function it appears in.)
/usr/src/modules/openswan/modobj26/ipsec_proc.c:911: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:912: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:914: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:914: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:914: warning: assignment
makes pointer from integer without a cast
/usr/src/modules/openswan/modobj26/ipsec_proc.c:915: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:917: warning: implicit
declaration of function 'create_proc_entry'
/usr/src/modules/openswan/modobj26/ipsec_proc.c:917: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:917: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:917: warning: assignment
makes pointer from integer without a cast
/usr/src/modules/openswan/modobj26/ipsec_proc.c:920: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:920: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:921: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:921: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:922: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:922: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:924: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:929: error: increment of
pointer to unknown structure
/usr/src/modules/openswan/modobj26/ipsec_proc.c:929: error: arithmetic
on pointer to an incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:934: warning: implicit
declaration of function 'proc_symlink'
/usr/src/modules/openswan/modobj26/ipsec_proc.c: In function
'ipsec_proc_cleanup':
/usr/src/modules/openswan/modobj26/ipsec_proc.c:983: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:984: error: increment of
pointer to unknown structure
/usr/src/modules/openswan/modobj26/ipsec_proc.c:984: error: arithmetic
on pointer to an incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:986: error: decrement of
pointer to unknown structure
/usr/src/modules/openswan/modobj26/ipsec_proc.c:986: error: arithmetic
on pointer to an incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:989: warning: implicit
declaration of function 'remove_proc_entry'
/usr/src/modules/openswan/modobj26/ipsec_proc.c:989: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:989: error:
dereferencing pointer to incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:990: error: decrement of
pointer to unknown structure
/usr/src/modules/openswan/modobj26/ipsec_proc.c:990: error: arithmetic
on pointer to an incomplete type
/usr/src/modules/openswan/modobj26/ipsec_proc.c:996: error: 'proc_net'
undeclared (first use in this function)
make[4]: *** [/usr/src/modules/openswan/modobj26/ipsec_proc.o] Error 1
make[3]: *** [_module_/usr/src/modules/openswan/modobj26] Error 2
make[3]: Leaving directory `/usr/src/linux-source-2.6.14'
make[2]: *** [module26] Error 2
make[2]: Leaving directory `/usr/src/modules/openswan'
make[1]: *** [module] Error 2
make[1]: Leaving directory `/usr/src/modules/openswan'
make: *** [build-stamp] Error 2
Any idea?
I don't understand the line: "WARNING: Kernel source /usr/src/linux has
already been patched with openswan-2, out of tree build might fail!"
because i didn't upgraded the kernel...
And so the same with line: "WARNING: Symbol version dump
/usr/src/linux-source-2.6.14/Module.symvers is missing; modules will
have no dependencies and modversions." because the original
linux-source-2.6.14.tar.bz2 doesn't contain any Module.symvers....
Is there anybody who had done this complie on debian sid before?
Please help!
Best regards:
AirWalker
More information about the Users
mailing list