See 
https://web.archive.org/web/20201218114127/https://trac.sagemath.org/ticket/27372
 
for some previous discussion about this

El miércoles, 29 de enero de 2025 a las 21:43:36 UTC+1, marc....@gmail.com 
escribió:

> On Wed, Jan 29, 2025 at 1:33 PM Dima Pasechnik <dim...@gmail.com> wrote:
>
>>
>>  libgap is not really involved here;
>>
> cypring's GAP kernel module
>> (that's what's compiled here) can be loaded either in libgap, or in
>> gap executable - and the latter
>> isn't linked to libgap.
>
>  
> I am no expert in GAP.  But the code in crypting.c references symbols 
> which are defined in libgap.  So to build crypting.so from crypting.o you 
> have to link against libgap or something else which defines those same 
> symbols.  After building with my patch, if I run the gap executable 
> $SAGE_ROOT/local/bin/gap then I am able to load the crypting module:
>
> % 
> /Applications/SageMath-10-6.app/Contents/Frameworks/Sage.framework/Versions/Current/local/bin/gap
>  ┌───────┐   GAP 4.13.1 of 2024-06-11
>  │  GAP  │   https://www.gap-system.org
>  └───────┘   Architecture: aarch64-apple-darwin24-default64-kv9
>  Configuration:  gmp 6.3.0, GASMAN, readline
>  Loading the library and packages ...
>  Packages:   AClib 1.3.2, Alnuth 3.2.1, AtlasRep 2.1.8, AutPGrp 1.11, 
>              CRISP 1.4.6, Cryst 4.1.27, CrystCat 1.1.10, CTblLib 1.3.9, 
>              FactInt 1.6.3, FGA 1.5.0, GAPDoc 1.6.7, IO 4.8.2, 
>              IRREDSOL 1.4.4, LAGUNA 3.9.6, Polenta 1.3.10, Polycyclic 
> 2.16, 
>              PrimGrp 3.4.4, RadiRoot 2.9, ResClasses 4.7.3, SmallGrp 
> 1.5.3, 
>              Sophus 1.27, TomLib 1.2.11, TransGrp 3.6.5, utils 0.85
>  Try '??help' for help. See also '?copyright', '?cite' and '?authors'
> gap> LoadPackage("crypting");
>
> ────────────────────────────────────────────────────────────────────────────
> Loading crypting 0.10.4 (Hashes and Crypto in GAP)
> by Markus Pfeiffer (http://www.morphism.de/~markusp/).
> maintained by:
>    Markus Pfeiffer (http://www.morphism.de/~markusp/) and
>    The GAP Team (sup...@gap-system.org).
> Homepage: https://gap-packages.github.io/crypting/
> Report issues at https://github.com/gap-packages/crypting/issues
>
> ────────────────────────────────────────────────────────────────────────────
> true
>
> That is all that I know about this.
>
> - Marc 
>

-- 
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 sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/45bb25f5-a9f6-48d0-b0aa-9104662c6933n%40googlegroups.com.

Reply via email to