New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnutls not building on OpenSolaris (x86) #7387
Comments
Attachment: config.log config.log file generated by the 'configure' script. |
comment:1
Working on Open Solaris 09/06 x86 in VirtualBox the build of gnutls I had to change the spkg-install files accordingly. Jaap |
comment:2
I made a new spkg such that it builds on Open Solaris with SAGE64="yes" libgpg and libcrypt built with 64 bit. See: http://boxen.math.washington.edu/home/jsp/ports/gnutls-2.2.1.p5.spkg
Jaap |
Author: Jaap Spies |
Reviewer: David Kirkby |
comment:3
That fixes the problem. It probably worth saying in future that the change will add the compiler option -m64 on any platform - it is not just Solaris. The problem with the original implementation is someone decided to limit it to OSX. The change makes it work on any platform. But I'm not going to ask you to change it - just a minor point for the future. Dave |
Merged: 4.3.1.alpha2 |
Changed merged from 4.3.1.alpha2 to sage-4.3.1.alpha2 |
There is an issue with the gnutls when trying to build 2
.2.1.p4 on OpenSolaris. Strangely, the same problem does not occur on Solaris 10 on SPARC. The linker is finding two copies of the gcrypt and gpg-error libraries. One set are from Sun and reside in /usr/lib and the second set are in the SAGE_LOCAL/lib, and are included in Sage.
== What does work - building gnutils independent of Sage ==
It's important to note that if that .spkg file is built outside of Sage directory structure, with none of the Sage environment variables set, so it builds fine except SAGE_LOCAL to something that is not empty (just to stop the spkg-install script exiting). The following will work:
In this case, gnutls is using all the libraries supplied by Sun, and none included in Sage. If 'ldd' is used to find the dependances of the libraries built in /tmp/lib, one finds many libraries, but which include these two:
The gcrypt and gpg-error libraries are included in Sage too, but are not used in this in the above example.
== What will not work (building as part of Sage) ==
When one attempts to build gnutls inside the Sage source tree, with all the environment variables set, so it all goes wrong. The lines in bold show the most important hint as to what is wrong.
ld: fatal: recording name conflict: file
/export/home/drkirkby/sage-4.2/local/lib/libgpg-error.so' and file
/usr/lib/libgpg-error.so' provide identical dependency names: libgpg-error.so.0 (possible multiple inclusion of the same file)Here is a larger section of the error message. I've attached 'config.log'
== A hack that will work ==
I expect this would cause other problems, and is certainly not the right way to address this, but if the following files are removed
before one attempts to build gnutls, so the build will work.
CC: @sagetrac-drkirkby
Component: porting: Solaris
Author: Jaap Spies
Reviewer: David Kirkby
Merged: sage-4.3.1.alpha2
Issue created by migration from https://trac.sagemath.org/ticket/7387
The text was updated successfully, but these errors were encountered: