Modify

Opened 4 years ago

Closed 3 years ago

#14662 closed defect (wontfix)

openswan fails to compile in latest trunk

Reported by: zloop Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

openswan 2.3.38 has a security issue ( https://lists.openswan.org/pipermail/dev/2013-June/003096.html )

openswan 2.3.39 fails to compile (that version introduced compiling with 3.9)

first errors:

/home/tenchi/prog/git/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/linux-x86_generic/openswan-2.6.39/modobj26/ipsec_proc.c:1053:2: error: unknown type name 'read_proc_t'
/home/tenchi/prog/git/openwrt/build_dir/target-i386_i486_uClibc-0.9.33.2/linux-x86_generic/openswan-2.6.39/modobj26/ipsec_proc.c:1054:2: error: unknown type name 'write_proc_t'

there are open tickets of other distros but these dont have fixes

switching to the fork libreswan http://libreswan.org/
might resolve errors

Attachments (0)

Change History (13)

comment:1 Changed 4 years ago by hauke

  • Resolution set to wontfix
  • Status changed from new to closed

openswan 2.3.39 fails to compile on kernel 3.10 and most of the targets are using that kernel version, so I can not test this update. Someone should fix the compile problem with kernel 3.10 upstream first:
https://github.com/xelerance/Openswan/issues/55

Please reopen this ticket when there is a fix to make it work with kernel 3.10 or you have a fix for that.

comment:2 Changed 4 years ago by funky

Openswan 2.6.41 released to the community

https://www.openswan.org/download/openswan-2.6.41.tar.gz
https://www.openswan.org/download/openswan-2.6.41.tar.gz.asc

This version specifically addresses CVE 2014-2037
This CVE is a continuation of CVE 2013-6466. We missed some cases.

A full list of changes follows below.

Regards,

Patrick Naubert

  • SAREF: kernel patches updated to linux 3.11.0 (Simon Deziel)
  • Fix for CVE-2014-2037 (Paul Wouters, Hugh Redelmeier)

comment:3 Changed 4 years ago by funky

  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:4 Changed 4 years ago by hauke

  • Resolution set to wontfix
  • Status changed from reopened to closed

openswan-2.6.41.tar.gz still does not compile against kernel 3.10, same problem as before.

Please provide a patch to fix that problem.

Last edited 4 years ago by hauke (previous) (diff)

comment:5 follow-up: Changed 4 years ago by anonymous

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Please fix it!

comment:6 in reply to: ↑ 5 ; follow-up: Changed 4 years ago by anon2

Replying to anonymous:

Please fix it!

Fix what? If there are still tickets at the Openswan site about the incompatibility with kernel 3.10+, how could Openwrt devs "fix it"?

https://github.com/xelerance/Openswan/issues/55

If the underlying software itself in incompatible with modern kernels, there is not much that can be done

You should complain at the Openswan bug tracker, not re-open tickets here.

comment:7 in reply to: ↑ 6 Changed 4 years ago by anonymous

Replying to anon2:

Replying to anonymous:

Please fix it!

Fix what? If there are still tickets at the Openswan site about the incompatibility with kernel 3.10+, how could Openwrt devs "fix it"?

https://github.com/xelerance/Openswan/issues/55

If the underlying software itself in incompatible with modern kernels, there is not much that can be done

You should complain at the Openswan bug tracker, not re-open tickets here.

Okay,
Thanks.

comment:8 Changed 4 years ago by lupe@…

Openswan 2.6.41 fixed the compilation problem, but now pluto does not link:

mips-openwrt-linux-uclibc-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/ports/linux/include -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/linux/include -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/include -I/openwrt-build/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/openwrt-build/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/openwrt-build/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/openwrt-build/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/linux-3.10.34/uapi/include -DEXPORTED_HEADERS -L/openwrt-build/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/openwrt-build/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/openwrt-build/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/openwrt-build/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/ports/linux/include -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/ports/linux/include -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/ports/linux/include -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/programs/pluto/linux26 -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/include -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/lib/libcrypto -I/openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/linux/include -DPLUTO_SENDS_VENDORID -DUSE_KEYRR -DDYNAMICDNS -DNETKEY_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES -DPFKEY -DX509_PLUTO -DPLUTO -DKLIPS -DHAVE_UDPFROMTO -DPFKEY -DKLIPS_MAST -DBUILDER=\"lupe@alanya\" -DDEBUG -DUSE_AES -DUSE_3DES -DUSE_SHA2 -DIKE_ALG -DKERNEL_ALG -DAGGRESSIVE -DXAUTH -DMODECFG -DMODECFG_DNSWINS -DNAT_TRAVERSAL -DI_KNOW_TRANSPORT_MODE_HAS_SECURITY_CONCERN_BUT_I_WANT_IT -DUSE_MODP_RFC5114 -DHAVE_NM -DSHARED_SECRETS_FILE=\"/etc/ipsec.secrets\" -DPOLICYGROUPSDIR=\"/etc/ipsec.d/policies\" -DPERPEERLOGDIR=\"/var/log/pluto/peer\" -g -Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wmissing-declarations -Wwrite-strings -Wstrict-prototypes -Wno-error=cast-qual -Wno-error=cpp -DALLOW_MICROSOFT_BAD_PROPOSAL -c /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/programs/pluto/connections.c
(this prints some warnings, none related to the linker error below.)
...

mips-openwrt-linux-uclibc-gcc -o pluto -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now connections.o initiate.o terminate.o pending.o cookie.o crypto.o defs.o dpd.o foodgroups.o log.o state.o plutomain.o plutoalg.o server.o timer.o hmac.o hostpair.o myid.o ipsec_doi.o ikev1.o ikev1_main.o ikev1_quick.o ikev2.o ikev2_parent.o ikev2_child.o spdb_v2_struct.o ikeping.o kernel.o kernel_netlink.o kernel_klips.o kernel_mast.o kernel_pfkey.o kernel_noklips.o rcv_whack.o demux.o msgdigest.o keys.o dnskey.o pluto_crypt.o crypt_utils.o crypt_ke.o crypt_dh.o crypt_start_dh.o ikev2_crypto.o ikev2_prfplus.o rnd.o spdb.o spdb_struct.o spdb_v1_struct.o spdb_print.o security_selinux.o vendor.o nat_traversal.o virtual.o ike_alg_aes.o ike_alginit.o ikev2_rsa.o ikev2_psk.o ikev2_x509.o ike_alg_sha2.o ike_alg.o ike_alg_status.o db_ops.o xauth.o ikev1_aggr.o ac.o x509.o ocsp.o x509keys.o sysdep_linux.o stubs.o /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libcrypto/liboswcrypto/liboswcrypto.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libcrypto/libdes/libdes.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libcrypto/libaes/libaes.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libopenswan/libopenswan.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libcrypto/libsha1/libsha1.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libcrypto/libmd5/libmd5.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libcrypto/libmd2/libmd2.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libcrypto/libsha2/libsha2.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libwhack/libwhack.a /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libpluto/libpluto.a -lcrypt -lgmp /openwrt-build/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/openswan-2.6.41/OBJ.linux.mips/lib/libcrypto/libdes/libdes.a
/openwrt-build/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: connections.o: relocation R_MIPS16_26 against `atoid' can not be used when making a shared object; recompile with -fPIC
connections.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

I have no experience with MIPS, so I'm stuck. I tried compiling pluto with -fPIC, but then I just get different linker errors - seemingling -fPIC has to be used to with all objects that get linked in.

comment:9 Changed 4 years ago by anonymous

Correction - my bad. The userland is built first, so the bug above masks the one originally reported. Twiddling feeds/packages/net/openswan/Makefile so that the userland is not built gives the same errors reported originally.

Related bugs reports on other trackers:
Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717166
Ubuntu: https://bugs.launchpad.net/ubuntu/+source/openswan/+bug/1208006

comment:10 Changed 3 years ago by me

openswan-2.6.41
still fails to compile in openwrt bb-rc3

make[6]: Leaving directory `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/OBJ.linux.mips/programs'
make[5]: Leaving directory `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/OBJ.linux.mips'
make[4]: Leaving directory `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41'
make   -C /hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41 AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fpic" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size LINUX_RELEASE="1" KERNELSRC="/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49" ARCH="mips" CROSS_COMPILE="mips-openwrt-linux-uclibc-" USERCOMPILE="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fpic -I/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/ports/linux/include -I/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/linux/include -I/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/include -I/hdd/openwrt/aug_13/bb_rc3/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/hdd/openwrt/aug_13/bb_rc3/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/hdd/openwrt/aug_13/bb_rc3/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/hdd/openwrt/aug_13/bb_rc3/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include -I/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49/uapi/include -D__EXPORTED_HEADERS__ -L/hdd/openwrt/aug_13/bb_rc3/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/hdd/openwrt/aug_13/bb_rc3/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/hdd/openwrt/aug_13/bb_rc3/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/hdd/openwrt/aug_13/bb_rc3/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib" IPSECDIR="/usr/lib/ipsec" INC_USRLOCAL="/usr" INC_RCDEFAULT="/etc/init.d" MODPROBE="/sbin/insmod" DESTDIR="/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/ipkg-install" module
make[4]: Entering directory `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41'
Building module for a 2.6 kernel
make[5]: Entering directory `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41'
make[6]: Entering directory `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41'
make[6]: `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/Makefile' is up to date.
make[6]: Leaving directory `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41'
make -C /hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49  BUILDDIR=/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26 SUBDIRS=/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26 MODULE_DEF_INCLUDE=/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/packaging/linus/config-all.h MODULE_DEFCONFIG=/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/linux/net/ipsec/defconfig  MODULE_EXTRA_INCLUDE= ARCH=mips V=99 modules
make[6]: Entering directory `/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49'
  CC [M]  /hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.o
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:952:2: error: unknown type name 'read_proc_t'
  read_proc_t            *readthing;
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:953:2: error: unknown type name 'write_proc_t'
  write_proc_t           *writething;
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:957:2: warning: initialization from incompatible pointer type [enabled by default]
  {"klipsdebug", &proc_net_ipsec_dir, NULL,             ipsec_klipsdebug_get_info, NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:957:2: warning: (near initialization for 'proc_items[0].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:959:2: warning: initialization from incompatible pointer type [enabled by default]
  {"all",        &proc_eroute_dir,    NULL,             ipsec_eroute_get_info,     NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:959:2: warning: (near initialization for 'proc_items[2].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:961:2: warning: initialization from incompatible pointer type [enabled by default]
  {"all",        &proc_spi_dir,       NULL,             ipsec_spi_get_info,        NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:961:2: warning: (near initialization for 'proc_items[4].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:963:2: warning: initialization from incompatible pointer type [enabled by default]
  {"all",        &proc_spigrp_dir,    NULL,             ipsec_spigrp_get_info,     NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:963:2: warning: (near initialization for 'proc_items[6].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:969:2: warning: initialization from incompatible pointer type [enabled by default]
  {"ipv4",       &proc_birth_dir,     NULL,             ipsec_birth_info, ipsec_birth_set, (void *)&ipsec_ipv4_birth_packet},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:969:2: warning: (near initialization for 'proc_items[8].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:969:2: warning: initialization from incompatible pointer type [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:969:2: warning: (near initialization for 'proc_items[8].writething') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:970:2: warning: initialization from incompatible pointer type [enabled by default]
  {"ipv6",       &proc_birth_dir,     NULL,             ipsec_birth_info, ipsec_birth_set, (void *)&ipsec_ipv6_birth_packet},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:970:2: warning: (near initialization for 'proc_items[9].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:970:2: warning: initialization from incompatible pointer type [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:970:2: warning: (near initialization for 'proc_items[9].writething') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:971:2: warning: initialization from incompatible pointer type [enabled by default]
  {"tncfg",      &proc_net_ipsec_dir, NULL,             ipsec_tncfg_get_info,      NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:971:2: warning: (near initialization for 'proc_items[10].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:974:2: warning: initialization from incompatible pointer type [enabled by default]
  {"xforms",     &proc_net_ipsec_dir, NULL,             ipsec_xform_get_info,      NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:974:2: warning: (near initialization for 'proc_items[11].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:977:2: warning: initialization from incompatible pointer type [enabled by default]
  {"trap_count", &proc_stats_dir,     NULL,             ipsec_stats_get_int_info, NULL, &ipsec_xmit_trap_count},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:977:2: warning: (near initialization for 'proc_items[13].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:978:2: warning: initialization from incompatible pointer type [enabled by default]
  {"trap_sendcount", &proc_stats_dir, NULL,             ipsec_stats_get_int_info, NULL, &ipsec_xmit_trap_sendcount},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:978:2: warning: (near initialization for 'proc_items[14].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:979:2: warning: initialization from incompatible pointer type [enabled by default]
  {"natt",       &proc_net_ipsec_dir, NULL,             ipsec_natt_get_info,    NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:979:2: warning: (near initialization for 'proc_items[15].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:980:2: warning: initialization from incompatible pointer type [enabled by default]
  {"ocf",       &proc_net_ipsec_dir, NULL,             ipsec_ocf_get_info,    NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:980:2: warning: (near initialization for 'proc_items[16].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:981:2: warning: initialization from incompatible pointer type [enabled by default]
  {"version",    &proc_net_ipsec_dir, NULL,             ipsec_version_get_info,    NULL, NULL},
  ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:981:2: warning: (near initialization for 'proc_items[17].readthing') [enabled by default]
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c: In function 'ipsec_proc_init':
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:1027:5: error: implicit declaration of function 'create_proc_entry' [-Werror=implicit-function-declaration]
     item = create_proc_entry(it->name, strcmp(it->name, "version") == 0 ? 0444 : 0400, *it->parent);
     ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:1027:10: warning: assignment makes pointer from integer without a cast [enabled by default]
     item = create_proc_entry(it->name, strcmp(it->name, "version") == 0 ? 0444 : 0400, *it->parent);
          ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:1030:9: error: dereferencing pointer to incomplete type
     item->read_proc  = it->readthing;
         ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:1031:9: error: dereferencing pointer to incomplete type
     item->write_proc = it->writething;
         ^
/hdd/openwrt/aug_13/bb_rc3/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.41/modobj26/ipsec_proc.c:1032:9: error: dereferencing pointer to incomplete type
     item->data       = it->data;
         ^
cc1: some warnings being treated as errors

comment:11 Changed 3 years ago by hauke

OpenSwan is still broken upstream.

Upstream ticket:
https://github.com/xelerance/Openswan/issues/55

comment:12 Changed 3 years ago by anonymous

Fixed in current OpenSwan-Master.
Just compiled it successfully with Kernel 3.14.28

comment:13 Changed 3 years ago by nbd

  • Resolution set to wontfix
  • Status changed from reopened to closed

openswan is unmaintained. no changes will be made to it until it is submitted to ​https://github.com/openwrt/packages and maintained from that point on.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.