On Mon, Oct 26, 2009 at 6:25 PM, Dr. David Kirkby
<[email protected]> wrote:
>
> I *finally* got my new Ultra 27 today, which is quite a nice machine in fact
>
> * Quad core 3.333 GHz Xeon
> * 12 GB RAM
> * 2 x 2 TB + 1 x 500 GB disks
> * NVIDIA Quadro FX 3800 graphics accelerator
>
> It came with Solaris 10, but I stuck OpenSolaris 06/2009 on it soon after it 
> came.
>
> It's certainly quicker than my Blade 2000.
>
> Anyway, I decided to make a quick attempt at building Sage 4.2. Things did not
> go quite to plan though. I downloaded gcc 4.3.4, GNU tar 1.22 and GNU make 
> 3.81
> from Blastwave. The GCC from there is nice, in that it includes Fortran 
> support,
> without a user having to build gcc themselves.
>
>
>
> 1) First gnutls-2.2.1.p4 would not build. It looks to me like the
> libgcrypt library /usr/lib/libgcrypt.so is conflicting with the same library
> included in the Sage tarball.
>
>
>  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
> "-DLOCALEDIR=\"/export/home/drkirkby/sage-4.2/local/share/locale\"" -I../lgl
> -I../lgl -I../includes -I../includes -I./x509 -I../libextra
> -I../libextra/openpgp/ -I../libextra/opencdk
> -I/export/home/drkirkby/sage-4.2/local/include -I/usr/include
> -I/export/home/drkirkby/sage-4.2/local/include -g -O2 -D_REENTRANT
> -D_THREAD_SAFE -I/export/home/drkirkby/sage-4.2/local/include -g -O2
> -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -MT gnutls_psk.lo -MD -MP -MF
> .deps/gnutls_psk.Tpo -c gnutls_psk.c  -fPIC -DPIC -o .libs/gnutls_psk.o
> mv -f .deps/gnutls_psk.Tpo .deps/gnutls_psk.Plo
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H 
> -I.
> -I..  -DLOCALEDIR=\"/export/home/drkirkby/sage-4.2/local/share/locale\" 
> -I../lgl
> -I../lgl -I../includes -I../includes -I./x509 -I../libextra
> -I../libextra/openpgp/ -I../libextra/opencdk
> -I/export/home/drkirkby/sage-4.2/local/include  -I/usr/include
> -I/export/home/drkirkby/sage-4.2/local/include -g -O2 -D_REENTRANT
> -D_THREAD_SAFE -I/export/home/drkirkby/sage-4.2/local/include -g -O2
> -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -MT auth_dhe_psk.lo -MD -MP -MF
> .deps/auth_dhe_psk.Tpo -c -o auth_dhe_psk.lo auth_dhe_psk.c
>  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
> "-DLOCALEDIR=\"/export/home/drkirkby/sage-4.2/local/share/locale\"" -I../lgl
> -I../lgl -I../includes -I../includes -I./x509 -I../libextra
> -I../libextra/openpgp/ -I../libextra/opencdk
> -I/export/home/drkirkby/sage-4.2/local/include -I/usr/include
> -I/export/home/drkirkby/sage-4.2/local/include -g -O2 -D_REENTRANT
> -D_THREAD_SAFE -I/export/home/drkirkby/sage-4.2/local/include -g -O2
> -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -MT auth_dhe_psk.lo -MD -MP -MF
> .deps/auth_dhe_psk.Tpo -c auth_dhe_psk.c  -fPIC -DPIC -o .libs/auth_dhe_psk.o
> mv -f .deps/auth_dhe_psk.Tpo .deps/auth_dhe_psk.Plo
> /bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99 -g -O2 -D_REENTRANT
> -D_THREAD_SAFE -I/export/home/drkirkby/sage-4.2/local/include -g -O2
> -D_REENTRANT -D_THREAD_SAFE -Wno-pointer-sign -no-undefined -version-info 
> 27:2:1
>  -L/usr/lib -ltasn1    -o libgnutls.la -rpath
> /export/home/drkirkby/sage-4.2/local/lib  gnutls_record.lo gnutls_compress.lo
> debug.lo gnutls_cipher.lo gnutls_buffers.lo gnutls_handshake.lo gnutls_num.lo
> gnutls_errors.lo gnutls_algorithms.lo gnutls_dh.lo gnutls_kx.lo
> gnutls_priority.lo gnutls_hash_int.lo gnutls_cipher_int.lo
> gnutls_compress_int.lo gnutls_session.lo gnutls_db.lo x509_b64.lo auth_anon.lo
> gnutls_extensions.lo gnutls_auth.lo gnutls_v2_compat.lo gnutls_datum.lo
> auth_rsa.lo gnutls_session_pack.lo gnutls_mpi.lo gnutls_pk.lo gnutls_cert.lo
> gnutls_global.lo gnutls_constate.lo gnutls_anon_cred.lo pkix_asn1_tab.lo
> gnutls_asn1_tab.lo gnutls_mem.lo auth_cert.lo gnutls_ui.lo gnutls_sig.lo
> auth_dhe.lo gnutls_dh_primes.lo ext_max_record.lo gnutls_alert.lo 
> gnutls_str.lo
> gnutls_state.lo gnutls_x509.lo ext_cert_type.lo gnutls_rsa_export.lo
> auth_rsa_export.lo ext_server_name.lo auth_dh_common.lo gnutls_helper.lo
> ext_inner_application.lo gnutls_extra_hooks.lo gnutls_supplemental.lo
> ext_srp.lo gnutls_srp.lo auth_srp.lo auth_srp_passwd.lo auth_srp_sb64.lo
> auth_srp_rsa.lo auth_psk.lo auth_psk_passwd.lo gnutls_psk.lo auth_dhe_psk.lo
> ../lgl/liblgnu.la x509/libgnutls_x509.la
> -L/export/home/drkirkby/sage-4.2/local/lib -lz
> -R/export/home/drkirkby/sage-4.2/local/lib
> -L/export/home/drkirkby/sage-4.2/local/lib -lgcrypt -lgpg-error   -lnsl 
> -lsocket
> gcc -std=gnu99 -shared -Wl,-h -Wl,libgnutls.so.26 -o .libs/libgnutls.so.26.1.2
> .libs/gnutls_record.o .libs/gnutls_compress.o .libs/debug.o
> .libs/gnutls_cipher.o .libs/gnutls_buffers.o .libs/gnutls_handshake.o
> .libs/gnutls_num.o .libs/gnutls_errors.o .libs/gnutls_algorithms.o
> .libs/gnutls_dh.o .libs/gnutls_kx.o .libs/gnutls_priority.o
> .libs/gnutls_hash_int.o .libs/gnutls_cipher_int.o .libs/gnutls_compress_int.o
> .libs/gnutls_session.o .libs/gnutls_db.o .libs/x509_b64.o .libs/auth_anon.o
> .libs/gnutls_extensions.o .libs/gnutls_auth.o .libs/gnutls_v2_compat.o
> .libs/gnutls_datum.o .libs/auth_rsa.o .libs/gnutls_session_pack.o
> .libs/gnutls_mpi.o .libs/gnutls_pk.o .libs/gnutls_cert.o .libs/gnutls_global.o
> .libs/gnutls_constate.o .libs/gnutls_anon_cred.o .libs/pkix_asn1_tab.o
> .libs/gnutls_asn1_tab.o .libs/gnutls_mem.o .libs/auth_cert.o .libs/gnutls_ui.o
> .libs/gnutls_sig.o .libs/auth_dhe.o .libs/gnutls_dh_primes.o
> .libs/ext_max_record.o .libs/gnutls_alert.o .libs/gnutls_str.o
> .libs/gnutls_state.o .libs/gnutls_x509.o .libs/ext_cert_type.o
> .libs/gnutls_rsa_export.o .libs/auth_rsa_export.o .libs/ext_server_name.o
> .libs/auth_dh_common.o .libs/gnutls_helper.o .libs/ext_inner_application.o
> .libs/gnutls_extra_hooks.o .libs/gnutls_supplemental.o .libs/ext_srp.o
> .libs/gnutls_srp.o .libs/auth_srp.o .libs/auth_srp_passwd.o
> .libs/auth_srp_sb64.o .libs/auth_srp_rsa.o .libs/auth_psk.o
> .libs/auth_psk_passwd.o .libs/gnutls_psk.o .libs/auth_dhe_psk.o -Wl,-z
> -Wl,allextract ../lgl/.libs/liblgnu.a x509/.libs/libgnutls_x509.a -Wl,-z
> -Wl,defaultextract  -R/export/home/drkirkby/sage-4.2/local/lib
> -R/export/home/drkirkby/sage-4.2/local/lib -L/usr/lib -ltasn1
> -L/export/home/drkirkby/sage-4.2/local/lib
> /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so
> /export/home/drkirkby/sage-4.2/local/lib/libgpg-error.so -lz -lgcrypt
> -lgpg-error -lnsl -lsocket -lc
> ld: warning: symbol `_gcry_mpih_mul_1' has differing types:
>        (file /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so type=NOTY; 
> file
> /usr/lib/libgcrypt.so type=FUNC);
>        /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so definition taken
> ld: warning: symbol `_gcry_mpih_lshift' has differing types:
>        (file /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so type=NOTY; 
> file
> /usr/lib/libgcrypt.so type=FUNC);
>        /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so definition taken
> ld: warning: symbol `_gcry_mpih_sub_n' has differing types:
>        (file /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so type=NOTY; 
> file
> /usr/lib/libgcrypt.so type=FUNC);
>        /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so definition taken
> ld: warning: symbol `_gcry_mpih_add_n' has differing types:
>        (file /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so type=NOTY; 
> file
> /usr/lib/libgcrypt.so type=FUNC);
>        /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so definition taken
> ld: warning: symbol `_gcry_mpih_submul_1' has differing types:
>        (file /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so type=NOTY; 
> file
> /usr/lib/libgcrypt.so type=FUNC);
>        /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so definition taken
> ld: warning: symbol `_gcry_mpih_rshift' has differing types:
>        (file /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so type=NOTY; 
> file
> /usr/lib/libgcrypt.so type=FUNC);
>        /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so definition taken
> ld: warning: symbol `_gcry_mpih_addmul_1' has differing types:
>        (file /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so type=NOTY; 
> file
> /usr/lib/libgcrypt.so type=FUNC);
>        /export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so definition taken
> ld: fatal: recording name conflict: file
> `/export/home/drkirkby/sage-4.2/local/lib/libgcrypt.so' and file
> `/usr/lib/libgcrypt.so' provide identical dependency names: libgcrypt.so.11
> (possible multiple inclusion of the same file)
> 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)
> ld: fatal: file processing errors. No output written to 
> .libs/libgnutls.so.26.1.2
> collect2: ld returned 1 exit status
> make[5]: *** [libgnutls.la] Error 1
> make[5]: Leaving directory
> `/export/home/drkirkby/sage-4.2/spkg/build/gnutls-2.2.1.p4/src/lib'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/export/home/drkirkby/sage-4.2/spkg/build/gnutls-2.2.1.p4/src/lib'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/export/home/drkirkby/sage-4.2/spkg/build/gnutls-2.2.1.p4/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/export/home/drkirkby/sage-4.2/spkg/build/gnutls-2.2.1.p4/src'
> failed to build GNUTLS
>
> real    0m51.231s
> user    0m31.291s
> sys     0m26.591s
> sage: An error occurred while installing gnutls-2.2.1.p4
>
>
>
> 2) Next Python would not build properly, complaining about "No module named 
> _md5"
>
> changing mode of
> /export/home/drkirkby/sage-4.2/local/lib/python2.6/lib-dynload/pyexpat.so to 
> 755
> changing mode of
> /export/home/drkirkby/sage-4.2/local/lib/python2.6/lib-dynload/zlib.so to 755
> changing mode of 
> /export/home/drkirkby/sage-4.2/local/lib/python2.6/lib-dynload/
> to 755
> running install_scripts
> copying build/scripts-2.6/2to3 -> /export/home/drkirkby/sage-4.2/local/bin
> copying build/scripts-2.6/smtpd.py -> /export/home/drkirkby/sage-4.2/local/bin
> copying build/scripts-2.6/idle -> /export/home/drkirkby/sage-4.2/local/bin
> copying build/scripts-2.6/pydoc -> /export/home/drkirkby/sage-4.2/local/bin
> changing mode of /export/home/drkirkby/sage-4.2/local/bin/2to3 to 755
> changing mode of /export/home/drkirkby/sage-4.2/local/bin/smtpd.py to 755
> changing mode of /export/home/drkirkby/sage-4.2/local/bin/idle to 755
> changing mode of /export/home/drkirkby/sage-4.2/local/bin/pydoc to 755
> running install_egg_info
> Removing
> /export/home/drkirkby/sage-4.2/local/lib/python2.6/lib-dynload/Python-2.6.2-py2.6.egg-info
> Writing
> /export/home/drkirkby/sage-4.2/local/lib/python2.6/lib-dynload/Python-2.6.2-py2.6.egg-info
> if test -f /export/home/drkirkby/sage-4.2/local/bin/python -o -h
> /export/home/drkirkby/sage-4.2/local/bin/python; \
>        then rm -f /export/home/drkirkby/sage-4.2/local/bin/python; \
>        else true; \
>        fi
> (cd /export/home/drkirkby/sage-4.2/local/bin; ln python2.6 python)
> rm -f /export/home/drkirkby/sage-4.2/local/bin/python-config
> (cd /export/home/drkirkby/sage-4.2/local/bin; ln -s python2.6-config 
> python-config)
> /usr/bin/ginstall -c -m 644 ./Misc/python.man \
>                /export/home/drkirkby/sage-4.2/local/share/man/man1/python.1
> make[2]: Leaving directory
> `/export/home/drkirkby/sage-4.2/spkg/build/python-2.6.2.p4/src'
> Sleeping for three seconds before testing python
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/export/home/drkirkby/sage-4.2/local/lib/python/hashlib.py", line 136,
> in <module>
>     md5 = __get_builtin_constructor('md5')
>   File "/export/home/drkirkby/sage-4.2/local/lib/python/hashlib.py", line 63,
> in __get_builtin_constructor
>     import _md5
> ImportError: No module named _md5
>
> real    2m15.850s
> user    1m46.382s
> sys     0m19.649s
> sage: An error occurred while installing python-2.6.2.p4
>
>
>
> Time for bed now, but perhaps someone else has some thoughts on this. I know
> William recently tried Sage on OpenSolaris.

It failed for me with libgcrypt...

Regarding md5, try building openssl devel libraries first.

William

>
> Dave
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

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

Reply via email to