[Openswan Users] Problems compiling ipsec.o
Dan Ferris
dan at usrsbin.com
Fri Jan 7 13:58:35 CET 2005
Howdy again,
I've decided to try and use openswan with klips so that I can get back
my ipsec interfaces :-)
However, I've run into a new problem:
make -C ipsec modules
make[2]: Entering directory `/usr/src/linux-2.4.28/net/ipsec'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_init -c -o
ipsec_init.o ipsec_init.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_sa -c -o
ipsec_sa.o ipsec_sa.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_radij -c -o
ipsec_radij.o ipsec_radij.c
ipsec_radij.c: In function `ipsec_makeroute':
ipsec_radij.c:267: warning: use of cast expressions as lvalues is deprecated
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=radij -c -o radij.o
radij.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_life -c -o
ipsec_life.o ipsec_life.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_proc -c -o
ipsec_proc.o ipsec_proc.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_tunnel -c -o
ipsec_tunnel.o ipsec_tunnel.c
ipsec_tunnel.c: In function `ipsec_tunnel_clear':
ipsec_tunnel.c:1371: warning: unused variable `name'
ipsec_tunnel.c: In function `ipsec_tunnel_cleanup_devices':
ipsec_tunnel.c:1800: warning: unused variable `name'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_xmit -c -o
ipsec_xmit.o ipsec_xmit.c
ipsec_xmit.c:116: warning: `zeroes' defined but not used
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_rcv -c -o
ipsec_rcv.o ipsec_rcv.c
ipsec_rcv.c: In function `ipsec_rcv':
ipsec_rcv.c:1412: warning: use of cast expressions as lvalues is deprecated
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_ipip -c -o
ipsec_ipip.o ipsec_ipip.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=sysctl_net_ipsec -c -o
sysctl_net_ipsec.o sysctl_net_ipsec.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=pfkey_v2 -c -o
pfkey_v2.o pfkey_v2.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=pfkey_v2_parser -c -o
pfkey_v2_parser.o pfkey_v2_parser.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=pfkey_v2_ext_process
-c -o pfkey_v2_ext_process.o pfkey_v2_ext_process.c
pfkey_v2_ext_process.c: In function `pfkey_address_process':
pfkey_v2_ext_process.c:403: warning: use of cast expressions as lvalues
is deprecated
pfkey_v2_ext_process.c:403: warning: use of cast expressions as lvalues
is deprecated
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=version -c -o
version.o version.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.28/include/linux/modversions.h -DIPCOMP_PREFIX
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipsec_esp -c -o
ipsec_esp.o ipsec_esp.c
ipsec_esp.c: In function `ipsec_rcv_esp_decrypt':
ipsec_esp.c:276: error: `debug_rcv' undeclared (first use in this function)
ipsec_esp.c:276: error: (Each undeclared identifier is reported only once
ipsec_esp.c:276: error: for each function it appears in.)
ipsec_esp.c:276: error: `sysctl_ipsec_debug_verbose' undeclared (first
use in this function)
ipsec_esp.c: In function `ipsec_xmit_esp_setup':
ipsec_esp.c:466: error: `debug_tunnel' undeclared (first use in this
function)
ipsec_esp.c:466: error: `sysctl_ipsec_debug_verbose' undeclared (first
use in this function)
make[2]: *** [ipsec_esp.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.28/net/ipsec'
make[1]: *** [_modsubdir_ipsec] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.28/net'
make: *** [_mod_net] Error 2
It dies at the same place in both 2.6.10 and 2.4.28.
They system is SuSE 9.2
gcc:
dan:/usr/src/linux-2.4.28 # gcc -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
--disable-checking --libdir=/usr/lib --enable-libgcj
--with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.4 (pre 3.3.5 20040809)
Openswan is 2.3.0dr4.
Any help is appreciared. Hopefully this is something as equally lame as
my last question.
Dan
More information about the Users
mailing list