{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/logstash-forwarder/issues/20","labels_url":"https://api.github.com/repos/elasticsearch/logstash-forwarder/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/logstash-forwarder/issues/20/comments","events_url":"https://api.github.com/repos/elasticsearch/logstash-forwarder/issues/20/events","html_url":"https://github.com/elasticsearch/logstash-forwarder/issues/20","id":10231310,"number":20,"title":"portability issues on HP-UX","user":{"login":"Nagilum23","id":1509175,"avatar_url":"https://avatars.githubusercontent.com/u/1509175?v=3","gravatar_id":"","url":"https://api.github.com/users/Nagilum23","html_url":"https://github.com/Nagilum23","followers_url":"https://api.github.com/users/Nagilum23/followers","following_url":"https://api.github.com/users/Nagilum23/following{/other_user}","gists_url":"https://api.github.com/users/Nagilum23/gists{/gist_id}","starred_url":"https://api.github.com/users/Nagilum23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nagilum23/subscriptions","organizations_url":"https://api.github.com/users/Nagilum23/orgs","repos_url":"https://api.github.com/users/Nagilum23/repos","events_url":"https://api.github.com/users/Nagilum23/events{/privacy}","received_events_url":"https://api.github.com/users/Nagilum23/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-01-23T13:01:38Z","updated_at":"2015-03-04T00:21:04Z","closed_at":"2015-03-04T00:21:04Z","body":"Compiling with gcc 4.6.3 on HP-UX 11.23:\r\nlumberjack $ gmake\r\nMakefile:33: warning: overriding recipe for target `clean'\r\nMakefile.ext:15: warning: ignoring old recipe for target `clean'\r\ngcc -D_POSIX_C_SOURCE=199309 -std=c99 -Wall -Wextra -Werror -pipe -g -Wno-unused-function -Ibuild/include    -c -o lumberjack.o lumberjack.c\r\nIn file included from /usr/local/include/openssl/ssl.h:1361:0,\r\n                 from proto.h:7,\r\n                 from lumberjack.c:16:\r\n/usr/local/include/openssl/dtls1.h:236:17: error: field 'next_timeout' has incomplete type\r\nlumberjack.c:37:13: error: 'no_argument' undeclared here (not in a function)\r\nlumberjack.c:46:14: error: 'required_argument' undeclared here (not in a function)\r\nlumberjack.c: In function 'set_resource_limits':\r\nlumberjack.c:80:17: error: storage size of 'limits' isn't known\r\nlumberjack.c:83:3: error: implicit declaration of function 'nice' [-Werror=implicit-function-declaration]\r\nlumberjack.c:84:3: error: implicit declaration of function '__STRING' [-Werror=implicit-function-declaration]\r\nlumberjack.c:84:3: error: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Werror=format]\r\nlumberjack.c:101:9: error: request for member 'rlim_cur' in something not a structure or union\r\nlumberjack.c:101:27: error: request for member 'rlim_max' in something not a structure or union\r\nlumberjack.c:101:3: error: statement with no effect [-Werror=unused-value]\r\nlumberjack.c:103:28: error: request for member 'rlim_max' in something not a structure or union\r\nlumberjack.c:103:10: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'struct option_doc *' [-Werror=format]\r\nlumberjack.c:104:3: error: implicit declaration of function 'setrlimit' [-Werror=implicit-function-declaration]\r\nlumberjack.c:104:18: error: 'RLIMIT_NOFILE' undeclared (first use in this function)\r\nlumberjack.c:104:18: note: each undeclared identifier is reported only once for each function it appears in\r\nlumberjack.c:105:3: error: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Werror=format]\r\nlumberjack.c:105:3: error: request for member 'rlim_max' in something not a structure or union\r\nlumberjack.c:120:9: error: request for member 'rlim_cur' in something not a structure or union\r\nlumberjack.c:120:27: error: request for member 'rlim_max' in something not a structure or union\r\nlumberjack.c:120:3: error: statement with no effect [-Werror=unused-value]\r\nlumberjack.c:123:18: error: 'RLIMIT_RSS' undeclared (first use in this function)\r\nlumberjack.c:124:3: error: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Werror=format]\r\nlumberjack.c:124:3: error: request for member 'rlim_max' in something not a structure or union\r\nlumberjack.c:80:17: error: unused variable 'limits' [-Werror=unused-variable]\r\nlumberjack.c: In function 'main':\r\nlumberjack.c:143:61: error: invalid application of 'sizeof' to incomplete type 'struct option' \r\nlumberjack.c:143:52: error: invalid operands to binary * (have 'int' and 'struct option_doc *')\r\nlumberjack.c:143:68: error: passing argument 2 of 'realloc' makes integer from pointer without a cast [-Werror]\r\n/usr/local/include/jemalloc/jemalloc.h:50:23: note: expected 'size_t' but argument is of type 'struct option_doc *'\r\nlumberjack.c:144:5: error: invalid use of undefined type 'struct option'\r\nlumberjack.c:144:19: error: dereferencing pointer to incomplete type\r\nlumberjack.c:144:22: error: request for member 'name' in something not a structure or union\r\nlumberjack.c:144:5: error: statement with no effect [-Werror=unused-value]\r\nlumberjack.c:145:5: error: invalid use of undefined type 'struct option'\r\nlumberjack.c:145:19: error: dereferencing pointer to incomplete type\r\nlumberjack.c:145:22: error: request for member 'has_arg' in something not a structure or union\r\nlumberjack.c:145:5: error: statement with no effect [-Werror=unused-value]\r\nlumberjack.c:146:5: error: invalid use of undefined type 'struct option'\r\nlumberjack.c:147:19: error: dereferencing pointer to incomplete type\r\nlumberjack.c:147:22: error: request for member 'val' in something not a structure or union\r\nlumberjack.c:147:5: error: statement with no effect [-Werror=unused-value]\r\nlumberjack.c:151:59: error: invalid application of 'sizeof' to incomplete type 'struct option' \r\nlumberjack.c:151:50: error: invalid operands to binary * (have 'int' and 'struct option_doc *')\r\nlumberjack.c:151:66: error: passing argument 2 of 'realloc' makes integer from pointer without a cast [-Werror]\r\n/usr/local/include/jemalloc/jemalloc.h:50:23: note: expected 'size_t' but argument is of type 'struct option_doc *'\r\nlumberjack.c:152:3: error: invalid use of undefined type 'struct option'\r\nlumberjack.c:152:17: error: dereferencing pointer to incomplete type\r\nlumberjack.c:152:20: error: request for member 'name' in something not a structure or union\r\nlumberjack.c:152:3: error: statement with no effect [-Werror=unused-value]\r\nlumberjack.c:155:3: error: implicit declaration of function 'getopt_long_only' [-Werror=implicit-function-declaration]\r\nlumberjack.c:159:9: error: implicit declaration of function 'strdup' [-Werror=implicit-function-declaration]\r\nlumberjack.c:159:36: error: assignment makes pointer from integer without a cast [-Werror]\r\nlumberjack.c:168:29: error: assignment makes pointer from integer without a cast [-Werror]\r\nlumberjack.c:185:48: error: assignment makes pointer from integer without a cast [-Werror]\r\nlumberjack.c:187:50: error: assignment makes pointer from integer without a cast [-Werror]\r\nlumberjack.c:191:9: error: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Werror=format]\r\nlumberjack.c:221:3: error: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Werror=format]\r\ncc1: all warnings being treated as errors\r\ngmake: *** [lumberjack.o] Error 1\r\n\r\nThe dependencies in vendor/ build mostly fine. (I skipped libuuid, zeromq builds fine without it, jemalloc had a few issues, but I think I solved those)."},"comment":{"url":"https://api.github.com/repos/elasticsearch/logstash-forwarder/issues/comments/77071576","html_url":"https://github.com/elasticsearch/logstash-forwarder/issues/20#issuecomment-77071576","issue_url":"https://api.github.com/repos/elasticsearch/logstash-forwarder/issues/20","id":77071576,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:21:04Z","updated_at":"2015-03-04T00:21:04Z","body":"﻿﻿﻿﻿﻿﻿\r\n\r\nI think this bug was for the C version of lumberjack, lsf is now in Go; I'm not sure it's affected anymore. Please reopen if you're still hitting this in the newer logstash-forwarder.\r\n\r\nGo unfortunately does not support HP-UX, to my knowledge."}}