Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9012 closed defect (fixed)

Not build hotplug2 for gcc 4.5.2/eglibc 2.12 in r25920

Reported by: sav Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Not build hotplug2 for gcc 4.5.2/eglibc 2.12 in r25920

make[3]: Entering directory `/home/sysadmin/wl500/OpenWrt/build/package/hotplug2'
CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float  -I/home/sysadmin/wl500/OpenWrt/build/staging_dir/target-mipsel_eglibc-2.12/usr/include -I/home/sysadmin/wl500/OpenWrt/build/staging_dir/target-mipsel_eglibc-2.12/include -I/home/sysadmin/wl500/OpenWrt/build/staging_dir/toolchain-mipsel_gcc-4.5.2_eglibc-2.12/usr/include -I/home/sysadmin/wl500/OpenWrt/build/staging_dir/toolchain-mipsel_gcc-4.5.2_eglibc-2.12/include " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float  -I/home/sysadmin/wl500/OpenWrt/build/staging_dir/target-mipsel_eglibc-2.12/usr/include -I/home/sysadmin/wl500/OpenWrt/build/staging_dir/target-mipsel_eglibc-2.12/include -I/home/sysadmin/wl500/OpenWrt/build/staging_dir/toolchain-mipsel_gcc-4.5.2_eglibc-2.12/usr/include -I/home/sysadmin/wl500/OpenWrt/build/staging_dir/toolchain-mipsel_gcc-4.5.2_eglibc-2.12/include " LDFLAGS="-L/home/sysadmin/wl500/OpenWrt/build/staging_dir/target-mipsel_eglibc-2.12/usr/lib -L/home/sysadmin/wl500/OpenWrt/build/staging_dir/target-mipsel_eglibc-2.12/lib -L/home/sysadmin/wl500/OpenWrt/build/staging_dir/toolchain-mipsel_gcc-4.5.2_eglibc-2.12/usr/lib -L/home/sysadmin/wl500/OpenWrt/build/staging_dir/toolchain-mipsel_gcc-4.5.2_eglibc-2.12/lib " make -j1 -C /home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201/. AR=mipsel-openwrt-linux-gnueabi-ar AS="mipsel-openwrt-linux-gnueabi-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float" LD=mipsel-openwrt-linux-gnueabi-ld NM=mipsel-openwrt-linux-gnueabi-nm CC="mipsel-openwrt-linux-gnueabi-gcc" GCC="mipsel-openwrt-linux-gnueabi-gcc" CXX="mipsel-openwrt-linux-gnueabi-g++" RANLIB=mipsel-openwrt-linux-gnueabi-ranlib STRIP=mipsel-openwrt-linux-gnueabi-strip OBJCOPY=mipsel-openwrt-linux-gnueabi-objcopy OBJDUMP=mipsel-openwrt-linux-gnueabi-objdump SIZE=mipsel-openwrt-linux-gnueabi-size CROSS="mipsel-openwrt-linux-gnueabi-" ARCH="mipsel" COPTS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float" STATIC_WORKER="fork" ;
make[4]: Entering directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201'
make[5]: Entering directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201/parser'
make[5]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201/parser'
make[5]: Entering directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201/rules'
make[5]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201/rules'
make[4]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201'
mipsel-openwrt-linux-gnueabi-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float -o /home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201/udevtrigger src/udevtrigger.c
/tmp/ccp3XbQ0.o: In function `device_list_insert':
udevtrigger.c:(.text+0x54): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x68): undefined reference to `strlcat'
udevtrigger.c:(.text+0xa4): undefined reference to `strlcpy'
udevtrigger.c:(.text+0xe0): undefined reference to `strlcpy'
udevtrigger.c:(.text+0xf4): undefined reference to `strlcat'
udevtrigger.c:(.text+0x178): undefined reference to `strlcat'
udevtrigger.c:(.text+0x18c): undefined reference to `strlcat'
udevtrigger.c:(.text+0x1a8): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x1b8): undefined reference to `strlcat'
udevtrigger.c:(.text+0x1cc): undefined reference to `strlcat'
/tmp/ccp3XbQ0.o: In function `main':
udevtrigger.c:(.text+0x360): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x374): undefined reference to `strlcat'
udevtrigger.c:(.text+0x3c8): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x3d8): undefined reference to `strlcat'
udevtrigger.c:(.text+0x3e8): undefined reference to `strlcat'
udevtrigger.c:(.text+0x3f8): undefined reference to `strlcat'
udevtrigger.c:(.text+0x428): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x438): undefined reference to `strlcat'
udevtrigger.c:(.text+0x448): undefined reference to `strlcat'
udevtrigger.c:(.text+0x49c): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x4f0): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x500): undefined reference to `strlcat'
udevtrigger.c:(.text+0x510): undefined reference to `strlcat'
udevtrigger.c:(.text+0x550): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x560): undefined reference to `strlcat'
udevtrigger.c:(.text+0x570): undefined reference to `strlcat'
udevtrigger.c:(.text+0x5c4): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x5ec): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x640): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x650): undefined reference to `strlcat'
udevtrigger.c:(.text+0x660): undefined reference to `strlcat'
udevtrigger.c:(.text+0x6b0): undefined reference to `strlcpy'
udevtrigger.c:(.text+0x6c0): undefined reference to `strlcat'
udevtrigger.c:(.text+0x6d0): undefined reference to `strlcat'
collect2: ld returned 1 exit status
make[3]: *** [/home/sysadmin/wl500/OpenWrt/build/build_dir/target-mipsel_eglibc-2.12/hotplug2-201/.built] Error 1
make[3]: Leaving directory `/home/sysadmin/wl500/OpenWrt/build/package/hotplug2'
make[2]: *** [package/hotplug2/compile] Error 2

Attachments (1)

hotplug2.patch (1.0 KB) - added by sav 7 years ago.
Fix build for gcc 4.5.2/eglibc 2.12

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by sav

Fix build for gcc 4.5.2/eglibc 2.12

comment:1 Changed 7 years ago by mirko

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

quote of: http://lists.debian.org/debian-devel/2009/05/msg00175.html

  And to answer some of the questions:
  [..]
  - strlcpy() and strlcat() won't be added to EGLIBC as it would break the
    ABI and API. Use libbsd [2] for that, it is already in the archive.

So before adding these two functions to every package which needs them I just packaged 'libbsd' (committed in 27169) and made hotplug2 depend on libbsd if eglibc is used (committed in 27170).

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

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.