{"action":"closed","issue":{"url":"https://api.github.com/repos/balabit/syslog-ng/issues/470","labels_url":"https://api.github.com/repos/balabit/syslog-ng/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/balabit/syslog-ng/issues/470/comments","events_url":"https://api.github.com/repos/balabit/syslog-ng/issues/470/events","html_url":"https://github.com/balabit/syslog-ng/issues/470","id":71670089,"number":470,"title":"[openbsd] build problem - error: expected specifier-qualifier-list before 'time_t'","user":{"login":"jirib","id":46245,"avatar_url":"https://avatars.githubusercontent.com/u/46245?v=3","gravatar_id":"","url":"https://api.github.com/users/jirib","html_url":"https://github.com/jirib","followers_url":"https://api.github.com/users/jirib/followers","following_url":"https://api.github.com/users/jirib/following{/other_user}","gists_url":"https://api.github.com/users/jirib/gists{/gist_id}","starred_url":"https://api.github.com/users/jirib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirib/subscriptions","organizations_url":"https://api.github.com/users/jirib/orgs","repos_url":"https://api.github.com/users/jirib/repos","events_url":"https://api.github.com/users/jirib/events{/privacy}","received_events_url":"https://api.github.com/users/jirib/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balabit/syslog-ng/labels/in%20progress","name":"in progress","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"bazsi","id":714102,"avatar_url":"https://avatars.githubusercontent.com/u/714102?v=3","gravatar_id":"","url":"https://api.github.com/users/bazsi","html_url":"https://github.com/bazsi","followers_url":"https://api.github.com/users/bazsi/followers","following_url":"https://api.github.com/users/bazsi/following{/other_user}","gists_url":"https://api.github.com/users/bazsi/gists{/gist_id}","starred_url":"https://api.github.com/users/bazsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazsi/subscriptions","organizations_url":"https://api.github.com/users/bazsi/orgs","repos_url":"https://api.github.com/users/bazsi/repos","events_url":"https://api.github.com/users/bazsi/events{/privacy}","received_events_url":"https://api.github.com/users/bazsi/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-04-28T18:43:50Z","updated_at":"2015-05-12T17:11:03Z","closed_at":"2015-05-12T17:11:03Z","body":"I tried to build 3.6.2 on OpenBSD 5.7 amd64 snapshost (Fri Apr 24 12:59:17 MDT 2015) and it fails because of time_t.\r\n\r\n```\r\ncc -std=gnu99 -DHAVE_CONFIG_H -I. -I./lib -I./modules -I./lib -I./modules -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/eventlog -I/usr/local/include -I/usr/include/openssl -I/usr/include/openssl -I/usr/local/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -O0 -g -I/usr/local/include -Wall -pthread -MT lib/compat/lib_libsyslog_ng_la-getutent.lo -MD -MP -MF lib/compat/.deps/lib_libsyslog_ng_la-getutent.Tpo -c lib/compat/getutent.c -fPIC -DPIC -o lib/compat/.libs/lib_libsyslog_ng_la-getutent.o\r\nIn file included from ./lib/compat/getutent.h:34,\r\n                 from lib/compat/getutent.c:25:\r\n/usr/include/utmp.h:57: error: expected specifier-qualifier-list before 'time_t'\r\n/usr/include/utmp.h:66: error: expected specifier-qualifier-list before 'time_t'\r\nError while executing cc -std=gnu99 -DHAVE_CONFIG_H -I. -I./lib -I./modules -I./lib -I./modules -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/eventlog -I/usr/local/include -I/usr/include/openssl -I/usr/include/openssl -I/usr/local/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -O0 -g -I/usr/local/include -Wall -pthread -MT lib/compat/lib_libsyslog_ng_la-getutent.lo -MD -MP -MF lib/compat/.deps/lib_libsyslog_ng_la-getutent.Tpo -c lib/compat/getutent.c -fPIC -DPIC -o lib/compat/.libs/lib_libsyslog_ng_la-getutent.o\r\nMakefile:7472: recipe for target 'lib/compat/lib_libsyslog_ng_la-getutent.lo' failed\r\ngmake[2]: *** [lib/compat/lib_libsyslog_ng_la-getutent.lo] Error 2\r\nMakefile:9846: recipe for target 'all-recursive' failed\r\ngmake[1]: *** [all-recursive] Error 1\r\nMakefile:4042: recipe for target 'all' failed\r\ngmake: *** [all] Error 2\r\n*** Error 2 in . (/home/jirib/cvs/openbsd-ports/infrastructure/mk/bsd.port.mk:2755 '/home/jirib/openbsd/pobj/syslog-ng-3.6.2/.build_done')\r\n*** Error 1 in /home/jirib/git/openbsd-mystuff/sysutils/syslog-ng (/home/jirib/cvs/openbsd-ports/infrastructure/mk/bsd.port.mk:2477 'all')\r\n```\r\n\r\nhttp://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/include/utmp.h?rev=1.6\r\n\r\n```\r\n     56 struct lastlog {\r\n     57         time_t  ll_time;\r\n     58         char    ll_line[UT_LINESIZE];\r\n     59         char    ll_host[UT_HOSTSIZE];\r\n     60 };\r\n     61\r\n     62 struct utmp {\r\n     63         char    ut_line[UT_LINESIZE];\r\n     64         char    ut_name[UT_NAMESIZE];\r\n     65         char    ut_host[UT_HOSTSIZE];\r\n     66         time_t  ut_time;\r\n     67 };\r\n     68\r\n     69 #endif /* !_UTMP_H_ */\r\n```"}}