Hey folks,

I put in some effort to get the Solaris buildbot to
compile again. This basically consisted of upgrading the
installed OpenCSW packages from "testing" to "unstable",
and, aside from a tiny patch to configure.ac, getting
the ./configure arguments right:

  ./configure --prefix=$HOME/tserver-solaris-trunk/build/ats-install \
    --with-user=buildbot --with-group=other --with-expat=/opt/csw \
    --with-pcre=/opt/csw --with-tcl=/opt/csw/lib/amd64 \
    --with-lua=/opt/csw  --with-openssl=/opt/csw/include:/opt/csw/lib/amd64

This gets us now through configure, YAY! only to nosedive into this:

   Making all in eventsystem
   gmake[2]: Entering directory 
`/export/home/igalic/trafficserver/iocore/eventsystem'
   source='UnixEventProcessor.cc' object='UnixEventProcessor.o' libtool=no \
        DEPDIR=.deps depmode=none /bin/bash ../../build/aux/depcomp \
        CC -DHAVE_CONFIG_H  -I. -I../../lib/ts  -I../../lib -I../../lib/records 
-I../../lib/ts -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 
-D_REENTRANT -Dsolaris -I/opt/csw/include -I/usr/local/include  -g -mt -m64 
-D__WORDSIZE=64 -O3 -library=stlport4 -erroff -c -o UnixEventProcessor.o 
UnixEventProcessor.cc
   "UnixEventProcessor.cc", line 103: Error: cpu_set_t is not defined.
   "UnixEventProcessor.cc", line 118: Error: The function "CPU_ZERO" must have 
a prototype.
   "UnixEventProcessor.cc", line 120: Error: The function "CPU_SET" must have a 
prototype.
   "UnixEventProcessor.cc", line 122: Error: cpu_set_t is not defined.
   4 Error(s) detected.
   gmake[2]: *** [UnixEventProcessor.o] Error 2
   gmake[2]: Leaving directory 
`/export/home/igalic/trafficserver/iocore/eventsystem'
   gmake[1]: *** [all-recursive] Error 1
   gmake[1]: Leaving directory `/export/home/igalic/trafficserver/iocore'
   gmake: *** [all-recursive] Error 1


cpu_set_t and CPU_ZERO is a gcc-ism/glibc-ism, but other platforms support it
setting CPU affinity. See for reference:

   https://github.com/facebook/xhprof/blob/master/extension/xhprof.c
   http://csl.stanford.edu/~christos/sw/phoenix/MapReduceScheduler.linux.c

So long,

i

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

Reply via email to