#4997: OSX64/Cygwin: fix memory.so import issue during doctesting
----------------------+-----------------------------------------------------
 Reporter:  mabshoff  |       Owner:  mabshoff
     Type:  defect    |      Status:  new     
 Priority:  major     |   Milestone:  sage-3.3
Component:  porting   |    Keywords:          
----------------------+-----------------------------------------------------
 When doctesting a 64 bit OSX build of Sage we have these failures for
 every doctest:
 {{{
 sage -t  "devel/sage/sage/rings/complex_interval_field.py"
 Traceback (most recent call last):
   File
 "/Users/michaelabshoff/Desktop/sage-3.2.3-64bit/tmp/complex_interval_field.py",
 line 2, in <module>
     from sage.all_cmdline import *;
   File "/Users/michaelabshoff/Desktop/sage-3.2.3-64bit/local/lib/python2.5
 /site-packages/sage/all_cmdline.py", line 14, in <module>
     from sage.all import *
   File "/Users/michaelabshoff/Desktop/sage-3.2.3-64bit/local/lib/python2.5
 /site-packages/sage/all.py", line 56, in <module>
     from sage.rings.memory import pmem_malloc
 ImportError:
 dlopen(/Users/michaelabshoff/Desktop/sage-3.2.3-64bit/local/lib/python2.5
 /site-packages/sage/rings/memory.so, 2): Symbol not found: _rand_n
   Referenced from:
 /Users/michaelabshoff/Desktop/sage-3.2.3-64bit/local/lib/python2.5/site-
 packages/sage/rings/memory.so
   Expected in: dynamic lookup
 }}}
 The fix is to link the first library to be imported against libcsage:
 {{{
 --- a/module_list.py    Mon Jan 05 23:03:45 2009 -0800
 +++ b/module_list.py    Tue Jan 06 17:13:03 2009 -0800
 @@ -854,7 +854,7 @@

      Extension('sage.rings.memory',
                sources = ['sage/rings/memory.pyx'],
 -              libraries=['gmp','stdc++']),
 +              libraries=['csage','ntl','gmp','stdc++']),

      Extension('sage.rings.morphism',
                sources = ['sage/rings/morphism.pyx']),
 }}}
 This fix is also needed on Cygwin.

 A proper patch is coming up.

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4997>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to