{"action":"created","issue":{"url":"https://api.github.com/repos/pfps/yoga-laptop/issues/39","labels_url":"https://api.github.com/repos/pfps/yoga-laptop/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/pfps/yoga-laptop/issues/39/comments","events_url":"https://api.github.com/repos/pfps/yoga-laptop/issues/39/events","html_url":"https://github.com/pfps/yoga-laptop/issues/39","id":77395311,"number":39,"title":"Kernel 4.0 / Debian: make programs fails with \"Undefined reference to `build_channel_array'\"","user":{"login":"bagage","id":1451988,"avatar_url":"https://avatars.githubusercontent.com/u/1451988?v=3","gravatar_id":"","url":"https://api.github.com/users/bagage","html_url":"https://github.com/bagage","followers_url":"https://api.github.com/users/bagage/followers","following_url":"https://api.github.com/users/bagage/following{/other_user}","gists_url":"https://api.github.com/users/bagage/gists{/gist_id}","starred_url":"https://api.github.com/users/bagage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagage/subscriptions","organizations_url":"https://api.github.com/users/bagage/orgs","repos_url":"https://api.github.com/users/bagage/repos","events_url":"https://api.github.com/users/bagage/events{/privacy}","received_events_url":"https://api.github.com/users/bagage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-17T20:49:32Z","updated_at":"2015-05-21T20:32:03Z","closed_at":null,"body":"According to README, since I am running newer kernel than 3.16 I should only type `make programs`? \r\nWhen doing so, I am getting linking error:\r\n\r\n```bash\r\n$ make programs\r\ncd sensors && make all\r\nmake[1]: Entering directory '/home/me/yoga-laptop/sensors'\r\ncc generic_buffer.c  -o generic_buffer\r\n/tmp/ccpVnbqv.o: dans la fonction « main »:\r\ngeneric_buffer.c:(.text+0x139a): référence indéfinie vers « build_channel_array »\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:13: recipe for target 'generic_buffer' failed\r\nmake[1]: *** [generic_buffer] Error 1\r\nmake[1]: Leaving directory '/home/me/yoga-laptop/sensors'\r\nMakefile:9: recipe for target 'programs' failed\r\nmake: *** [programs] Error 2\r\n```"},"comment":{"url":"https://api.github.com/repos/pfps/yoga-laptop/issues/comments/104412817","html_url":"https://github.com/pfps/yoga-laptop/issues/39#issuecomment-104412817","issue_url":"https://api.github.com/repos/pfps/yoga-laptop/issues/39","id":104412817,"user":{"login":"bagage","id":1451988,"avatar_url":"https://avatars.githubusercontent.com/u/1451988?v=3","gravatar_id":"","url":"https://api.github.com/users/bagage","html_url":"https://github.com/bagage","followers_url":"https://api.github.com/users/bagage/followers","following_url":"https://api.github.com/users/bagage/following{/other_user}","gists_url":"https://api.github.com/users/bagage/gists{/gist_id}","starred_url":"https://api.github.com/users/bagage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagage/subscriptions","organizations_url":"https://api.github.com/users/bagage/orgs","repos_url":"https://api.github.com/users/bagage/repos","events_url":"https://api.github.com/users/bagage/events{/privacy}","received_events_url":"https://api.github.com/users/bagage/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T20:32:03Z","updated_at":"2015-05-21T20:32:03Z","body":"Well, adding the following \"patch\" seems to fix the issue:\r\n\r\n```\r\ndiff --git a/sensors/iio_utils.h b/sensors/iio_utils.h\r\nindex d6b7f07..ae0de51 100644\r\n--- a/sensors/iio_utils.h\r\n+++ b/sensors/iio_utils.h\r\n@@ -22,6 +22,10 @@\r\n const char *iio_dir = \"/sys/bus/iio/devices/\";\r\n const char *iio_debugfs_dir = \"/sys/kernel/debug/iio/\";\r\n \r\n+#ifndef inline\r\n+#define inline\r\n+#endif\r\n+\r\n /**\r\n  * iioutils_break_up_name() - extract generic name from full channel name\r\n  * @full_name: the full channel name\r\ndiff --git a/sensors/libs/iio_utils.h b/sensors/libs/iio_utils.h\r\nindex eba9e2d..ce64a84 100644\r\n--- a/sensors/libs/iio_utils.h\r\n+++ b/sensors/libs/iio_utils.h\r\n@@ -11,6 +11,7 @@\r\n #ifndef IIO_UTILS_H\r\n #define IIO_UTILS_H\r\n \r\n+\r\n #include <string.h>\r\n #include <stdlib.h>\r\n #include <ctype.h>\r\n@@ -28,6 +29,10 @@\r\n const char *iio_dir = \"/sys/bus/iio/devices/\";\r\n const char *iio_debugfs_dir = \"/sys/kernel/debug/iio/\";\r\n \r\n+#ifndef inline\r\n+#define inline\r\n+#endif\r\n+\r\n /**\r\n  * iioutils_break_up_name() - extract generic name from full channel name\r\n  * @full_name: the full channel name\r\n```"}}