{"action":"created","issue":{"url":"https://api.github.com/repos/mheily/relaunchd/issues/1","labels_url":"https://api.github.com/repos/mheily/relaunchd/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mheily/relaunchd/issues/1/comments","events_url":"https://api.github.com/repos/mheily/relaunchd/issues/1/events","html_url":"https://github.com/mheily/relaunchd/issues/1","id":115182978,"number":1,"title":"use libucl instead of jsmn","user":{"login":"mheily","id":6631648,"avatar_url":"https://avatars.githubusercontent.com/u/6631648?v=3","gravatar_id":"","url":"https://api.github.com/users/mheily","html_url":"https://github.com/mheily","followers_url":"https://api.github.com/users/mheily/followers","following_url":"https://api.github.com/users/mheily/following{/other_user}","gists_url":"https://api.github.com/users/mheily/gists{/gist_id}","starred_url":"https://api.github.com/users/mheily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheily/subscriptions","organizations_url":"https://api.github.com/users/mheily/orgs","repos_url":"https://api.github.com/users/mheily/repos","events_url":"https://api.github.com/users/mheily/events{/privacy}","received_events_url":"https://api.github.com/users/mheily/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mheily/relaunchd/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-05T00:37:16Z","updated_at":"2015-12-15T03:14:42Z","closed_at":null,"body":"On a recent BSD Now podcast, Allan Jude suggested that launchd should use UCL instead of JSON, because it supports more features like comments and YAML.\r\n\r\nTake a look, and see how hard it would be to use:\r\nhttps://github.com/vstakhov/libucl"},"comment":{"url":"https://api.github.com/repos/mheily/relaunchd/issues/comments/164631990","html_url":"https://github.com/mheily/relaunchd/issues/1#issuecomment-164631990","issue_url":"https://api.github.com/repos/mheily/relaunchd/issues/1","id":164631990,"user":{"login":"mheily","id":6631648,"avatar_url":"https://avatars.githubusercontent.com/u/6631648?v=3","gravatar_id":"","url":"https://api.github.com/users/mheily","html_url":"https://github.com/mheily","followers_url":"https://api.github.com/users/mheily/followers","following_url":"https://api.github.com/users/mheily/following{/other_user}","gists_url":"https://api.github.com/users/mheily/gists{/gist_id}","starred_url":"https://api.github.com/users/mheily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheily/subscriptions","organizations_url":"https://api.github.com/users/mheily/orgs","repos_url":"https://api.github.com/users/mheily/repos","events_url":"https://api.github.com/users/mheily/events{/privacy}","received_events_url":"https://api.github.com/users/mheily/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T03:14:42Z","updated_at":"2015-12-15T03:14:42Z","body":"This has been merged to master, however trying to link with the vendor/ucl library causes a DWARF version mismatch.\r\n```\r\nGNU gdb 6.1.1 [FreeBSD]\r\nCopyright 2004 Free Software Foundation, Inc.\r\nGDB is free software, covered by the GNU General Public License, and you are\r\nwelcome to change it and/or distribute copies of it under certain conditions.\r\nType \"show copying\" to see the conditions.\r\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\r\nThis GDB was configured as \"amd64-marcel-freebsd\"...Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/home/mark/proj/relaunchd/test/manifest-test]\r\n\r\n(gdb) q\r\n```\r\nI traced this down to the object files that libucl builds:\r\n```\r\ncc -c -I.. -ggdb -O0 -DUNIT_TEST -DDEBUG -I../vendor/libucl/include -O2 -pipe   -o job.o ../job.c\r\ncc -c -I.. -ggdb -O0 -DUNIT_TEST -DDEBUG -I../vendor/libucl/include -O2 -pipe   -o manifest.o ../manifest.c\r\ncc -c -I.. -ggdb -O0 -DUNIT_TEST -DDEBUG -I../vendor/libucl/include -O2 -pipe   -o socket.o ../socket.c\r\ncc -c -I.. -ggdb -O0 -DUNIT_TEST -DDEBUG -I../vendor/libucl/include -O2 -pipe   -o timer.o ../timer.c\r\ncc -c -I.. -ggdb -O0 -DUNIT_TEST -DDEBUG -I../vendor/libucl/include -O2 -pipe   -o log.o ../log.c\r\ncc -ggdb -O0 -o manifest-test manifest-test.c job.o manifest.o socket.o  timer.o log.o ../vendor/libucl/src/*.o \r\n/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.\r\n../vendor/libucl/src/libucl_la-ucl_schema.o: In function `ucl_schema_validate_number':\r\nucl_schema.c:(.text+0x1407): undefined reference to `remainder'\r\ncc: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```"}}