On Oct 17, 7:45 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On 10/17/07, Mike Hansen <[EMAIL PROTECTED]> wrote:
>
> > I just upgraded to Ubuntu 7.10, and I have some issues building the NTL 
> > wrapper.
>
> Try moving your sage-main repository and trying again with a clean one, then
> pull in the changes in your personal repository.  I had the same problem, and
> this solved it, I think.
>
> Anyway, I'm using Ubuntu 7.10 myself, so there must have been some simple
> fix like the above to get around the problem below.
>
> William
>
>
>
>
>
> > g++ -o src/ntl_wrap.os -c -fPIC -I/opt/sage/local/include
> > -I/opt/sage/local/include/python2.5 -I/opt/sage/local/include/NTL
> > -Iinclude src/ntl_wrap.cpp
> > src/ntl_wrap.cpp: In function 'NTL::ZZ_pX ZZ_pE_to_ZZ_pX(ZZ_pE)':
> > src/ntl_wrap.cpp:794: error: 'x' has incomplete type
> > src/ntl_wrap.cpp:794: error: forward declaration of 'struct ZZ_pE'

ZZ_pE.h is included via ntl_wrap.h

> > src/ntl_wrap.cpp: At global scope:
> > src/ntl_wrap.cpp:912: error: expected constructor, destructor, or type
> > conversion before '*' token
> > src/ntl_wrap.cpp:923: error: expected constructor, destructor, or type
> > conversion before '*' token
> > src/ntl_wrap.cpp:1082: error: expected constructor, destructor, or
> > type conversion before '*' token
> > src/ntl_wrap.cpp:1087: error: expected constructor, destructor, or
> > type conversion before '*' token
> > src/ntl_wrap.cpp:1092: error: variable or field 'ZZ_pEContext_restore'
> > declared void
> > src/ntl_wrap.cpp:1092: error: 'ZZ_pEContext' was not declared in this scope
> > src/ntl_wrap.cpp:1092: error: 'ctx' was not declared in this scope
> > src/ntl_wrap.cpp:1093: error: expected ',' or ';' before '{' token
> > scons: *** [src/ntl_wrap.os] Error 1
> > ERROR: There was an error building c_lib.
>
> > Here is the ouput of g++ -v
> > [EMAIL PROTECTED]:/opt/sage$ g++ -v
> > Using built-in specs.
> > Target: x86_64-linux-gnu
> > Configured with: ../src/configure -v
> > --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
> > --enable-shared --with-system-zlib --libexecdir=/usr/lib
> > --without-included-gettext --enable-threads=posix --enable-nls
> > --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
> > --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
> > --enable-mpfr --enable-checking=release x86_64-linux-gnu
> > Thread model: posix
> > gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
>
> > I've submitted ahttp://trac.sagemath.org/sage_trac/ticket/914
>
> > --Mike
>

If you look at the g++ command

g++ -o src/ntl_wrap.os -c -fPIC -I/opt/sage/local/include -I/opt/sage/
local/include/python2.5 -I/opt/sage/local/include/NTL -Iinclude src/
ntl_wrap.cpp

it includes "-Iinclude" where ntl_wrap.h should be. Maybe this is a
scons issues and we should include

-I$SAGE_ROOT/devel/sage/c_lib/include

On a side node: ntl_wrap.cpp includes a couple NTL headers directly.
Maybe those should move to ntl_wrap.h

Cheers,

Michael

> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org


--~--~---------~--~----~------------~-------~--~----~
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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to