{"action":"created","issue":{"url":"https://api.github.com/repos/sahib/rmlint/issues/121","labels_url":"https://api.github.com/repos/sahib/rmlint/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/sahib/rmlint/issues/121/comments","events_url":"https://api.github.com/repos/sahib/rmlint/issues/121/events","html_url":"https://github.com/sahib/rmlint/issues/121","id":74983554,"number":121,"title":"Failed to build under FreeBSD 10.1-STABLE","user":{"login":"iron-udjin","id":1779285,"avatar_url":"https://avatars.githubusercontent.com/u/1779285?v=3","gravatar_id":"","url":"https://api.github.com/users/iron-udjin","html_url":"https://github.com/iron-udjin","followers_url":"https://api.github.com/users/iron-udjin/followers","following_url":"https://api.github.com/users/iron-udjin/following{/other_user}","gists_url":"https://api.github.com/users/iron-udjin/gists{/gist_id}","starred_url":"https://api.github.com/users/iron-udjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iron-udjin/subscriptions","organizations_url":"https://api.github.com/users/iron-udjin/orgs","repos_url":"https://api.github.com/users/iron-udjin/repos","events_url":"https://api.github.com/users/iron-udjin/events{/privacy}","received_events_url":"https://api.github.com/users/iron-udjin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-10T19:23:40Z","updated_at":"2015-05-11T02:58:55Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to build rmlint-2.2.0 under FreeBSD 10.1-STABLE r282569M. Here is output:\r\n```\r\n$ scons\r\nscons: Reading SConscript files ...\r\nChecking whether the C compiler works(cached) yes\r\nChecking for git revision... fatal: Not a git repository (or any parent up to mount point /usr/home)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\nUnable to find git revision.\r\n(cached) unknown\r\nChecking for pkg-config... (cached) yes\r\nChecking for glib-2.0 >= 2.32... (cached) yes\r\nChecking for gio-unix-2.0... (cached) yes\r\nChecking for blkid... (cached) no\r\nChecking for json-glib-1.0... (cached) yes\r\nChecking for -std=c11 support...(cached) yes\r\nChecking whether __SSE4_2__ is declared... (cached) yes\r\nChecking whether blkid_devno_to_wholedisk is declared... (cached) no\r\nChecking for existence of /sys/block... (cached) no\r\nChecking for C function sysctlbyname()... (cached) yes\r\nChecking for C header file libelf.h... (cached) yes\r\nChecking for C library libelf... (cached) yes\r\nChecking for C type struct fiemap... (cached) no\r\nChecking for C function getxattr()... (cached) no\r\nChecking size of off_t ... (cached) yes\r\nChecking for C function stat64()... (cached) no\r\nChecking whether G_CHECKSUM_SHA512 is declared... (cached) yes\r\nChecking for C header file locale.h... (cached) yes\r\nChecking for C header file sqlite3.h... (cached) yes\r\nChecking for C library sqlite3... (cached) yes\r\nscons: done reading SConscript files.\r\nscons: Building targets ...\r\nBuilding manpage from rst...\r\nUsing sphinx-build binary: /usr/local/bin/sphinx-build\r\nCannot import sphinx_bootstrap_theme; falling back to `nature`.\r\ngzip_file([\"docs/rmlint.1.gz\"], [\"docs/_build/man/rmlint.1\"])\r\nbuild_config_template([\"lib/config.h\"], [\"lib/config.h.in\"])\r\nCompiling ==> lib/cmdline.c\r\nIn file included from /usr/include/_ctype.h:94:0,\r\n                 from /usr/include/ctype.h:46,\r\n                 from lib/cmdline.c:30:\r\n/usr/include/runetype.h:92:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'\r\n extern _Thread_local const _RuneLocale *_ThreadRuneLocale;\r\n                      ^\r\n/usr/include/runetype.h: In function '__getCurrentRuneLocale':\r\n/usr/include/runetype.h:96:6: error: '_ThreadRuneLocale' undeclared (first use in this function)\r\n  if (_ThreadRuneLocale) \r\n      ^\r\n/usr/include/runetype.h:96:6: note: each undeclared identifier is reported only once for each function it appears in\r\nscons: *** [lib/cmdline.o] Error 1\r\nscons: building terminated because of errors\r\n```\r\n```\r\n$ cc -v\r\nFreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512\r\nTarget: x86_64-unknown-freebsd10.1\r\nThread model: posix\r\n```\r\n\r\n```\r\n$ scons --version\r\nSCons by Steven Knight et al.:\r\n\tscript: v2.3.0, 2013/03/03 09:48:35, by garyo on reepicheep\r\n\tengine: v2.3.0, 2013/03/03 09:48:35, by garyo on reepicheep\r\n\tengine path: ['/usr/local/lib/scons-2.3.0/SCons']\r\nCopyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 The SCons Foundation\r\n```"},"comment":{"url":"https://api.github.com/repos/sahib/rmlint/issues/comments/100750025","html_url":"https://github.com/sahib/rmlint/issues/121#issuecomment-100750025","issue_url":"https://api.github.com/repos/sahib/rmlint/issues/121","id":100750025,"user":{"login":"iron-udjin","id":1779285,"avatar_url":"https://avatars.githubusercontent.com/u/1779285?v=3","gravatar_id":"","url":"https://api.github.com/users/iron-udjin","html_url":"https://github.com/iron-udjin","followers_url":"https://api.github.com/users/iron-udjin/followers","following_url":"https://api.github.com/users/iron-udjin/following{/other_user}","gists_url":"https://api.github.com/users/iron-udjin/gists{/gist_id}","starred_url":"https://api.github.com/users/iron-udjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iron-udjin/subscriptions","organizations_url":"https://api.github.com/users/iron-udjin/orgs","repos_url":"https://api.github.com/users/iron-udjin/repos","events_url":"https://api.github.com/users/iron-udjin/events{/privacy}","received_events_url":"https://api.github.com/users/iron-udjin/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T02:58:55Z","updated_at":"2015-05-11T02:58:55Z","body":"Finally I compilled it after I replaced all:\r\n```\r\n#include <linux/limits.h>\r\n```\r\nto:\r\n```\r\n#include <limits.h>\r\n```\r\n\r\nBut when I tried to run it, I got:\r\n```\r\n# ./rmlint --progress /usr/ports/\r\n▕░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▏                                                                                                     Traversing (119213 usable files / 3 + 0 ignored files / folders)\r\n▕░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▏                                                                                                Preprocessing (fiemap: +114981 -114981 #114984 / found 19 other lint)\r\n▕░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▏                                                                                                      Matching (2180 dupes of 1446 originals; 0 B to scan in 0 files)\r\n\r\n==> In total 119213 files, whereof 2180 are duplicates in 1446 groups.\r\n==> This equals 1.90 MB of duplicates which could be removed.\r\n==> 19 other suspicious item(s) found, which may vary in size.\r\n\r\nWrote a json file to: /root/rmlint-2.2.0/rmlint.json\r\nWrote a sh file to: /root/rmlint-2.2.0/rmlint.sh\r\nThread 401ac00 has exited with leftover thread-specific data afteTrh r4e adde s3tbr62ucc0t0o rh aist eerxaittieodn sw\r\nith leftover thread-specific data after 4 destructor iterations\r\nThread 3fbe800 has exited with leftover thread-specific data after 4 destructor iterations\r\nThread 3c6fc0Thre0ad  h4a0s1 be0x0i0t ehda swit h elxeiftteodv ewri tthh rleeafdt-osvpeerc iTtfhhircreead adda t3ab 6a3f4t0e0r  h4a sd eesxtirtuec-d twoisrpte hciitfei cl efrtdataitoonas \r\navfer ttherre a4d -desstpreuccitoTrf hiircet addeTa 3hrrtfab daTact0iho0TTrneafherast\r\ne rhde a d4ha 3 dd e4rsesb06324 0e1xaitTr08t0edu f hTahcrtbwe0 Thhor0aThdarre ehreesa ads ad0 ieitther0x i  tlea3t4i eedf f014addx3t ov0e1bi4b8o0 Trhh3ct60 hr a0afsbnebwdit hfe8t84s0exi tla000 de0 0h0r xesd\r\n3 b ihhteeef6h3a adasd-0ses t oe00pd e cwihtehx viia shwaxs eeaxsitit re  x exelietffteiiteetd hdt clefowii  dd wdv iwiwatietrtwtiah hlteeftovreettr  ttharodh htrdv-espl eehhr  tehera awd-hs d -lfiptciafleflheesapeefecifitcteocfiifttvoo ficd e-s dacvpetveerr  dlacttiaf t hr ateicotrr dafftverh ratteeh rth4roreaea  adveesftda d-rs etaafatddr-asdpeec-pshtutceiet-psra fcroepee4  iafard i 4ficcicdecs d-asfpititf tdar err4e dc aefu c tiict e4r sdtadcdiestattro r f eiacudceat4  airtatat add saifteaerrtuofoar cetr ns satftr4t\r\nitteatue oi trc rt ore orn s\r\n4driut4  eaifreardaedtsetrtustctre r4tcoito nr sitdeeraoutrousrc sins\r\ncttotttor\r\nireir uoctn rtaietorrsi\r\nt ieaetttriaetiioorornast\r\nnniaoTss\r\nt\r\nnhisroen\r\ns\r\nad 441d800 has exited with leftover thread-specific data after 4 destructor iterations\r\n```\r\n\r\nIt seems something wrong with threads. But at least it works."}}