On 05/16/10 07:01 AM, Paul Leopardi wrote:
Hi all,
I am trying to build Sage 4.4.1 from sourece, using gcc 4.4.1 on SUSE 11.2.
So far I have had two failures. I can work around the first, but have no clue
about the second.
Best, Paul

1. Problem with libreadline
Symptom:
[...]/local/lib/libreadline.so.6: undefined symbol: PC

Workaround:
Try to use native librealine.
leopa...@linfinit:~/src/sage/sage-4.4.1>  ls -l local/lib/libread*
lrwxrwxrwx 1 leopardi users 24 2010-05-16 12:37 local/lib/libreadline.a ->
/usr/lib64/libreadline.a
lrwxrwxrwx 1 leopardi users 16 2010-05-16 12:33 local/lib/libreadline.so ->
libreadline.so.6
lrwxrwxrwx 1 leopardi users 18 2010-05-16 12:35 local/lib/libreadline.so.6 ->
libreadline.so.6.0
lrwxrwxrwx 1 leopardi users 25 2010-05-16 12:36 local/lib/libreadline.so.6.0 -
/lib64/libreadline.so.6.0

There is something strange about readline on OpenSUSE. There some code which does something different on OpenSUSE to other platforms. Perhaps that is not working correctly. It looks a bit of a hack if I'm honest. I don't have time to look at it now, but if you find the readline-$version.spkg, you will find there is something in there which checks a header file and makes a decision based on the header file. It may be that the test does not work on OpenSUSE 11.2.

2. Problem with symmetrica
Symptom:
/bin/bash: symbol lookup error:
[...]/spkg/build/symmetrica-2.0.p5/src/nb.c:4087: undefined reference to `cos'

Workaround:
???

Perhaps it needs the maths library linked, -lm, as that is where 'cos' will be. Though that seems a strange thing to be missing.

Extracts from install.log:

1. Problem with libreadline

readline.c:1112: warning: ‘reset_default_bindings’ defined but not used

This, and the tons of other warnings worries me.

search.c: In function ‘_rl_nsearch_init’:
search.c:213: warning: too many arguments for format

How the hell do the developers let that get by? What the **** where they thinking to ignore such a warning?

complete.c: In function ‘fnwidth’:
complete.c:643: warning: implicit declaration of function ‘wcwidth’

That probably needs

#include <wchar.h>

added to a source file.

../search.c: In function ‘_rl_nsearch_init’:
../search.c:213: warning: too many arguments for format

IMHO, it would be better if compilers would throw this as an error.

/bin/bash: symbol lookup error:


/home/leopardi/src/sage/sage-4.4.1/local/lib/libreadline.so.6: undefined
symbol: PC
Successfully installed readline-6.0.p1

So readline installs, despite the fact the code looks as though it could do with a major cleanup to me.

It is clearly is the cause of many later problems.

sage: An error occurred while installing sqlite-3.6.22

sqlite is a well tested bit of code. The developers take testing very seriously - see

http://www.sqlite.org/testing.html

sage: An error occurred while installing symmetrica-2.0.p5


I would look over the readline.spkg and see if there are any clues there. I think you will find some SUSE specific code there, which may just not work.

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