#870836 /usr/bin/imake: imake generated makefile use deprecated -D_BSD_SOURCE and -D_SVID_SOURCE

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:
#870836#5
Date:
2017-08-05 17:13:19 UTC
From:
To:
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.

#870836#10
Date:
2018-10-23 13:25:55 UTC
From:
To:
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

#870836#15
Date:
2018-11-24 22:02:58 UTC
From:
To:
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.

#870836#22
Date:
2024-03-17 19:07:55 UTC
From:
To:
Still seeing this over 5 years later. Is there any reason not to do an
upload with the patch here?