{"action":"created","issue":{"url":"https://api.github.com/repos/Spotifyd/spotifyd/issues/28","labels_url":"https://api.github.com/repos/Spotifyd/spotifyd/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/Spotifyd/spotifyd/issues/28/comments","events_url":"https://api.github.com/repos/Spotifyd/spotifyd/issues/28/events","html_url":"https://github.com/Spotifyd/spotifyd/issues/28","id":123635024,"number":28,"title":"can't compile on RHEL","user":{"login":"tbrandysky","id":3275770,"avatar_url":"https://avatars.githubusercontent.com/u/3275770?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrandysky","html_url":"https://github.com/tbrandysky","followers_url":"https://api.github.com/users/tbrandysky/followers","following_url":"https://api.github.com/users/tbrandysky/following{/other_user}","gists_url":"https://api.github.com/users/tbrandysky/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrandysky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrandysky/subscriptions","organizations_url":"https://api.github.com/users/tbrandysky/orgs","repos_url":"https://api.github.com/users/tbrandysky/repos","events_url":"https://api.github.com/users/tbrandysky/events{/privacy}","received_events_url":"https://api.github.com/users/tbrandysky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-23T10:25:40Z","updated_at":"2015-12-23T15:11:04Z","closed_at":null,"body":"[root@host spotifyd-master]# make\r\nmake: *** No rule to make target `/usr/include/stdc-predef.h', needed by `build/audio.o'.  Stop.\r\n\r\nin RHEL there is glibc-devel which doesn't include stdc-predef.h file.\r\n"},"comment":{"url":"https://api.github.com/repos/Spotifyd/spotifyd/issues/comments/166920346","html_url":"https://github.com/Spotifyd/spotifyd/issues/28#issuecomment-166920346","issue_url":"https://api.github.com/repos/Spotifyd/spotifyd/issues/28","id":166920346,"user":{"login":"tbrandysky","id":3275770,"avatar_url":"https://avatars.githubusercontent.com/u/3275770?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrandysky","html_url":"https://github.com/tbrandysky","followers_url":"https://api.github.com/users/tbrandysky/followers","following_url":"https://api.github.com/users/tbrandysky/following{/other_user}","gists_url":"https://api.github.com/users/tbrandysky/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrandysky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrandysky/subscriptions","organizations_url":"https://api.github.com/users/tbrandysky/orgs","repos_url":"https://api.github.com/users/tbrandysky/repos","events_url":"https://api.github.com/users/tbrandysky/events{/privacy}","received_events_url":"https://api.github.com/users/tbrandysky/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T15:11:04Z","updated_at":"2015-12-23T15:11:04Z","body":"It really seems there is a problem with Makefile.\r\nI had to change few things in .h files which tried to include files from wrong locations in RHEL/Centos - e.g. #include <asoundlib.h> to  #include <alsa/asoundlib.h>\r\n\r\nAfter this I was able to compile all .c files to .o files by gcc -c <file>.c -o <file.o>\r\nOnce I changed the line in Makefile in build section to:\r\n@echo \"  CC $<\"; $(CC) $(CFLAGS) -c -o $@ $<\r\n\r\n I'm also able to build whole project without errors:\r\n[root@dev_server127 spotifyd-master]# make clean\r\n  Cleaning...\r\n[root@host spotifyd-master]# make\r\n  CC src/audio.c\r\n  CC src/callbacks.c\r\n  CC src/helpers.c\r\n  CC src/playlist.c\r\n  CC src/commands.c\r\n  CC src/parser.c\r\n  CC src/commandq.c\r\n  CC src/alsa-audio.c\r\n  CC src/socket.c\r\n  CC src/spotifyd.c\r\n  CC src/queue.c\r\n  CC src/search.c\r\n  CC src/session.c\r\n  CC src/config.c\r\nld -r -b binary -o build/appkey.o src/appkey.key\r\n  Linking 'spotifyd'...\r\n\r\nOnly problem is when I try to run spotifyd it doesn't start nor it returns any errors.\r\nI'm trying to run it as root with ~/spotifyd.rc file containing valid configuration:\r\nusername <myusername>\r\npassword <mypass>\r\nport 8080\r\nlog /tmp/spotifyd-log\r\n\r\n[root@host spotifyd-master]# ./spotifyd \r\n[root@host spotifyd-master]# echo $?\r\n0\r\n\r\n\r\nbut actually it doesn't listen on port 8080 nor it creates the logfile in tmp. \r\nThe same thing is when I try to change port to socket.\r\n\r\nOnly idea I have is that it doesn't run because the server I'm running it on is actually a VPS (Centos 6) for testing purposes (RPM building) without sound card. I'd suppose it would just end with some error. \r\n\r\nthank you\r\n\r\nTomas\r\n\r\n"}}