Problem compiling xmltooling 1.5.0 in Solaris

Cantor, Scott cantor.2 at
Fri Aug 17 20:36:46 EDT 2012

On 8/17/12 5:25 PM, "Landon Thomas" <lthomas at> wrote:

>I'm getting this compile error with xmltooling-1.5.0 in Solaris 5.10:

Your compiler command doesn't appear to include the "-library=stlport4"
flag. That probably won't fix it, but it won't work without it either.

If you didn't read the updated build documentation, please do so.

Then reconsider Solaris if you have any alternative. Your time is
valuable. Don't waste it.

>-D_POSIX_PTHREAD_SEMANTICS -I/opt/local/include/boost-1_37

That's a very old boost library. You should correct that.

>When I use the same compiler:
>lthomas at research (/export/apache/src/shibboleth/xmltooling-1.5.0) % cc -V
>cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
>usage: cc [ options] files.  Use 'cc -flags' for details

That's 3 releases back. I tested with 5.12. Please consider upgrading to
that. There's a good chance it won't build on anything older, but the spot
it's failing has been a sore spot.

>with the same environment in xmltooling 1.4.2, it compiles fine.

When I added boost I did so with the understanding that Solaris would be
brittle going forward, that's just the trade-off I had to make.

>There seems to be some change in code that breaks my compiler from 1.4.2
>to 1.5.0.  Any ideas?  Let me know if you want me to file a bug report.

There are huge changes.

You can file a bug and I'll attach a couple of possible patches that may
work based on the changes I had to make to that source file for 5.12 and
the lines that are breaking. I won't do any conditional patching for an
old compiler, but if it works without breaking anything newer, that would
be fine.

-- Scott

More information about the users mailing list