{"action":"created","issue":{"url":"https://api.github.com/repos/csound/csound/issues/570","labels_url":"https://api.github.com/repos/csound/csound/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/csound/csound/issues/570/comments","events_url":"https://api.github.com/repos/csound/csound/issues/570/events","html_url":"https://github.com/csound/csound/issues/570","id":123318981,"number":570,"title":"FTBFS with boost-1.60.0","user":{"login":"bavier","id":7989217,"avatar_url":"https://avatars.githubusercontent.com/u/7989217?v=3","gravatar_id":"","url":"https://api.github.com/users/bavier","html_url":"https://github.com/bavier","followers_url":"https://api.github.com/users/bavier/followers","following_url":"https://api.github.com/users/bavier/following{/other_user}","gists_url":"https://api.github.com/users/bavier/gists{/gist_id}","starred_url":"https://api.github.com/users/bavier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bavier/subscriptions","organizations_url":"https://api.github.com/users/bavier/orgs","repos_url":"https://api.github.com/users/bavier/repos","events_url":"https://api.github.com/users/bavier/events{/privacy}","received_events_url":"https://api.github.com/users/bavier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jpffitch","id":4377922,"avatar_url":"https://avatars.githubusercontent.com/u/4377922?v=3","gravatar_id":"","url":"https://api.github.com/users/jpffitch","html_url":"https://github.com/jpffitch","followers_url":"https://api.github.com/users/jpffitch/followers","following_url":"https://api.github.com/users/jpffitch/following{/other_user}","gists_url":"https://api.github.com/users/jpffitch/gists{/gist_id}","starred_url":"https://api.github.com/users/jpffitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpffitch/subscriptions","organizations_url":"https://api.github.com/users/jpffitch/orgs","repos_url":"https://api.github.com/users/jpffitch/repos","events_url":"https://api.github.com/users/jpffitch/events{/privacy}","received_events_url":"https://api.github.com/users/jpffitch/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-21T17:09:27Z","updated_at":"2015-12-28T13:33:29Z","closed_at":null,"body":"Building Csound with boost-1.60.0 produces the following compilation error\r\n\r\n```\r\nIn file included from /tmp/nix-build-csound-6.05.drv-1/Csound6.05/./include/csdl.h:110:0,\r\n                 from /tmp/nix-build-csound-6.05.drv-1/Csound6.05/./include/OpcodeBase.hpp:6,\r\n                 from /tmp/nix-build-csound-6.05.drv-1/Csound6.05/Opcodes/chua/ChuaOscillator.cpp:120:\r\n/tmp/nix-build-csound-6.05.drv-1/Csound6.05/./include/interlocks.h:40:12: error: expected identifier before ‘(’ token\r\n #define CB (0x0060)\r\n            ^\r\n/gnu/store/qr7v564lw46j7ak6k5va7l0kll77hfs5-boost-1.60.0/include/boost/type_traits/detail/composite_member_pointer_type.hpp:89:26: note: in expansion of macro ‘CB’\r\n template<class CT, class CB>\r\n                          ^\r\n/tmp/nix-build-csound-6.05.drv-1/Csound6.05/./include/interlocks.h:40:13: error: expected ‘)’ before numeric constant\r\n #define CB (0x0060)\r\n             ^\r\n```\r\n\r\nThe issue seems to be that in `Opcodes/chua/ChuaOscillator.cpp` the `include/csdl.h` gets included before the boost headers, and the definition of the macro `CB` in the former interferes with template declarations in latter.\r\n\r\nA simple fix might be to change the order of the includes:\r\n\r\n```\r\n--- Csound6.05/Opcodes/chua/ChuaOscillator.cpp\t2015-04-25 14:06:22.995646234 -0500\r\n+++ Csound6.05/Opcodes/chua/ChuaOscillator.cpp\t2015-12-21 10:31:58.182362640 -0600\r\n@@ -117,11 +117,12 @@\r\n //     d = sys_variables(12);\r\n //     gnor = a*(x.^3) + b*(x.^2) + c*x + d;\r\n\r\n-#include <OpcodeBase.hpp>\r\n #include <boost/numeric/ublas/vector.hpp>\r\n using namespace boost::numeric;\r\n #include <cmath>\r\n\r\n+#include <OpcodeBase.hpp>\r\n+\r\n #undef CS_KSMPS\r\n #define CS_KSMPS     (opds.insdshead->ksmps)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/csound/csound/issues/comments/167569686","html_url":"https://github.com/csound/csound/issues/570#issuecomment-167569686","issue_url":"https://api.github.com/repos/csound/csound/issues/570","id":167569686,"user":{"login":"ainola","id":5383525,"avatar_url":"https://avatars.githubusercontent.com/u/5383525?v=3","gravatar_id":"","url":"https://api.github.com/users/ainola","html_url":"https://github.com/ainola","followers_url":"https://api.github.com/users/ainola/followers","following_url":"https://api.github.com/users/ainola/following{/other_user}","gists_url":"https://api.github.com/users/ainola/gists{/gist_id}","starred_url":"https://api.github.com/users/ainola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ainola/subscriptions","organizations_url":"https://api.github.com/users/ainola/orgs","repos_url":"https://api.github.com/users/ainola/repos","events_url":"https://api.github.com/users/ainola/events{/privacy}","received_events_url":"https://api.github.com/users/ainola/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T13:33:28Z","updated_at":"2015-12-28T13:33:28Z","body":"I can confirm the fix (boost 1.60.0, archlinux)"}}