#870836 /usr/bin/imake: imake generated makefile use deprecated -D_BSD_SOURCE and -D_SVID_SOURCE #870836
- Package:
- xutils-dev
- Source:
- xutils-dev
- Description:
- X Window System utility programs for development
- Submitter:
- Rémi Vanicat
- Date:
- 2025-04-21 21:36:01 UTC
- Severity:
- minor
- Tags:
Dear Maintainer,
While recompiling xdu, It generate the following error:
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:25:0,
from /usr/include/X11/Xlib.h:38,
from /usr/include/X11/Intrinsic.h:53,
from xwin.c:22:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
imake and xmkmf should stop using those define, and user -D_DEFAULT_SOURCE instead.
Thanks.
Hi, The attached patch against the xutils-dev git repo at salsa fixes this for me. Note that there are also other definitions of -D_BSD_SOURCE and -D_SVID_SOURCE in the sources, but they probably do not affect Debian. Best, Teemu
Hilariously, I just ran into this today when building a program I wrote in 1987. Thanks huge to Teemu for working out the patch; I have verified that it works for me. It would be great if this could be packaged.
Still seeing this over 5 years later. Is there any reason not to do an upload with the patch here?