[OpenWrt-Devel] undefined reference while building
Hauke Mehrtens
hauke at hauke-m.de
Sun Apr 24 13:09:55 EDT 2016
> 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: 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
_______________________________________________
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