[OpenWrt-Devel] undefined reference while building

Weedy weedy2887 at gmail.com
Sun Apr 24 13:12:01 EDT 2016


On 24 Apr 2016 1:09 pm, "Hauke Mehrtens" <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: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160424/2854bb99/attachment.htm>
-------------- next part --------------
_______________________________________________
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