MeanEYE / Disk-Indicator

Small program for Linux that will turn your Scroll, Caps or Num Lock LED into hard disk indicator.
GNU General Public License v3.0
155 stars 9 forks source link

makefile:13: recipe for target 'xorg.o' failed #7

Closed major closed 9 years ago

major commented 9 years ago

Currently trying to compile it on Fedora 21 running gcc 4.9.2 and getting this:

c99 -Wall -pedantic -Werror -D _BSD_SOURCE -c src/xorg.c
In file included from /usr/include/stdio.h:27:0,
                 from src/xorg.c:30:
/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:13: recipe for target 'xorg.o' failed
make: *** [xorg.o] Error 1

If I remove -Werror from the makefile, it compiles just fine.

MeanEYE commented 9 years ago

That _BSD_SOURCE is such a nightmare. Thanks for reporting it. This is third time I change it to something else. Can you see if it works when you change _BSD_SOURCE to _DEFAULT_SOURCE?

major commented 9 years ago

That fixed it.

BAM

MeanEYE commented 9 years ago

Okay, I won't close it just now, because I want to make sure it compiles on other systems as well. Thanks for reporting it.

MeanEYE commented 9 years ago

Change committed.