Page MenuHomePhabricator

PoolCounter daemon fails to build on Debian unstable
Closed, ResolvedPublic

Description

(sid)km@km-tp:~/projects/vagrant/mediawiki/extensions/PoolCounter/daemon$ make
gcc -c -Wall -Werror -DENDIAN_BIG=0 -DENDIAN_LITTLE=1 -DHAVE_ACCEPT4=1 -DNDEBUG locks.c -o locks.o
In file included from /usr/include/x86_64-linux-gnu/sys/time.h:21:0,
                 from stats.h:4,
                 from locks.c:2:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
cc1: all warnings being treated as errors
Makefile:17: recipe for target 'locks.o' failed
make: *** [locks.o] Error 1

Likely means it will fail to build on Debian testing/stretch too.

Event Timeline

Also make test totally spams my console with a deprecation warning about Object#timeout so building the package is basically impossible, but I got it to build.

Change 324956 had a related patch set uploaded (by Legoktm):
Avoid _BSD_SOURCE is deprecated warnings

https://gerrit.wikimedia.org/r/324956

Change 324956 merged by jenkins-bot:
Avoid _BSD_SOURCE is deprecated warnings

https://gerrit.wikimedia.org/r/324956

Legoktm claimed this task.

Also make test totally spams my console with a deprecation warning about Object#timeout so building the package is basically impossible, but I got it to build.

Filed as T152231.