Theo Schlossnagle wrote:
In the patch I submitted, the Solaris variant (for non gcc) sets:

common_opt="-mt -m32 -D__WORDSIZE=32"
debug_opt="-g $common_opt"
release_opt="-g $common_opt -xO3"
cxx_opt="-library=stlport4 -erroff"

in configure.ac.  So you shouldn't be hitting those issues.

Neither those options nor the gcc options work with any compiler
I've tried.

However, I now have a successful compilation with a slightly
different (and hacked) set of flags to /opt/SUNWspro/bin/cc.
For example, I had to remove the "-march=i586", not so much
because it's wrong as because Sun's compiler chokes on -march,
as well as on -mt and -m32 in your options.

Notable issue: I had to hack around
"ink_queue.h", line 113: Error: #error "unsupported processor".
I'm guessing __i386__ is the safe option here, but since I'm using
a 64-bit box it would perhaps be good if it could deal with it.

make install dies at:
/usr/bin/ginstall -c -m 644 './access\#denied' '/usr/local/trafficserver/etc/trafficserver/body_factory/default/access\#denied' /usr/bin/ginstall: cannot stat `./access\\#denied': No such file or directory

Not sure whether that's an incompatible ginstall version
or a different-shell issue, but removing the backslash in
Makefile leads to
make: Fatal error: Don't know how to make target `access'

The good news is that gmake install works, so that's evidently
a gnu-ism!  Perhaps just documenting "use gmake" would make sense.

So I now have an install.  Next step is to repeat and get an
end-to-end build, then see if I can clean it to the point
of an alternative patch and/or list of issues.

--
Nick Kew

Reply via email to