Hi! I just submitted an update to TRAC and would like to draw the attention of people who know OpenWRT, MIPS and the build environment to it.
Background: I purchased a new router, Netgear WNDR4300. This router is only supported in trunk. And I need to run Openswan on it. But that fails to build with the current trunk (Openswan 2.6.38). So I tried the newest version of Openswan and got a little further. It probably makes more sense to talk about this to OpenWRT people but I will notify the Openswan developers, too. I haven't tried my build on the hardware yet, so I will leave Openswan userland out of it and see it the rest makes a usable image. Maybe I can use an older userland package. Lupe Christoph ----- Forwarded message from OpenWrt <[email protected]> ----- Date: Tue, 08 Apr 2014 12:57:54 -0000 From: OpenWrt <[email protected]> Cc: [email protected] Subject: Re: [OpenWrt] #14662: openswan fails to compile in latest trunk X-Mailer: Trac 1.0.1, by Edgewall Software X-URL: http://openwrt.org #14662: openswan fails to compile in latest trunk -----------------------+------------------------------------- Reporter: zloop | Owner: developers Type: defect | Status: reopened Priority: normal | Milestone: Barrier Breaker (trunk) Component: packages | Version: Trunk Resolution: | Keywords: -----------------------+------------------------------------- Comment (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 -D__EXPORTED_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. -- Ticket URL: <https://dev.openwrt.org/ticket/14662#comment:8> OpenWrt <http://openwrt.org> Opensource Wireless Router Technology ----- End forwarded message ----- -- | The politician's syllogism: | | We must do something | | This is something | | Therefore, we must do this. | _______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
