#19771: buildroot/strongswan: 5.3.0 regression - ipsec won't start when build 
with
CONFIG_USE_STRIP=y
--------------------------------+----------------------------------
  Reporter:  Damian Kaczkowski  |      Owner:  developers
      Type:  defect             |     Status:  reopened
  Priority:  normal             |  Milestone:  Chaos Calmer (trunk)
 Component:  base system        |    Version:  Trunk
Resolution:                     |   Keywords:
--------------------------------+----------------------------------
Changes (by Damian Kaczkowski):

 * status:  closed => reopened
 * resolution:  moved_to_github =>


Comment:

 Well, if I disable stripping then all works fine. Here is readelf from
 stripped and unstripped binaries:

 UNSTRIPPED BINARY:
 {{{
 /opt/cross/openwrt/toolchains/toolchain-mips_34kc/bin/mips-openwrt-linux-
 readelf -d ./starter | egrep RPATH
  0x0000000f (RPATH)                      Library rpath:
 [/opt/cross/openwrt/toolchains/OpenWrt-Toolchain-ar71xx-
 generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/toolchain-
 
mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin//../lib:/opt/cross/openwrt/toolchains
 /OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-
 x86_64/toolchain-
 mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin//../usr/lib:/usr/lib/ipsec]
 }}}

 STRIPPED BINARY:
 Compile log shows only:
 {{{
 rstrip.sh: /home/owrt/150409a/openwrt/build_dir/target-mips-openwrt-linux-
 uclibc/strongswan-5.3.0/ipkg-ar71xx/strongswan-mod-
 stroke/usr/lib/ipsec/starter: removing rpath /opt/cross/openwrt/toolchains
 /OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-
 x86_64/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin//../lib
 rstrip.sh: /home/owrt/150409a/openwrt/build_dir/target-mips-openwrt-linux-
 uclibc/strongswan-5.3.0/ipkg-ar71xx/strongswan-mod-
 stroke/usr/lib/ipsec/starter: removing rpath /opt/cross/openwrt/toolchains
 /OpenWrt-Toolchain-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-
 x86_64/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin//../usr/lib
 Packaged contents of /home/owrt/150409a/openwrt/build_dir/target-mips-
 openwrt-linux-uclibc/strongswan-5.3.0/ipkg-ar71xx/strongswan-mod-stroke
 into /home/owrt/150409a/openwrt/bin/ar71xx/packages/packages/strongswan-
 mod-stroke_5.3.0-1_ar71xx.ipk
 }}}

 But no RPATH at all in the binary:
 {{{
 tar -Oxzf bin/ar71xx/packages/packages/strongswan-mod-
 stroke_5.3.0-1_ar71xx.ipk ./data.tar.gz | tar -Oxz ./usr/lib/ipsec/starter
 > starter.elf
 /opt/cross/openwrt/toolchains/toolchain-mips_34kc/bin/mips-openwrt-linux-
 readelf -d starter.elf | grep RPATH
 }}}


 It must be something related to stripping code. Jow could you please look
 into this one last time? Thanks in advance.

--
Ticket URL: <https://dev.openwrt.org/ticket/19771#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to