{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/osquery/issues/2321","repository_url":"https://api.github.com/repos/facebook/osquery","labels_url":"https://api.github.com/repos/facebook/osquery/issues/2321/labels{/name}","comments_url":"https://api.github.com/repos/facebook/osquery/issues/2321/comments","events_url":"https://api.github.com/repos/facebook/osquery/issues/2321/events","html_url":"https://github.com/facebook/osquery/issues/2321","id":169623086,"number":2321,"title":"packaging osquery for Debian: help for ongoing issues","user":{"login":"sandrotosi","id":346648,"avatar_url":"https://avatars.githubusercontent.com/u/346648?v=3","gravatar_id":"","url":"https://api.github.com/users/sandrotosi","html_url":"https://github.com/sandrotosi","followers_url":"https://api.github.com/users/sandrotosi/followers","following_url":"https://api.github.com/users/sandrotosi/following{/other_user}","gists_url":"https://api.github.com/users/sandrotosi/gists{/gist_id}","starred_url":"https://api.github.com/users/sandrotosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandrotosi/subscriptions","organizations_url":"https://api.github.com/users/sandrotosi/orgs","repos_url":"https://api.github.com/users/sandrotosi/repos","events_url":"https://api.github.com/users/sandrotosi/events{/privacy}","received_events_url":"https://api.github.com/users/sandrotosi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/osquery/labels/build/test","name":"build/test","color":"bfd4f2"},{"url":"https://api.github.com/repos/facebook/osquery/labels/Linux","name":"Linux","color":"d4c5f9"},{"url":"https://api.github.com/repos/facebook/osquery/labels/packaging","name":"packaging","color":"c5def5"},{"url":"https://api.github.com/repos/facebook/osquery/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"theopolis","id":981645,"avatar_url":"https://avatars.githubusercontent.com/u/981645?v=3","gravatar_id":"","url":"https://api.github.com/users/theopolis","html_url":"https://github.com/theopolis","followers_url":"https://api.github.com/users/theopolis/followers","following_url":"https://api.github.com/users/theopolis/following{/other_user}","gists_url":"https://api.github.com/users/theopolis/gists{/gist_id}","starred_url":"https://api.github.com/users/theopolis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theopolis/subscriptions","organizations_url":"https://api.github.com/users/theopolis/orgs","repos_url":"https://api.github.com/users/theopolis/repos","events_url":"https://api.github.com/users/theopolis/events{/privacy}","received_events_url":"https://api.github.com/users/theopolis/received_events","type":"User","site_admin":false},"assignees":[{"login":"theopolis","id":981645,"avatar_url":"https://avatars.githubusercontent.com/u/981645?v=3","gravatar_id":"","url":"https://api.github.com/users/theopolis","html_url":"https://github.com/theopolis","followers_url":"https://api.github.com/users/theopolis/followers","following_url":"https://api.github.com/users/theopolis/following{/other_user}","gists_url":"https://api.github.com/users/theopolis/gists{/gist_id}","starred_url":"https://api.github.com/users/theopolis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theopolis/subscriptions","organizations_url":"https://api.github.com/users/theopolis/orgs","repos_url":"https://api.github.com/users/theopolis/repos","events_url":"https://api.github.com/users/theopolis/events{/privacy}","received_events_url":"https://api.github.com/users/theopolis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-05T14:43:18Z","updated_at":"2016-08-10T15:41:18Z","closed_at":null,"body":"Hello,\r\nseveral hours ago I sent a similar email to osquery@googlegroups.com, but i still dont see it published nor i received a moderation notification, so I'm writing here too, apologies for the cross-posting and feel free to close this issue if we can keep talking on google groups.\r\n\r\nI'm working at packaging osquery for inclusion in Debian as an\r\nofficial package, and I'm facing a few issues for which id like to ask\r\nyour help. I feel it might take a bit of back-and-forth to get them\r\nall iron out, so let's keep this chat going ;)\r\n\r\nyou at debian we are weird so i had to change slightly the build\r\nprocess (so we wont be able to run make deps) but i finally got to a\r\npoint were the code starts building.\r\n\r\ni got the first real issue when \"something\" in the build process\r\nstarted to MAKEFLAGS with the single letter \"w\", and that of course\r\nmesses up with make (it cant find a target named 'w' of course), so i\r\nneeded to get rid of $(MAKEFLAGS) from the all target in Makefile.\r\nhave you ever heard of that? but anyway that's minor and solved (more\r\nor less).\r\n\r\nwhat I'm stuck at now is the build of utils_amalgamation.cpp which\r\nfails with this error:\r\n\r\n```\r\ncd /home/morph/deb/osquery-1.8.1/build/sid && /usr/bin/cmake -E cmake_depends \"Unix Makefiles\" /home/morph/deb/osquery-1.8.1 /home/morph/deb/osquery-1.8.1/osquery /home/morph/deb/osquery-1.8.1/build/sid /home/morph/deb/osquery-1.8.1/build/sid/osquery /home/morph/deb/osquery-1.8.1/build/sid/osquery/CMakeFiles/osquery_amalgamation.dir/DependInfo.cmake --color=\r\nScanning dependencies of target osquery_amalgamation\r\nmake -f osquery/CMakeFiles/osquery_amalgamation.dir/build.make osquery/CMakeFiles/osquery_amalgamation.dir/build\r\n[  8%] Generating ../generated/tables_utils/file.cpp\r\n[  8%] Generating ../generated/tables_utils/hash.cpp\r\n[  8%] Generating ../generated/tables_utils/osquery_events.cpp\r\n[  8%] Generating ../generated/tables_utils/osquery_extensions.cpp\r\n[  8%] Generating ../generated/tables_utils/osquery_flags.cpp\r\n[  8%] Generating ../generated/tables_utils/osquery_info.cpp\r\n[  8%] Generating ../generated/tables_utils/osquery_packs.cpp\r\n[  8%] Generating ../generated/tables_utils/osquery_registry.cpp\r\n[  8%] Generating ../generated/tables_utils/osquery_schedule.cpp\r\n[  8%] Generating ../generated/tables_utils/time.cpp\r\n[  8%] Generating ../generated/utils_amalgamation.cpp\r\n[  8%] Building CXX object osquery/CMakeFiles/osquery_amalgamation.dir/__/generated/utils_amalgamation.cpp.o\r\ncd /home/morph/deb/osquery-1.8.1/build/sid/osquery && /usr/bin/c++   -DBOOST_NETWORK_ENABLE_HTTPS -DBOOST_NO_CXX11_VARIADIC_TEMPLATES -DDEBIAN -DDEBIAN_BASED=1 -DDEBIAN_SID -DHAS_SSL_TXT_TLSV1_2 -DNDEBUG -DNO_SSL_TXT_SSLV3 -DOSQUERY_BUILD_DISTRO=sid -DOSQUERY_BUILD_PLATFORM=debian -DOSQUERY_BUILD_SDK_VERSION=1.0.0 -DOSQUERY_THRIFT=\"\" -DOSQUERY_THRIFT_LIB=thrift -DOSQUERY_THRIFT_POINTER=boost -DOSQUERY_THRIFT_SERVER_LIB=thrift/server -DSTRIP_FLAG_HELP=1 -I/home/morph/deb/osquery-1.8.1/build/sid/generated/gen-cpp -I/home/morph/deb/osquery-1.8.1/include -I/home/morph/deb/osquery-1.8.1 -I/usr/local/include -I/home/morph/deb/osquery-1.8.1/third-party/sysroots/linux  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security     -std=c++11 -static -Wstrict-aliasing -Wno-missing-field-initializers -Wno-unused-local-typedef -Wno-unknown-warning-option -Wnon-virtual-dtor -Wchar-subscripts -Wpointer-arith -Woverloaded-virtual -Wformat -Wformat-security -Werror=format-security -Wabi-tag -fpermissive -fstack-protector-all -fPIE -fpie -fPIC -fpic -pipe -fdata-sections -ffunction-sections -Os -march=x86-64 -mno-avx -Wall -Wextra -Wno-unused-parameter -o CMakeFiles/osquery_amalgamation.dir/__/generated/utils_amalgamation.cpp.o -c /home/morph/deb/osquery-1.8.1/build/sid/generated/utils_amalgamation.cpp\r\nc++: error: /home/morph/deb/osquery-1.8.1/build/sid/generated/utils_amalgamation.cpp: No such file or directory\r\nc++: fatal error: no input files\r\ncompilation terminated.\r\nosquery/CMakeFiles/osquery_amalgamation.dir/build.make:162: recipe for target 'osquery/CMakeFiles/osquery_amalgamation.dir/__/generated/utils_amalgamation.cpp.o' failed\r\nmake[5]: *** [osquery/CMakeFiles/osquery_amalgamation.dir/__/generated/utils_amalgamation.cpp.o] Error 1\r\nCMakeFiles/Makefile2:563: recipe for target 'osquery/CMakeFiles/osquery_amalgamation.dir/all' failed\r\nmake[4]: *** [osquery/CMakeFiles/osquery_amalgamation.dir/all] Error 2\r\n```\r\n\r\ndo you know how to fix it?\r\n\r\nThanks a ton in advance and for your patience with our processes\r\n\r\nRegards,\r\nSandro"},"comment":{"url":"https://api.github.com/repos/facebook/osquery/issues/comments/238907980","html_url":"https://github.com/facebook/osquery/issues/2321#issuecomment-238907980","issue_url":"https://api.github.com/repos/facebook/osquery/issues/2321","id":238907980,"user":{"login":"theopolis","id":981645,"avatar_url":"https://avatars.githubusercontent.com/u/981645?v=3","gravatar_id":"","url":"https://api.github.com/users/theopolis","html_url":"https://github.com/theopolis","followers_url":"https://api.github.com/users/theopolis/followers","following_url":"https://api.github.com/users/theopolis/following{/other_user}","gists_url":"https://api.github.com/users/theopolis/gists{/gist_id}","starred_url":"https://api.github.com/users/theopolis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theopolis/subscriptions","organizations_url":"https://api.github.com/users/theopolis/orgs","repos_url":"https://api.github.com/users/theopolis/repos","events_url":"https://api.github.com/users/theopolis/events{/privacy}","received_events_url":"https://api.github.com/users/theopolis/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T15:41:18Z","updated_at":"2016-08-10T15:41:18Z","body":"Hey @sandrotosi, I'm failing to find a critical section in the CMake logic, or the dependencies it sets for the `utils_amalgamation` target. Does your build setup allow for some debugging? Can we see if:\r\n```\r\n/home/morph/deb/osquery-1.8.1/build/sid/generated/utils_amalgamation.cpp\r\n```\r\nexists? "}}
{"actor":{"display_login":"theopolis"}}