{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/osquery/issues/3224","repository_url":"https://api.github.com/repos/facebook/osquery","labels_url":"https://api.github.com/repos/facebook/osquery/issues/3224/labels{/name}","comments_url":"https://api.github.com/repos/facebook/osquery/issues/3224/comments","events_url":"https://api.github.com/repos/facebook/osquery/issues/3224/events","html_url":"https://github.com/facebook/osquery/issues/3224","id":224599901,"number":3224,"title":"Yara-related linker errors with 2.4.0 on FreeBSD","user":{"login":"lxcode","id":1959603,"avatar_url":"https://avatars0.githubusercontent.com/u/1959603?v=3","gravatar_id":"","url":"https://api.github.com/users/lxcode","html_url":"https://github.com/lxcode","followers_url":"https://api.github.com/users/lxcode/followers","following_url":"https://api.github.com/users/lxcode/following{/other_user}","gists_url":"https://api.github.com/users/lxcode/gists{/gist_id}","starred_url":"https://api.github.com/users/lxcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxcode/subscriptions","organizations_url":"https://api.github.com/users/lxcode/orgs","repos_url":"https://api.github.com/users/lxcode/repos","events_url":"https://api.github.com/users/lxcode/events{/privacy}","received_events_url":"https://api.github.com/users/lxcode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-26T21:08:17Z","updated_at":"2017-04-26T21:08:17Z","closed_at":null,"body":"With yara and yara_events un-blacklisted, an error occurs when linking osqueryd:\r\n\r\n`[ 98%] Linking CXX executable osqueryd\r\ncd /root/osquery-port/work/.build/osquery && /usr/local/bin/cmake -E cmake_echo_color --cyan --bold --\\ Building\\ osqueryd:\\ /root/osquery-port/work/.build/osquery/osqueryd\r\n-- Building osqueryd: /root/osquery-port/work/.build/osquery/osqueryd\r\ncd /root/osquery-port/work/.build/osquery && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/daemon.dir/link.txt --verbose=1\r\n/usr/bin/c++  -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing   -fstack-protector CMakeFiles/daemon.dir/main/posix/daemon.cpp.o  -o osqueryd -Wl,-whole-archive libosquery.a -Wl,-no-whole-archive -Wl,-whole-archive libosquery_additional.a -Wl,-no-whole-archive -lz /usr/local/lib/libgflags.so /usr/local/lib/libthrift.so /usr/local/lib/liblz4.so /usr/local/lib/libglog.so /usr/local/lib/libicuuc.so /usr/local/lib/libboost_system.so /usr/local/lib/libboost_filesystem.so /usr/local/lib/libboost_thread.so /usr/local/lib/libboost_context.so -lrt -lc -llzma -rdynamic -Wl,-zrelro -Wl,-znow -pie /usr/local/lib/librocksdb-lite.so /usr/local/lib/libboost_regex.so /usr/local/lib/libcppnetlib-uri.so /usr/local/lib/libcppnetlib-client-connections.so /usr/local/lib/libsnappy.so -lssl /usr/local/lib/libyara.so -lcrypto -lpthread /usr/local/lib/liblinenoise.a -lbz2 -lprocstat -lutil -lkvm -lelf /usr/local/lib/liblldpctl.so -lmagic /usr/local/lib/libtsk.so /usr/local/lib/libaugeas.so /usr/local/lib/libfa.so /usr/local/lib/libxml2.so\r\nlibosquery_additional.a(additional_amalgamation.cpp.o): In function 'osquery::yaraTablePlugin::generate(osquery::QueryContext&)':\r\n/root/osquery-port/work/.build/generated/additional_amalgamation.cpp:(.text._ZN7osquery15yaraTablePlugin8generateERNS_12QueryContextE[_ZN7osquery15yaraTablePlugin8generateERNS_12QueryContextE]+0x20): undefined reference to 'osquery::tables::genYara(osquery::QueryContext&)'\r\nc++: error: linker command failed with exit code 1 (use -v to see invocation)\r\ngmake[4]: *** [osquery/CMakeFiles/daemon.dir/build.make:135: osquery/osqueryd] Error 1\r\ngmake[4]: Leaving directory '/root/osquery-port/work/.build'\r\ngmake[3]: *** [CMakeFiles/Makefile2:523: osquery/CMakeFiles/daemon.dir/all] Error 2\r\ngmake[3]: Leaving directory '/root/osquery-port/work/.build'\r\ngmake[2]: *** [Makefile:144: all] Error 2\r\ngmake[2]: Leaving directory '/root/osquery-port/work/.build'\r\n*** Error code 1`"}}
{"actor":{"display_login":"lxcode"}}