Skip to contentSkip to conversation

New: iproute2 does not include the LDFLAGS in the mk

Buildroot bugzilla at busybox.net 1 participant 3 messages Apr 27, 2012 – May 11, 2012

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=5150

Summary: iproute2 does not include the LDFLAGS in the mk
Product: buildroot
Version: 2012.02
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: korkakak at gmail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

The error is the following:

/bin/sed -i -e 's/$(CCOPTS)//' /home/user/buildroot/output/build/iproute2-2.6.39/netem/Makefile
/usr/bin/make -j8 CC="/home/user/buildroot/output/host/usr/bin/ccache /home/user/buildroot/output/host/usr/bin/mips-linux-gnu-gcc" CCOPTS="-pipe -EL -march=m14kc -mmcu -I/home/user/RHEA_II//linux-2.6.x -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE" -C /home/user/buildroot/output/build/iproute2-2.6.39
make[1]: Entering directory `/home/user/buildroot/output/build/iproute2-2.6.39' make[2]: Entering directory
`/home/user/buildroot/output/build/iproute2-2.6.39/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/user/buildroot/output/build/iproute2-2.6.39/lib'
make[2]: Entering directory
`/home/user/buildroot/output/build/iproute2-2.6.39/ip' /home/user/buildroot/output/host/usr/bin/ccache /home/user/buildroot/output/host/usr/bin/mips-linux-gnu-gcc -Wl,-export-dynamic
ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o rtm_map.o iptunnel.o
ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o ipmaddr.o ipmonitor.o
ipmroute.o ipprefix.o iptuntap.o ipxfrm.o xfrm_state.o xfrm_policy.o
xfrm_monitor.o iplink_vlan.o link_veth.o link_gre.o iplink_can.o
iplink_macvlan.o iplink_macvtap.o ../lib/libnetlink.a ../lib/libutil.a
-lresolv ../lib/libnetlink.a ../lib/libutil.a -ldl -o ip /home/user/buildroot/output/host/usr/bin/ccache /home/user/buildroot/output/host/usr/bin/mips-linux-gnu-gcc -Wl,-export-dynamic
rtmon.o ../lib/libnetlink.a ../lib/libutil.a -lresolv ../lib/libnetlink.a
../lib/libutil.a -ldl -o rtmon /home/user/buildroot/output/host/usr/mipsel-unknown-linux-gnu/sysroot/soft-float/usr/lib/libresolv.so:
could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [rtmon] Error 1
make[2]: *** Waiting for unfinished jobs.... /home/user/buildroot/output/host/usr/mipsel-unknown-linux-gnu/sysroot/soft-float/usr/lib/libresolv.so:
could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [ip] Error 1

FIX:

package/iproute2/iproute2.mk +0 -1
index dd2506c..790b891 100644
@@ -35,7 +35,7 @@ endef
 
 define IPROUTE2_BUILD_CMDS
        $(SED) 's/$$(CCOPTS)//' $(@D)/netem/Makefile
-       $(MAKE) CC="$(TARGET_CC)" CCOPTS="$(TARGET_CFLAGS) -D_GNU_SOURCE" -C

$(@D)
+ $(MAKE) CC="$(TARGET_CC)" CCOPTS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
endef

define IPROUTE2_INSTALL_TARGET_CMDS

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 5150] iproute2 does not include the LDFLAGS in the mk

https://bugs.busybox.net/show_bug.cgi?id=5150

--- Comment #1 from Gustavo Zacarias <[email protected]> 2012-05-03 20:33:17 UTC --- Does it still happen with the latest git buildroot?
If yes, can you provide a .config?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 5150] iproute2 does not include the LDFLAGS in the mk

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=5150

Korkakakis Nikos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Korkakakis Nikos <[email protected]> 2012-05-11 10:38:50 UTC --- (In reply to comment #1)

Quoted 2 lines

Does it still happen with the latest git buildroot? If yes, can you provide a .config?

(In reply to comment #1)

Quoted 2 lines

Does it still happen with the latest git buildroot? If yes, can you provide a .config?

No it does not. I was a dozen revisions behind.

Thanks.
N.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.