On 11/21/2009 02:24 PM, Nick Kew wrote:
Just a heads-up in case anyone is interested: I've played with
building trafficserver on opensolaris/AMD64. Since I need to
be in a fit state tomorrow I'm knocking off now rather than
running a potentially-all-night session, so here's progress
to date:
1. Make a copy of trunk
2. Run autoconf and configure - FAIL
3. Browse to TS-11. Try the latest patch: it's in a format
neither I nor patch recognise. Try Theo's patch: mostly
works; go through the failures by hand.
The patch was created using git (git format-patch trunk). There is some
extra email and stats at the front of the patch. My patch program
ignores these and applies the patch without issues.
I added a new patch that is just the diff:
https://issues.apache.org/jira/secure/attachment/12425892/0002-bcall-solaris_updates.patch
4. Run autoconf and configure - fails with Sun CC testing
for and failing to find something in libssl. But gcc
is happy, so I take that as path of least resistance.
Also required a brief diversion to install libdb4.
5. Build: the first problem was __WORDSIZE undetined
(it had detected my arch as i586)! Added it to CFLAGS.
6. libinktomi++: several places where it complained of
conversions to different size, so I had to add casts.
7. madvise() is undefined. The declarations of madvise
in sys/mman.h are encased in #ifs, and I guess what it
needs is the right CFLAGS. Workaround by reverting
to the no-madvise code.
8. STL trouble: it's complaining of templates being
redefined (within a single .h files). Clearly a
case of needing the right CFLAGS to deal with the
templates, but that's where I've stopped for tonight.
I don't know when I'll return to this, but I expect I'll
finish the job and post some patches in the not-too-distant.