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

Devon H. O'Dell devon.odell at gmail.com
Wed Jun 30 17:34:34 EDT 2010


Why not use true / false and compile with --std=c99?

--dho

2010/6/30 dan (ddp) <ddpbsd at gmail.com>:
> 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;
>     noit_http_log_request(ctx);
>     *mask |= EVENTER_EXCEPTION;
>     return -1;
>
>
> Thanks,
> Dan
> _______________________________________________
> Reconnoiter-users mailing list
> Reconnoiter-users at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/reconnoiter-users
>



More information about the Reconnoiter-users mailing list