Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#14118 closed defect (fixed)

Openswan fails to link with trunk r37893

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

Description

At some point between r36542 and r37893 something changed that prevents the openswan package from linking when building firmware for the wndr3700:

make[7]: Entering directory `/home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/programs/pluto'
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 /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libcrypto/liboswcrypto/liboswcrypto.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libcrypto/libdes/libdes.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libcrypto/libaes/libaes.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libopenswan/libopenswan.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libcrypto/libsha1/libsha1.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libcrypto/libmd5/libmd5.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libcrypto/libmd2/libmd2.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libcrypto/libsha2/libsha2.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libwhack/libwhack.a /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libpluto/libpluto.a -lcrypt -lgmp /home/user1/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/openswan-2.6.39/OBJ.linux.mips/lib/libcrypto/libdes/libdes.a
/home/user1/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.4/../../../../mips-openwrt-linux-uclibc/bin/ld: connections.o: relocation R_MIPS_26 against `subnetishost' can not be used when making a shared object; recompile with -fPIC
connections.o: could not read symbols: Bad value

I'm not sure of the best way to address this. If adding -fPIC is the correct approach, I don't know where the change to use that flag should be made.

Thanks.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by hauke

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

This should be fixed in r40620, but your probably need to wait till #14662 is closed.

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

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.