[Varnish] #152: Varnish 1.1.1 compile fails on Solaris 10

Varnish varnish-bugs at projects.linpro.no
Mon Sep 17 10:44:18 CEST 2007


#152: Varnish 1.1.1 compile fails on Solaris 10
---------------------+------------------------------------------------------
 Reporter:  jimlane  |        Owner:  des                
     Type:  defect   |       Status:  assigned           
 Priority:  normal   |    Milestone:  Varnish 2.0 release
Component:  build    |      Version:  1.1.1              
 Severity:  normal   |   Resolution:                     
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by mikewallis):

 You need to use -lnsl and not -lns, as well as the -lsocket library to
 LDFLAGS, you also get a few other errors whilst compiling (my notes on
 hacking the source to compile (not clean enough for a proper set of
 patches against either 1.1.1 or trunk i'm afraid)

 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.)

 Fix/workaround: add to config.h (solaris doesn't have a NAN definition
 within nan.h

 #ifndef NAN
 #define        NAN             (__builtin_nanf(""))
 #endif

 Third problem:

 storage_file.c: In function `smf_calcsize':
 storage_file.c:119: error: storage size of 'fsst' isn't known

 Fix: statfs structure should be statvfs on solaris, add to
 bin/varnishd/storage_file.c

 diff  storage_file.c storage_file.c.dist
 120c120
 <       struct statvfs fsst;
 ---
 >       struct statfs fsst;

 Fourth problem:

 compat/daemon.h: No such file or directory

 (not able to find a suitable workaround on this problem) - hope this helps

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/152#comment:3>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list