[ https://issues.apache.org/jira/browse/TS-2022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Susan Hinrichs updated TS-2022: ------------------------------- Fix Version/s: (was: 5.2.0) sometime > healthcheck plugin only works on Linux > -------------------------------------- > > Key: TS-2022 > URL: https://issues.apache.org/jira/browse/TS-2022 > Project: Traffic Server > Issue Type: Bug > Components: Build, Plugins > Reporter: Igor Galić > Fix For: sometime > > > Right now the healthcheck plugin relies on iNotify, and as a consequence only > works on Linux. On FreeBSD it fails to build: > {noformat} > Making all in healthchecks > gmake[3]: Entering directory > `/var/jenkins/workspace/master_freebsd_9_x64_gcc/plugins/experimental/healthchecks' > CC healthchecks.lo > healthchecks.c:34:25: error: sys/inotify.h: No such file or directory > cc1: warnings being treated as errors > healthchecks.c: In function 'setup_watchers': > healthchecks.c:162: warning: implicit declaration of function > 'inotify_add_watch' > healthchecks.c:162: error: 'IN_DELETE_SELF' undeclared (first use in this > function) > healthchecks.c:162: error: (Each undeclared identifier is reported only once > healthchecks.c:162: error: for each function it appears in.) > healthchecks.c:162: error: 'IN_CLOSE_WRITE' undeclared (first use in this > function) > healthchecks.c:169: error: 'IN_CREATE' undeclared (first use in this function) > healthchecks.c:169: error: 'IN_MOVED_FROM' undeclared (first use in this > function) > healthchecks.c:169: error: 'IN_MOVED_TO' undeclared (first use in this > function) > healthchecks.c: In function 'hc_thread': > healthchecks.c:189: warning: implicit declaration of function 'inotify_init' > healthchecks.c:193: error: invalid application of 'sizeof' to incomplete type > 'struct inotify_event' > healthchecks.c:226: error: invalid application of 'sizeof' to incomplete type > 'struct inotify_event' > healthchecks.c:230: error: dereferencing pointer to incomplete type > healthchecks.c:234: error: dereferencing pointer to incomplete type > healthchecks.c:234: error: dereferencing pointer to incomplete type > healthchecks.c:241: error: dereferencing pointer to incomplete type > healthchecks.c:241: error: 'IN_CLOSE_WRITE' undeclared (first use in this > function) > healthchecks.c:242: error: dereferencing pointer to incomplete type > healthchecks.c:243: error: dereferencing pointer to incomplete type > healthchecks.c:243: error: 'IN_CREATE' undeclared (first use in this function) > healthchecks.c:243: error: 'IN_MOVED_TO' undeclared (first use in this > function) > healthchecks.c:244: error: dereferencing pointer to incomplete type > healthchecks.c:245: error: 'IN_DELETE_SELF' undeclared (first use in this > function) > healthchecks.c:245: error: 'IN_ATTRIB' undeclared (first use in this function) > healthchecks.c:246: error: dereferencing pointer to incomplete type > healthchecks.c:246: error: 'IN_MOVED_FROM' undeclared (first use in this > function) > healthchecks.c:247: error: dereferencing pointer to incomplete type > healthchecks.c:248: warning: implicit declaration of function > 'inotify_rm_watch' > healthchecks.c:257: error: invalid application of 'sizeof' to incomplete type > 'struct inotify_event' > healthchecks.c:257: error: dereferencing pointer to incomplete type > gmake[3]: *** [healthchecks.lo] Error 1 > gmake[3]: Leaving directory > `/var/jenkins/workspace/master_freebsd_9_x64_gcc/plugins/experimental/healthchecks' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory > `/var/jenkins/workspace/master_freebsd_9_x64_gcc/plugins/experimental' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > `/var/jenkins/workspace/master_freebsd_9_x64_gcc/plugins' > gmake: *** [all-recursive] Error 1 > Build step 'Execute shell' marked build as failure > [locks-and-latches] Releasing all the locks > [locks-and-latches] All the locks released > Finished: FAILURE > {noformat} > On FreeBSD we can use the kqueue system instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)