{"action":"created","issue":{"url":"https://api.github.com/repos/zevv/duc/issues/90","labels_url":"https://api.github.com/repos/zevv/duc/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/zevv/duc/issues/90/comments","events_url":"https://api.github.com/repos/zevv/duc/issues/90/events","html_url":"https://github.com/zevv/duc/issues/90","id":75851872,"number":90,"title":"Problem building duc-1.2 on Solaris 11.2 x86_64","user":{"login":"stuartthebruce","id":12385914,"avatar_url":"https://avatars.githubusercontent.com/u/12385914?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartthebruce","html_url":"https://github.com/stuartthebruce","followers_url":"https://api.github.com/users/stuartthebruce/followers","following_url":"https://api.github.com/users/stuartthebruce/following{/other_user}","gists_url":"https://api.github.com/users/stuartthebruce/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartthebruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartthebruce/subscriptions","organizations_url":"https://api.github.com/users/stuartthebruce/orgs","repos_url":"https://api.github.com/users/stuartthebruce/repos","events_url":"https://api.github.com/users/stuartthebruce/events{/privacy}","received_events_url":"https://api.github.com/users/stuartthebruce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-05-13T05:23:59Z","updated_at":"2015-05-16T03:45:22Z","closed_at":null,"body":"An attempt to build duc-1.2 on Solaris 11.2 x86_64 fails first at,\r\n\r\nIn file included from src/libduc/private.h:4:0,\r\n                 from src/libduc/buffer.c:11:\r\nsrc/libduc/duc.h:79:12: error: ‘NAME_MAX’ undeclared here (not in a function)\r\n\r\nReplacing NAME_MAX with MAXNAMLEN as suggested here,\r\nhttps://www.midnight-commander.org/ticket/1943\r\nthen gets to,\r\n\r\ngcc -DHAVE_CONFIG_H -I.    -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -D_REENTRANT -D_PTHREADS -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -D_REENTRANT -D_PTHREADS -D_POSIX_PTHREAD_SEMANTICS -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/opt/csw/include    -Isrc/libduc -Isrc/libduc-graph -g -O2 -MT src/libduc/db.o -MD -MP -MF $depbase.Tpo -c -o src/libduc/db.o src/libduc/db.c &&\\\r\nmv -f $depbase.Tpo $depbase.Po\r\nsrc/libduc/db.c: In function ‘db_write_dir’:\r\nsrc/libduc/db.c:40:19: error: ‘DT_DIR’ undeclared (first use in this function)\r\nsrc/libduc/db.c:40:19: note: each undeclared identifier is reported only once for each function it appears in\r\nsrc/libduc/db.c: In function ‘db_read_dir’:\r\nsrc/libduc/db.c:102:14: error: ‘DT_DIR’ undeclared (first use in this function)\r\ngmake[1]: *** [src/libduc/db.o] Error 1\r\n\r\nI haven't tried a fix for that yet, but would something like the following be appropriate?\r\nhttp://notmuchmail.org/pipermail/notmuch/2009/001002.html\r\n\r\nP.S. I am actually much more interested in getting this to work on Solaris than OS X since we have a number of large Solaris filesystems that I am currently indexing with duc over NFS to Linux clients that I would rather index directly on the fileservers if possible. FWIW, I believe I got an earlier release to compile a few months ago without running into DT_DIR.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/zevv/duc/issues/comments/102568896","html_url":"https://github.com/zevv/duc/issues/90#issuecomment-102568896","issue_url":"https://api.github.com/repos/zevv/duc/issues/90","id":102568896,"user":{"login":"stuartthebruce","id":12385914,"avatar_url":"https://avatars.githubusercontent.com/u/12385914?v=3","gravatar_id":"","url":"https://api.github.com/users/stuartthebruce","html_url":"https://github.com/stuartthebruce","followers_url":"https://api.github.com/users/stuartthebruce/followers","following_url":"https://api.github.com/users/stuartthebruce/following{/other_user}","gists_url":"https://api.github.com/users/stuartthebruce/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartthebruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartthebruce/subscriptions","organizations_url":"https://api.github.com/users/stuartthebruce/orgs","repos_url":"https://api.github.com/users/stuartthebruce/repos","events_url":"https://api.github.com/users/stuartthebruce/events{/privacy}","received_events_url":"https://api.github.com/users/stuartthebruce/received_events","type":"User","site_admin":false},"created_at":"2015-05-16T03:45:22Z","updated_at":"2015-05-16T03:45:22Z","body":"\n> On May 15, 2015, at 3:57 PM, John <notifications@github.com> wrote:\n> \n> \n> Guys,\n> \n> I can do test builds on Solaris 5.8,9,10 Sparc, and 5.10 Intel next\n> week. Though getting Tokyocabinet and other pre-reqs installed might\n> be a hassle…\n\nFWIW, I am personally only interested in Solaris 11.2 on Intel.\nThat version has enough open source tools bundled that I believe\nall you need to install is Tokyocabinet, which is available via\nOpenCSW. However, older versions of Solaris may require you install\nadditional packages needed by duc.\n\n> \n> So that should inspire me to get the indexing only part working in\n> configure.ac as well, so that we can index from Solaris and display on\n> linux.\n\nThat would be great, and is my primary use case, i.e., index on Solaris\nand display (primarily via cgi) on Linux.\n\nThanks.\n\n--\nStuart Anderson  anderson@ligo.caltech.edu\nhttp://www.ligo.caltech.edu/~anderson\n\n\n\n"}}