Hi Padraig,

On 1/20/20 12:52 PM, Pádraig Brady wrote:
I plan to do one in the next few weeks

on openSUSE:Tumbleweed with glibc-2.30, I'm getting the following errors.

    CC       lib/nproc.o
  In file included from lib/nproc.c:50:
  /usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is 
deprecated and will be removed." [-Werror=cpp]
     21 | #warning "The <sys/sysctl.h> header is deprecated and will be 
removed."
        |  ^~~~~~~
  cc1: all warnings being treated as errors
  make[2]: *** [Makefile:10238: lib/nproc.o] Error 1
    CC       lib/physmem.o
  In file included from lib/physmem.c:54:
  /usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is 
deprecated and will be removed." [-Werror=cpp]
     21 | #warning "The <sys/sysctl.h> header is deprecated and will be 
removed."
        |  ^~~~~~~
  cc1: all warnings being treated as errors
  make[2]: *** [Makefile:10238: lib/physmem.o] Error 1
    CC       src/uptime.o
  In file included from src/uptime.c:26:
  /usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is 
deprecated and will be removed." [-Werror=cpp]
     21 | #warning "The <sys/sysctl.h> header is deprecated and will be 
removed."
        |  ^~~~~~~
  cc1: all warnings being treated as errors
  make[2]: *** [Makefile:10238: src/uptime.o] Error 1
    CC       src/uname.o
  In file included from src/uname.c:34:
  /usr/include/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is 
deprecated and will be removed." [-Werror=cpp]
     21 | #warning "The <sys/sysctl.h> header is deprecated and will be 
removed."
        |  ^~~~~~~
  cc1: all warnings being treated as errors
  make[2]: *** [Makefile:10238: src/uname.o] Error 1
  make[2]: Target 'all-am' not remade because of errors.

I didn't have a deeper look about this issue yet, but at least on that system
it seems to work with those includes simply removed.

Is this something we want to have solved for coreutils-8.32?

Have a nice day,
Berny

Reply via email to