As I and William have discovered, gnutls will not build on OpenSolaris. I had a 
look at this, and have some idea what the problem is. I'm just not sure the 
best 
way to solve it.

1) Sun provide libgcrypt and libgpg-error
2) The Sage source tree includes those two libraries.
3) When gnutls is linked, it is getting both sets of libraries, so indicates an 
error 'possible multiple inclusion of the same file'

It one tries to build gnutls independent of Sage, so it works fine, as it just 
uses the Sun-supplied libraries.

I'm not sure however how to force the linker to use only the Sage libraries.

One hack which does allow gnutls to build is to simply delete the headers and 
libraries is SAGE_LOCAL/lib and SAGE_LOCAL/include. A faster method would be to 
simply not build those two Sage packages at all on OpenSolaris and rely on 
those 
shipped by Sun. But of course, they might be more out of date than those needed 
in Sage, so that is not an ideal solution.

Any thoughts?

Does anyone know how one can force the linker to ignore the libraries in 
/usr/lib, and use only the ones in the Sage library?

It's strange this issue only arises on OpenSolaris. I did not get the same 
problem on Solaris 10 (on SPARC hardware). gnutls even builds on HP-UX with no 
problems at all.

Dave

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to