Hi,
   I too ran into this trouble. Fortunately i remembered that
including some headers might solve the problem. So in $SAGE_ROOT/spkg/
build/quaddouble-2.2.p9/src/tests/qd_test.cpp i had to add:
#include <cstring>
#include <stdlib>
   I also had to add:
#include <cstring>
in $SAGE_ROOT/spkg/build/quaddouble-2.2.p9/src/tests/pslq_test.cpp

On Sep 1, 2:04 pm, Robert Bradshaw <rober...@math.washington.edu>
wrote:
> On Aug 30, 2009, at 9:07 PM, M. Badawy wrote:
>
>
>
>
>
> > Hi...I was trying to build from source on Xubuntu 9.04 32bit running
> > on an IBM Thinkpad T43 w/ Centrino 1.86Ghz proc., 1.5GB Ram. I had to
> > compile because the version in the repos is just too old (3.0.5), and
> > the available
> > binary for 4.1.1 gave an error on startup due (as I discovered from
> > the forum) to the processor I have.
>
> > The relevant error from the install.log is as follows:
> > ======================================================================
> > ===========================
> > Successfully installed quaddouble-2.2.p9
> > Running the test suite.
> > make[2]: Entering directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src'
> > Making check in config
> > make[3]: Entering directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/config'
> > make[3]: Nothing to be done for `check'.
> > make[3]: Leaving directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/config'
> > Making check in src
> > make[3]: Entering directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/src'
> > make[3]: Nothing to be done for `check'.
> > make[3]: Leaving directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/src'
> > Making check in include
> > make[3]: Entering directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/include'
> > make[3]: Nothing to be done for `check'.
> > make[3]: Leaving directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/include'
> > Making check in tests
> > make[3]: Entering directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/tests'
> > make -j1  qd_test pslq_test
> > make[4]: Entering directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/tests'
> > g++ -DHAVE_CONFIG_H   -I.. -I../include -I../include   -fPIC -O3 -Dx86
> >  -MT qd_test.o -MD -MP -MF .deps/qd_test.Tpo -c -o qd_test.o
> > qd_test.cpp
> > qd_test.cpp:25: error: ‘std::strcmp’ has not been declared
> > qd_test.cpp:26: error: ‘std::exit’ has not been declared
> > qd_test.cpp: In function ‘int main(int, char**)’:
> > qd_test.cpp:374: error: ‘strcmp’ was not declared in this scope
> > qd_test.cpp:376: error: ‘exit’ was not declared in this scope
> > make[4]: *** [qd_test.o] Error 1
> > make[4]: Leaving directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/tests'
> > make[3]: *** [check-am] Error 2
> > make[3]: Leaving directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src/tests'
> > make[2]: *** [check-recursive] Error 1
> > make[2]: Leaving directory
> > `/home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9/src'
> > *************************************
> > Error testing package ** quaddouble-2.2.p9 **
> > *************************************
> > sage: An error occurred while testing quaddouble-2.2.p9
> > Please email sage-develhttp://groups.google.com/group/sage-devel
> > explaining the problem and send the relevant part of
> > of /home/dab3/sage-4.1.1/install.log.  Describe your computer,
> > operating system, etc.
> > If you want to try to fix the problem, yourself *don't* just cd to
> > /home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9 and type 'make
> > check' or whatever is appropriate.
> > Instead type "/home/dab3/sage-4.1.1/sage -sh"
> > in order to set all environment variables correctly, then cd to
> > /home/dab3/sage-4.1.1/spkg/build/quaddouble-2.2.p9
> > (When you are done debugging, you can type "exit" to leave the
> > subshell.)
> > make[1]: *** [installed/quaddouble-2.2.p9] Error 1
> > make[1]: Leaving directory `/home/dab3/sage-4.1.1/spkg'
>
> > real    136m19.319s
> > user    122m7.326s
> > sys     7m52.742s
> > Error building Sage.
> > ======================================================================
> > ===========================
>
> > It'd be great if you could tell me how to fix it. Also, would I have
> > to recompile everything from scratch? The whole process as it shows in
> > the log took about 2 hrs.
> > Let me know if you need any more info.
>
> Quaddouble has been deprecated for a while, so we don't use it  
> anywhere. You can probable do
>
> touch /home/dab3/sage-4.1.1/spkg/installed/quaddouble-2.2.p9
>
> and then re-run make (it will start from where it left off).
>
> - Robert

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to