Modify

Opened 2 years ago

Closed 2 years ago

#15010 closed task (fixed)

fix collectd compile error since r39119

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

Description

Index: package/network/utils/iproute2/Makefile
===================================================================
--- package/network/utils/iproute2/Makefile (revision 39582)
+++ package/network/utils/iproute2/Makefile (working copy)
@@ -77,7 +77,7 @@

SHARED_LIBS="" \
LDFLAGS="-Wl,--gc-sections" \
IP_CONFIG_TINY=y \

  • FPIC=""

+ FPIC="$(FPIC)"

define Build/Compile

+$(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS)

Attachments (0)

Change History (13)

comment:1 Changed 2 years ago by anonymous

Index: package/network/utils/iproute2/Makefile
===================================================================
--- package/network/utils/iproute2/Makefile     (revision 39582)
+++ package/network/utils/iproute2/Makefile     (working copy)
@@ -77,7 +77,7 @@
        SHARED_LIBS="" \
        LDFLAGS="-Wl,--gc-sections" \
        IP_CONFIG_TINY=y \
-       FPIC=""
+       FPIC="$(FPIC)"

 define Build/Compile
        +$(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS)

comment:2 Changed 2 years ago by anonymous

Apparently this fixes #11348

comment:3 Changed 2 years ago by hnyman <hannu.nyman@…>

Looks like the bug has been introduced by r39119, where iproute2 got the empty fpic option definition.

comment:4 Changed 2 years ago by anonymous

Any progress on this?

comment:5 Changed 2 years ago by anonymous

@nbd:
If you really follow this bug (like you said when the other related bugs were closed), please either

  • fix iproute2 by adding the fpic option (which would probably increase iproute2 size), or
  • mark netlink plugin of collectd broken. That would enable the other parts of collectd collectd to compile in buildbot.

The current situation is annoying, as the whole collectd gets left unbuilt due to one plugin.

OpenWrt-libtool: link: mips-openwrt-linux-uclibc-gcc -shared  -fPIC -DPIC  .libs/netlink_la-netlink.o   -L/builds/openwrt/slave/ar71xx/build/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/builds/openwrt/slave/ar71xx/build/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/builds/openwrt/slave/ar71xx/build/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/builds/openwrt/slave/ar71xx/build/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/lib -lm -lz -lnetlink -ldl  -Os -mno-branch-likely -mips32r2 -mtune=34kc -msoft-float   -Wl,-soname -Wl,netlink.so -o .libs/netlink.so
/builds/openwrt/slave/ar71xx/build/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.4/../../../../mips-openwrt-linux-uclibc/bin/ld: /builds/openwrt/slave/ar71xx/build/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libnetlink.a(libnetlink.o): relocation R_MIPS_26 against `close' can not be used when making a shared object; recompile with -fPIC
/builds/openwrt/slave/ar71xx/build/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libnetlink.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[6]: *** [netlink.la] Error 1

comment:6 Changed 2 years ago by Thomas S. <stather@…>

Any progress on this? Please fix, i really need collectd in trunk

comment:7 Changed 2 years ago by anonymous

This problem is really there for several months now and still no fix or any answer, so is there any progress on this?

comment:8 Changed 2 years ago by hnyman

bump.
I have filed a few days ago a patch to mark the netlink plugin broken.

http://patchwork.openwrt.org/patch/5013/

https://lists.openwrt.org/pipermail/openwrt-devel/2014-March/024260.html

comment:9 Changed 2 years ago by anonymous

So 10 days after the filed patch still nothing happened.

comment:10 Changed 2 years ago by anonymous

@nbd

Would you mark the netlink plugin broken or are we waiting for nothing?

comment:11 Changed 2 years ago by anonymous

Just reminding the maintainers that we are waiting for one of the proposed fixes to be implemented.

comment:12 Changed 2 years ago by 64255111@…

/trunk/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/us r/lib/libnetlink.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[7]: * [netlink.la] Error 1
make[7]: Leaving directory `/home/dsn04/openwrt/20140415/trunk/build_dir/target-mipsel _mips32_uClibc-0.9.33.2/collectd-4.10.8/src'
make[6]:
* [all-recursive] Error 1
make[6]: Leaving directory `/home/dsn04/openwrt/20140415/trunk/build_dir/target-mipsel _mips32_uClibc-0.9.33.2/collectd-4.10.8/src'
make[5]: * [all] Error 2
make[5]: Leaving directory `/home/dsn04/openwrt/20140415/trunk/build_dir/target-mipsel _mips32_uClibc-0.9.33.2/collectd-4.10.8/src'
....
....
make[5]: Leaving directory `/home/dsn04/openwrt/20140415/trunk/build_dir/target-mipsel _mips32_uClibc-0.9.33.2/collectd-4.10.8'
make[4]:
* [all-recursive] Error 1
make[4]: Leaving directory `/home/dsn04/openwrt/20140415/trunk/build_dir/target-mipsel _mips32_uClibc-0.9.33.2/collectd-4.10.8'
make[3]: * -0.9.33.2/collectd-4.10.8/.built Error 2
make[3]: Leaving directory `/home/dsn04/openwrt/20140415/trunk/feeds/packages/utils/co llectd'
make[2]:
* [package/feeds/packages/collectd/compile] Error 2
make[2]: Leaving directory `/home/dsn04/openwrt/20140415/trunk'
make[1]: * bc-0.9.33.2/stamp/.package_compile Error 2
make[1]: Leaving directory `/home/dsn04/openwrt/20140415/trunk'
make:
* [world] 错误 2

Please help me to fix them. Thank you!

comment:13 Changed 2 years ago by hauke

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

This was fixed in r40645.

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.