Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" #119

Closed
matwei opened this issue Jan 26, 2018 · 4 comments
Closed

Comments

@matwei
Copy link

matwei commented Jan 26, 2018

I've got the following error, when compiling under Fedora 23

In file included from /usr/include/string.h:25:0,
                 from category.c:9:
/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

I had to compile it like this:

CFLAGS=-D_DEFAULT_SOURCE make

That way I could compile it.

@jinankjain
Copy link

src/fmacros.h needs to updated from #define _BSD_SOURCE to #define DEFAULT_SOURCE

@SteveLauC
Copy link

I just checked src/fmacros.h finding it was already updated, perhaps we can close this issue?

@matwei
Copy link
Author

matwei commented Jul 2, 2022

Go ahead.
While I don't have Fedora 23, I just tested compiling zlog-1.2.15 on Ubuntu 20.04 and it worked fine.

@SteveLauC
Copy link

@matwei Then you can close it yourself, this is your issue:)
I am not a maintainer or someone like that so I don't have the right to do that.

@matwei matwei closed this as completed Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants