{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/wormhole/issues/59","labels_url":"https://api.github.com/repos/dmlc/wormhole/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/wormhole/issues/59/comments","events_url":"https://api.github.com/repos/dmlc/wormhole/issues/59/events","html_url":"https://github.com/dmlc/wormhole/issues/59","id":128419964,"number":59,"title":"Conflict between dynamic and static glog linkages in OS-X","user":{"login":"shilad","id":329888,"avatar_url":"https://avatars.githubusercontent.com/u/329888?v=3","gravatar_id":"","url":"https://api.github.com/users/shilad","html_url":"https://github.com/shilad","followers_url":"https://api.github.com/users/shilad/followers","following_url":"https://api.github.com/users/shilad/following{/other_user}","gists_url":"https://api.github.com/users/shilad/gists{/gist_id}","starred_url":"https://api.github.com/users/shilad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shilad/subscriptions","organizations_url":"https://api.github.com/users/shilad/orgs","repos_url":"https://api.github.com/users/shilad/repos","events_url":"https://api.github.com/users/shilad/events{/privacy}","received_events_url":"https://api.github.com/users/shilad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-24T19:43:28Z","updated_at":"2016-01-28T13:31:42Z","closed_at":null,"body":"When I build, for example, `linear`, the very last step is the following:\r\n\r\n```\r\ng++-4.9 -ggdb -O3 -ggdb -Wall -std=c++11 -I./ -I../ -I../../repo/ps-lite/src -I../../repo/dmlc-core/include \r\n    -I../../repo/dmlc-core/src -I/dir/Projects/wormhole/deps/include -fPIC -DDMLC_USE_HDFS=0 \r\n    -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DDMLC_USE_AZURE=0  \r\n     build/config.pb.o build/linear.o ../../repo/dmlc-core/libdmlc.a ../../repo/ps-lite/build/libps.a \r\n    -lglog /dir/Projects/wormhole/deps/lib/libprotobuf.a /dir/Projects/wormhole/deps/lib/libglog.a\r\n    /dir/Projects/wormhole/deps/lib/libgflags.a /dir/Projects/wormhole/deps/lib/libzmq.a \r\n    /dir/Projects/wormhole/deps/lib/libcityhash.a /dir/Projects/wormhole/deps/lib/liblz4.a  \r\n    -o build/linear.dmlc\r\n```\r\n\r\nNotice both the inclusion of `-lglog` (the only shared lib) and `libglog.a`. This triggers a segfault, as described in https://github.com/google/glog/issues/53.\r\n\r\nManually removing the shared lib in the last step fixes the problem, but I'm not sure how to properly address this."},"comment":{"url":"https://api.github.com/repos/dmlc/wormhole/issues/comments/176186464","html_url":"https://github.com/dmlc/wormhole/issues/59#issuecomment-176186464","issue_url":"https://api.github.com/repos/dmlc/wormhole/issues/59","id":176186464,"user":{"login":"brickerino","id":757324,"avatar_url":"https://avatars.githubusercontent.com/u/757324?v=3","gravatar_id":"","url":"https://api.github.com/users/brickerino","html_url":"https://github.com/brickerino","followers_url":"https://api.github.com/users/brickerino/followers","following_url":"https://api.github.com/users/brickerino/following{/other_user}","gists_url":"https://api.github.com/users/brickerino/gists{/gist_id}","starred_url":"https://api.github.com/users/brickerino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickerino/subscriptions","organizations_url":"https://api.github.com/users/brickerino/orgs","repos_url":"https://api.github.com/users/brickerino/repos","events_url":"https://api.github.com/users/brickerino/events{/privacy}","received_events_url":"https://api.github.com/users/brickerino/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T13:31:42Z","updated_at":"2016-01-28T13:31:42Z","body":">Commenting out the update to DMLC_LDFLAGS in line 73 of dmlc.mk in dmlc-core seems to fix this, but that doesn't seem like the correct solution.\r\n\r\nSo, what causes your hesitation exactly? Your should link only one version of library. I think this is just a mistake in make file and doen't bear deep meaning."}}