[dpdk-dev] [PATCH] eal/linux: fix build with glibc 2.25

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Apr 4 14:51:25 CEST 2017


2017-04-03 14:05, Jerin Jacob:
> glibc 2.25 is warning about if applications depend on
> sys/types.h for makedev macro, it expects to be included
> from <sys/sysmacros.h>
> 
> Found this error while testing with GCC 6.3.1 on archlinux.
> 
> lib/librte_eal/linuxapp/eal/eal_pci_uio.c: In function ‘pci_mknod_uio_dev’:
> lib/librte_eal/linuxapp/eal/eal_pci_uio.c:134:13:
> error: In the GNU C Library, "makedev" is defined
> by <sys/sysmacros.h>. For historical compatibility, it is
> currently defined by <sys/types.h> as well, but we plan to
> remove this soon. To use "makedev", include <sys/sysmacros.h>
> directly. If you did not intend to use a system-defined macro
> "makedev", you should undefine it after including <sys/types.h>. [-Werror]
>  dev = makedev(major, minor);
>              ^~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>

Applied, thanks


More information about the dev mailing list