Looking at the branch I see a change to "src/module_list.py". This file is 
not a thing any more in Sage. 
See 
https://wiki.sagemath.org/ReleaseTours/sage-9.2#For_developers:_Changes_to_the_build_system_of_sagelib


On Wednesday, March 15, 2023 at 6:56:32 PM UTC-7 Brent W. Baccala wrote:

> Hi -
>
> I'm trying to get the DifferentialAlgebra package in issue 13268 running 
> (it has a github branch that was imported from trac).
>
> Last time I had it running was 9.0 (I think), and now I'm trying to build 
> it on 9.8.
>
> It seems to build fine, but can't access functions in the shared library 
> that was built from upstream's C code.
>
> It does this:
>
> baccala@samsung:~/src/sage-rg$ ./sage
> ┌────────────────────────────────────────────────────────────────────┐
> │ SageMath version 9.8, Release Date: 2023-02-11                     │
> │ Using Python 3.11.1. Type "help()" for help.                       │
> └────────────────────────────────────────────────────────────────────┘
> sage: import sage.calculus.DifferentialAlgebra
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> Cell In [1], line 1
> ----> 1 import sage.calculus.DifferentialAlgebra
>
> ImportError: /home/baccala/src/sage-rg/src/sage/calculus/
> DifferentialAlgebra.cpython-311-x86_64-linux-gnu.so: undefined symbol: 
> bmi_sage_is_constant
> sage: 
>
> The function is cimported in DifferentialAlgebra.pyx:
>
> cimport sage.libs.bmi_c as bmi_c
>
> bmi_c.pxd is in src/sage/libs and contains lines like this:
>
> cdef extern from "bmi.h":
>     ...
>     ctypedef bmi_balsa_object_string* ALGEB_string
>     ALGEB_string bmi_sage_is_constant (
>                 char*, char*, ALGEB, char*, char*, ba0_int_p, ba0_int_p)
>
> The symbol exists in a shared library in local/lib:
>
> baccala@samsung:~/src/sage-rg$ ls -l local/lib/libbmi.so.0.0.0
> -rwxr-xr-x 1 baccala baccala 973584 Mar 15 16:17 local/lib/libbmi.so.0.0.0
> baccala@samsung:~/src/sage-rg$ nm local/lib/libbmi.so.0.0.0 | grep 
> bmi_sage_is_constant
> 000000000000c140 T bmi_sage_is_constant
>
>
> Any idea what needs to be done to access this shared library from Sage?
>
> It may be related to something that changed since Sage 9.0.
>
> Thanks for any help you can provide!
>
>     agape
>     brent
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5363374f-dceb-4176-8e69-f1402d2cb8f2n%40googlegroups.com.

Reply via email to