{"action":"created","issue":{"url":"https://api.github.com/repos/bombadil/mod_proxy_msrpc/issues/33","repository_url":"https://api.github.com/repos/bombadil/mod_proxy_msrpc","labels_url":"https://api.github.com/repos/bombadil/mod_proxy_msrpc/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/bombadil/mod_proxy_msrpc/issues/33/comments","events_url":"https://api.github.com/repos/bombadil/mod_proxy_msrpc/issues/33/events","html_url":"https://github.com/bombadil/mod_proxy_msrpc/issues/33","id":146488127,"number":33,"title":"Module not transmitting RPC traffic. FreeBSD","user":{"login":"deathcipris","id":18319263,"avatar_url":"https://avatars.githubusercontent.com/u/18319263?v=3","gravatar_id":"","url":"https://api.github.com/users/deathcipris","html_url":"https://github.com/deathcipris","followers_url":"https://api.github.com/users/deathcipris/followers","following_url":"https://api.github.com/users/deathcipris/following{/other_user}","gists_url":"https://api.github.com/users/deathcipris/gists{/gist_id}","starred_url":"https://api.github.com/users/deathcipris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathcipris/subscriptions","organizations_url":"https://api.github.com/users/deathcipris/orgs","repos_url":"https://api.github.com/users/deathcipris/repos","events_url":"https://api.github.com/users/deathcipris/events{/privacy}","received_events_url":"https://api.github.com/users/deathcipris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T02:12:53Z","updated_at":"2016-04-08T22:17:19Z","closed_at":"2016-04-08T22:17:19Z","body":"Hello!\r\nI am running FreeBSD 10.2-STABLE and attempting to compile this module from source.\r\nI have installed all of the necessary support libraries (gcc, libinotify, autoconf, pkg-tools, libuuid)\r\nI have managed to get the software to compile, by some miracle and a few tweaks in the source files. However when I go to load the .so object generated into Apache, I get \r\n`Cannot load libexec/apache24/mod_proxy_msrpc.so into server: /usr/local/libexec/apache24/mod_proxy_msrpc.so: Undefined symbol \"inotify_add_watch\"`\r\n\r\nSince FreeBSD uses kqueue instead of the Linux inotify system, I understand the error is caused by inotify. The libraries are there and in the correct locations to support inotify and the system does pick up the header files and compiles with them appropriately, but there is a problem I have identified when a configure is ran:\r\n\r\n`configure:4174: checking for inotify_init1\r\nconfigure:4174: gcc -o conftest   -L/usr/local/lib/ conftest.c  >&5\r\n/tmp//ccefzpA0.o: In function `main':\r\nconftest.c:(.text+0xa): undefined reference to `inotify_init1'\r\ncollect2: error: ld returned 1 exit status\r\nconfigure:4174: $? = 1\r\nconfigure: failed program was:\r\n| /* confdefs.h */\r\n| #define PACKAGE_NAME \"mod_proxy_msrpc\"\r\n| #define PACKAGE_TARNAME \"mod_proxy_msrpc\"\r\n| #define PACKAGE_VERSION \"0.1.1\"\r\n| #define PACKAGE_STRING \"mod_proxy_msrpc 0.1.1\"\r\n| #define PACKAGE_BUGREPORT \"micha@lenk.info\"\r\n| #define PACKAGE_URL \"\"\r\n| #define STDC_HEADERS 1\r\n| #define HAVE_SYS_TYPES_H 1\r\n| #define HAVE_SYS_STAT_H 1\r\n| #define HAVE_STDLIB_H 1\r\n| #define HAVE_STRING_H 1\r\n| #define HAVE_MEMORY_H 1\r\n| #define HAVE_STRINGS_H 1\r\n| #define HAVE_INTTYPES_H 1\r\n| #define HAVE_STDINT_H 1\r\n| #define HAVE_UNISTD_H 1\r\n| #define HAVE_FCNTL_H 1\r\n| #define HAVE_LIMITS_H 1\r\n| #define HAVE_STDLIB_H 1\r\n| #define HAVE_STRING_H 1\r\n| #define HAVE_UNISTD_H 1\r\n| #define HAVE_SYS_TYPES_H 1\r\n| #define HAVE_SYS_STAT_H 1\r\n| #define HAVE_SYS_INOTIFY_H 1\r\n| #define HAVE_SYS_SELECT_H 1\r\n| #define HAVE_UUID_UUID_H 1\r\n| #define HAVE_STRCASECMP 1\r\n| #define HAVE_STRCHR 1\r\n| #define HAVE_STRRCHR 1\r\n| /* end confdefs.h.  */\r\n`\r\n\r\nSomething is going wrong and the system is having trouble configuring and compiling for inotify support, despite all the appropriate libraries being present.\r\nI grabbed a quick c++ program that uses inotify and compiled with g++ and was able to successfully compile and run the program.\r\nPlease help. I don't want to go to a Windows system in my DMZ. :("},"comment":{"url":"https://api.github.com/repos/bombadil/mod_proxy_msrpc/issues/comments/207628564","html_url":"https://github.com/bombadil/mod_proxy_msrpc/issues/33#issuecomment-207628564","issue_url":"https://api.github.com/repos/bombadil/mod_proxy_msrpc/issues/33","id":207628564,"user":{"login":"deathcipris","id":18319263,"avatar_url":"https://avatars.githubusercontent.com/u/18319263?v=3","gravatar_id":"","url":"https://api.github.com/users/deathcipris","html_url":"https://github.com/deathcipris","followers_url":"https://api.github.com/users/deathcipris/followers","following_url":"https://api.github.com/users/deathcipris/following{/other_user}","gists_url":"https://api.github.com/users/deathcipris/gists{/gist_id}","starred_url":"https://api.github.com/users/deathcipris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathcipris/subscriptions","organizations_url":"https://api.github.com/users/deathcipris/orgs","repos_url":"https://api.github.com/users/deathcipris/repos","events_url":"https://api.github.com/users/deathcipris/events{/privacy}","received_events_url":"https://api.github.com/users/deathcipris/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T22:17:19Z","updated_at":"2016-04-08T22:17:19Z","body":"I have abandoned trying force this module to operate correctly in Apache for my purposes as a Remote Desktop Gateway and Exchange. Apache just does not want to cooperate with me. This module is well-written and has good intentions, but Apache's SSL reverse proxy implementation just bites the big one. Due to how the HTTPS connection encrypts it is impossible, without SNI, to perform host-based lookups. Apache's operation of SNI is terrible and just checks the sites in order of virtual hosts due to lack of availability of SNI (such as ActiveSync or RemoteDesktopGateway connections). For single domain, single purpose reverse proxies, I am sure this is perfectly fine because the traffic only has to go one place.\r\nFor anyone that finds this thread, use haproxy. It literally took me an hour and I have working RD Gateway, Exchange ActiveSync, OWA, and RPC over it all. It is a well-supported pkg that the devs don't have have a tiff with MS, like Apache does."}}