[Varnish] #202: Compile Fails on OpenBSD -current / Half a patch provided
Varnish
varnish-bugs at projects.linpro.no
Fri Feb 8 23:56:31 CET 2008
#202: Compile Fails on OpenBSD -current / Half a patch provided
-----------------------+----------------------------------------------------
Reporter: bonetruck | Owner: des
Type: defect | Status: new
Priority: normal | Milestone:
Component: build | Version: 1.2
Severity: normal | Keywords:
-----------------------+----------------------------------------------------
The following patch solves the first compile issue. However, it then gaks
on NAN not being defined. It's only used twice from what I see. Can we
swap it with something more portable or beat me with a clue stick? See
compile error following diff. If I can get this to run well, I'll submit
it for the ports tree.
diff -uNr varnish-1.1.2.orig/lib/libvarnishapi/shmlog.c
varnish-1.1.2/lib/libvarnishapi/shmlog.c
--- varnish-1.1.2.orig/lib/libvarnishapi/shmlog.c Wed Feb 6
13:10:20 2008
+++ varnish-1.1.2/lib/libvarnishapi/shmlog.c Wed Feb 6 13:15:40 2008
@@ -29,6 +29,7 @@
* $Id: shmlog.c 1588 2007-06-28 10:25:47Z des $
*/
+#include <sys/types.h>
#include <sys/mman.h>
#include <assert.h>
>>>Compile error:
Making all in varnishd
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -include config.h
-DVARNISH_STATE_DIR='"/tmp/varnishd/var/varnish"' -g -O2 -MT varnishd-
cache_center.o -MD -MP -MF .deps/varnishd-cache_center.Tpo -c -o varnishd-
cache_center.o `test -f 'cache_center.c' || echo './'`cache_center.c
cache_center.c: In function `cnt_done':
cache_center.c:212: error: `NAN' undeclared (first use in this function)
cache_center.c:212: error: (Each undeclared identifier is reported only
once
cache_center.c:212: error: for each function it appears in.)
*** Error code 1
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/202>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list