#20 Address "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" warnings
Closed: fixed 5 years ago Opened 5 years ago by emaldonado.

Building JSS results several warning to the effect that "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

One sample:
gcc -o Linux4.17_x86_64_glibc_PTH_64_DBG.OBJ/nsinstall.o -c -g -D_POSIX_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE -fPIC -DLINUX2_1 -Wall -Werror-implicit-function-declaration -Wno-switch -pipe -DLINUX -Dlinux -DHAVE_STRERROR -DXP_UNIX -DDEBUG -UNDEBUG -DDEBUG_emaldonado -D_REENTRANT -DUSE_UTIL_DIRECTLY -I../../../dist/Linux4.17_x86_64_glibc_PTH_64_DBG.OBJ/include -I../../../dist/public/coreconf -I../../../dist/private/coreconf nsinstall.c
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from nsinstall.c:8:
/usr/include/features.h:184: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"
^~~
Upstream NSS has solved this and we should follow suite.


This has been fixed by jss pr#21. The commit in upstream is afecca.

Metadata Update from @cipherboy:
- Issue assigned to cipherboy

5 years ago

Metadata Update from @cipherboy:
- Custom field component adjusted to None
- Custom field feature adjusted to None
- Custom field origin adjusted to None
- Custom field proposedmilestone adjusted to None
- Custom field proposedpriority adjusted to None
- Custom field reviewer adjusted to None
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata
Attachments 1
Attached 5 years ago View Comment