I tried building sage 3.0 on an x86 laptop running Solaris Express
Developer Edition snv_79b. At the time of writing this is the latest
developer edition, but there are later community editions of Solaris.
I was using gcc 4.0.2, but Sun's make program in /usr/bin/make.

bash-3.2$ cat /etc/release
               Solaris Express Developer Edition 1/08 snv_79b X86
          Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                       Use is subject to license terms.
                           Assembled 24 January 2008

bash-3.2$ uname -a
SunOS kingfisher 5.11 snv_79a i86pc i386 i86pc


I hit a problem while when sage is trying to build readline, which I
believe was probably introduced when someone added a test for Darwin.
*****************
*****************
gcc -c -DHAVE_CONFIG_H   -I. -I.. -I.. -DRL_LIBRARY_VERSION='"5.2"' -g
-O -fpic -DREADLINE_LIBRARY -c -o tilde.o ../tilde.c
mv tilde.o tilde.so
rm -f compat.so
gcc -c -DHAVE_CONFIG_H   -I. -I.. -I.. -DRL_LIBRARY_VERSION='"5.2"' -g
-O -fpic -o compat.o ../compat.c
mv compat.o compat.so
rm -f libreadline.so.5
gcc -shared -Wl,-i -Wl,-h,libreadline.so.5  -o libreadline.so.5
readline.so vi_mode.so funmap.so keymaps.so parens.so search.so
rltty.so complete.so bind.so isearch.so display.so signals.so  util.so
kill.so undo.so macro.so input.so callback.so terminal.so  text.so
nls.so misc.so xmalloc.so history.so histexpand.so histfile.so
histsearch.so shell.so  mbutil.so tilde.so  compat.so
rm -f libhistory.so.5
gcc -shared -Wl,-i -Wl,-h,libhistory.so.5  -o libhistory.so.5
history.so histexpand.so histfile.so histsearch.so shell.so  mbutil.so
xmalloc.so
( cd shlib ; make  DESTDIR= install )
/bin/sh ../support/mkdirs /export/home/drkirkby/sage-3.0/local/lib
/bin/sh ../support/shlib-install -O solaris2.11 -d /export/home/
drkirkby/sage-3.0/local/lib -b /export/home/drkirkby/sage-3.0/local/
bin -i "/usr/bin/ginstall -c -m 644" libhistory.so.5
/bin/sh ../support/shlib-install -O solaris2.11 -d /export/home/
drkirkby/sage-3.0/local/lib -b /export/home/drkirkby/sage-3.0/local/
bin -i "/usr/bin/ginstall -c -m 644" libreadline.so.5
install: you may need to run ldconfig
Error building readline

real    0m21.815s
user    0m12.931s
sys     0m8.218s
sage: An error occurred while installing readline-5.2.p1
Please email sage-devel http://groups.google.com/group/sage-devel
***********************
***********************

On investigation, I found that the test for Darwin in the script

sage-3.0/spkg/build/readline-5.2.p1/spkg-install

is the source of the problem. It uses '==" for a comparison, but
should I believe use '='.

bash-3.2$ diff readline-5.2.p1/spkg-install sage-3.0/spkg/build/
readline-5.2.p1/spkg-install
11,12c11,12
<     if [ `uname` = 'Darwin' ]; then
<       if [ `uname -r | awk -F. '{ print $1; }'` = '9' ]; then
---
>     if [ `uname` == 'Darwin' ]; then
>       if [ `uname -r | awk -F. '{ print $1; }'` == '9' ]; then
23c23
< if [ `uname` = 'Darwin' ]; then
---
> if [ `uname` == 'Darwin' ]; then



Once I changed that, readline works fine. (Later I get a problem with
pari, but that is another issue).

David Kirkby

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to