#16105: Stop linking everything to libntl
-------------------------------------+-------------------------------------
Reporter: darij | Owner:
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-6.2
Component: build | Resolution:
Keywords: ntl, crash | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/16105 | b8a96a49dd23f420b2b6cc45553cb2e9b812d27a
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Okay, "dangerous" isn't the right word.
The problem is the following:
{{{
sage: mylist = ["hello"]
sage: a = mylist
sage: a.append("world")
sage: a
['hello', 'world']
sage: mylist
['hello', 'world']
}}}
As you can see, `a` and `mylist` remain the same object. The same if you
use `+=`. That is also the reason why some Sage command lines look like
{{{
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
-I/usr/local/src/sage-config/local/include/singular -I/usr/local/src/sage-
config/local/include -I/usr/local/src/sage-config/local/include/csage
-I/usr/local/src/sage-config/src -I/usr/local/src/sage-config/src/sage/ext
-I/usr/local/src/sage-config/local/include -I/usr/local/src/sage-
config/local/include/csage -I/usr/local/src/sage-config/src
-I/usr/local/src/sage-config/src/sage/ext -I/usr/local/src/sage-
config/local/include/python2.7 -c sage/rings/polynomial/plural.cpp -o
build/temp.linux-x86_64-2.7/sage/rings/polynomial/plural.o
-D__STDC_LIMIT_MACROS -fno-strict-aliasing -w -fno-strict-aliasing -w
-fno-strict-aliasing -w -fno-strict-aliasing -w -fno-strict-aliasing -w
-fno-strict-aliasing -w -fno-strict-aliasing -w -fno-strict-aliasing -w
-fno-strict-aliasing -w -fno-strict-aliasing -w -fno-strict-aliasing -w
-fno-strict-aliasing -w -fno-strict-aliasing -w
}}}
so I plan to fix this also here.
--
Ticket URL: <http://trac.sagemath.org/ticket/16105#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.