[Reconnoiter-users] compile error on OpenBSD in noit_http.c

dan (ddp) ddpbsd at gmail.com
Wed Jun 30 17:33:27 EDT 2010

I was getting the following error when trying to build on a recent
OpenBSD snapshot:

- compiling noit_livestream_listener.c
- compiling noit_filters.c
noit_http.c: In function 'bchain_alloc':
noit_http.c:81: warning: cast from pointer to integer of different size
noit_http.c: In function '_http_perform_write':
noit_http.c:270: error: 'true' undeclared (first use in this function)
noit_http.c:270: error: (Each undeclared identifier is reported only once
noit_http.c:270: error: for each function it appears in.)
*** Error code 1

Stop in /data2/stuff/build/reconnoiter/src (line 92 of /usr/share/mk/sys.mk).

I don't know if the following fixed it, but it allowed the file to compile:
Index: noit_http.c
--- noit_http.c (revision 1344)
+++ noit_http.c (working copy)
@@ -267,8 +267,8 @@
   if(len == -1) {
     /* socket error */
-    ctx->res.complete = true;
-    ctx->conn.needs_close = true;
+    ctx->res.complete = noit_true;
+    ctx->conn.needs_close = noit_true;
     *mask |= EVENTER_EXCEPTION;
     return -1;


More information about the Reconnoiter-users mailing list