{"action":"opened","issue":{"url":"https://api.github.com/repos/medoc92/upmpdcli/issues/34","repository_url":"https://api.github.com/repos/medoc92/upmpdcli","labels_url":"https://api.github.com/repos/medoc92/upmpdcli/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/medoc92/upmpdcli/issues/34/comments","events_url":"https://api.github.com/repos/medoc92/upmpdcli/issues/34/events","html_url":"https://github.com/medoc92/upmpdcli/issues/34","id":145546353,"number":34,"title":"src/main.cxx:115:9: error: 'PACKAGE_VERSION' was not declared in this scope","user":{"login":"barchstien","id":10419986,"avatar_url":"https://avatars.githubusercontent.com/u/10419986?v=3","gravatar_id":"","url":"https://api.github.com/users/barchstien","html_url":"https://github.com/barchstien","followers_url":"https://api.github.com/users/barchstien/followers","following_url":"https://api.github.com/users/barchstien/following{/other_user}","gists_url":"https://api.github.com/users/barchstien/gists{/gist_id}","starred_url":"https://api.github.com/users/barchstien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barchstien/subscriptions","organizations_url":"https://api.github.com/users/barchstien/orgs","repos_url":"https://api.github.com/users/barchstien/repos","events_url":"https://api.github.com/users/barchstien/events{/privacy}","received_events_url":"https://api.github.com/users/barchstien/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-03T22:18:48Z","updated_at":"2016-04-03T22:18:48Z","closed_at":null,"body":"When building v1.1.1 and v1.1.0, downloaded from https://github.com/medoc92/upmpdcli/archive/\r\nI get :\r\nsrc/main.cxx:115:9: error: 'PACKAGE_VERSION' was not declared in this scope\r\n         PACKAGE_VERSION,                            // info\r\n         ^\r\nMakefile:648: recipe for target 'src/main.o' failed\r\nmake: *** [src/main.o] Error 1\r\n\r\nNote that the version from current git does not have this problem\r\nI tried to look around with grep, but didn't fins anything obvious...\r\nI added : -DPACKAGE_VERSION=\\\"${PACKAGE_VERSION}\\\"\r\nto Makefile.am, but it didn't help\r\n\r\nIf I add the following lines in main.cxx (few lines before the error is reported) everything compiles fine\r\n#define PACKAGE_VERSION \"1.1.0\"\r\n\r\nIf I add #include \"config.h\" to main.cxx compilation is ok too\r\n\r\nHopefully, this is some kind of easy-to-fix for someone who's used to the code\r\nAny hints are appreciated, so that I can dig in the code with the right approach\r\n\r\nCheers\r\n"}}