[OpenWrt-Devel] undefined reference while building
Hauke Mehrtens
hauke at hauke-m.de
Sun Apr 24 13:32:11 EDT 2016
On 04/24/2016 07:12 PM, Weedy wrote:
>
> On 24 Apr 2016 1:09 pm, "Hauke Mehrtens" <hauke at hauke-m.de
> <mailto:hauke at hauke-m.de>> wrote:
>>
>> > Never mind. After a few more test and fresh git clones it seems I have
>> > a more general build failure. Basically any host utill with makedev,
>> > major or minor in it is dying. I don't understand why.
>> >
>> > Is this a gcc 5.x thing? I updated my system recently.
>>
>> ......
>>
>> > '/home/weedy/projects/openwrt/build_dir/host/mtd-utils-1.5.2'
>> > CHK include/version.h
>> > LD mkfs.jffs2
>> > mkfs.jffs2.c:944: error: undefined reference to 'major'
>> > mkfs.jffs2.c:944: error: undefined reference to 'minor'
>> > mkfs.jffs2.c:1263: error: undefined reference to 'minor'
>> > mkfs.jffs2.c:1263: error: undefined reference to 'major'
>> > mkfs.jffs2.c:1273: error: undefined reference to 'minor'
>> > mkfs.jffs2.c:1273: error: undefined reference to 'major'
>> > mkfs.jffs2.c:503: error: undefined reference to 'makedev'
>> > mkfs.jffs2.c:467: error: undefined reference to 'makedev'
>> > mkfs.jffs2.c:510: error: undefined reference to 'makedev'
>> > collect2: error: ld returned 1 exit status
>> > common.mk:80 <http://common.mk:80>: recipe for target
>>
>>
>> Hi,
>>
>> what Linux distribution are you using? What libc are you using?
>>
>> makedev and co. are some more specific functions, but they should be
>> provided by your libc:
>> http://man7.org/linux/man-pages/man3/major.3.html
>>
>> Hauke
>
> Gentoo, glibc 2.23
>
glibc 2.23 changed something and this is causes this build failure. See
this issue for example:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cb0c6445bfe23a4d4714e15fc5baa6ecfacad25
Please try the patch I just send and report back.
Hauke
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list