import heimdal questions
Love Hörnquist Åstrand
lha at kth.se
Sun Aug 15 16:03:22 MDT 2010
15 aug 2010 kl. 14.15 skrev Matthieu Patou:
> On 15/08/2010 23:45, Love Hörnquist Åstrand wrote:
>> Hello Matthieu,
>>
>> What missing is extra files that have been added as part development (in this case, migration to ltm and sharing of more data with the windows port).
> Yeah I understood this a bit lately,
>
> The thing is that that for *_tfm_method and *_ltm_method there is a PILE of new C file potentially :
> find heimdal/lib/hcrypto/tomsfastmath/ | grep -E '\.c' | wc -l
> 99
libtomfastmath is going away very soon
> find heimdal/lib/hcrypto/libtommath/ | grep -E '\.c' | wc -l
> 133
>
> I can of course add all of them but are they all needed ?
You should add them same files that are added in the file lib/hcrypto/Makefile.am
> Also I started to add some files but I get this :
>
> ../heimdal/lib/hcrypto/tomsfastmath/src/mul/fp_mul_comba.c: In function ‘fp_mul_comba’:
> ../heimdal/lib/hcrypto/tomsfastmath/src/mul/fp_mul_comba.c:349: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
> ../heimdal/lib/hcrypto/tomsfastmath/src/mul/fp_mul_comba.c:349: error: ‘asm’ operand has impossible constraints
>
> I'm not sure that having plateforme ASM is the will of the project ...
tomsfastmath is going way, mostly because its not (much) faster then libtommath.
I'll push more clearup bits where tfm is gone very soon. Sorry for making you catch a version that is in the middle of migration between two mignum libraries.
Love
>
> Matthieu.
>>
>> Currently I'm maintaining two build systems (autoconf/windows make), we talked about adding waf too to make heimdal not break every time you import it in samba.
>>
>> Is your tree available somewhere ?
>>
>> Love
>>
>>
>> 15 aug 2010 kl. 10.01 skrev Matthieu Patou:
>>
>>> Hello Love,
>>>
>>> I'm trying to import heimdal in s4 to be able to tests your change in hx509 area.
>>>
>>> I'm having this error message:
>>> default/source4/lib/ldb/libldb-samba4.so: undefined reference to `hc_DH_ltm_method'
>>> default/source4/lib/ldb/libldb-samba4.so: undefined reference to `hc_RSA_tfm_method'
>>> default/source4/lib/ldb/libldb-samba4.so: undefined reference to `hc_DH_tfm_method'
>>> default/source4/lib/ldb/libldb-samba4.so: undefined reference to `hc_RSA_ltm_method'
>>> default/source4/lib/ldb/libldb-samba4.so: undefined reference to `hc_rsa_tfm_method'
>>>
>>>
>>>
>>> As rgrep hc_RSA_tfm_method * -I 2>/dev/null gives:
>>>
>>> heimdal/lib/hcrypto/rsa.h:#define RSA_tfm_method hc_RSA_tfm_method
>>> heimdal-new/lib/hcrypto/libhcrypto-exports.def: hc_RSA_tfm_method
>>> heimdal-new/lib/hcrypto/rsa.h:#define RSA_tfm_method hc_RSA_tfm_method
>>> heimdal-new/lib/hcrypto/version-script.map: hc_RSA_tfm_method;
>>> 'import-heimdal shell'>make
>>>
>>> I guess that we should have libhcrypto-export.def and version-script.map in our heimdal copy but as I'm not familiar with the library packaging I don't know how to do it.
>>>
>>> Also I'm a bit surprised that I don't find the definition of the function hc_RSA_tfm_method anywhere in the code, did I miss something ?
>>>
>>> I had a similar problem with the function _krb5_expand_path_tokens which seems comming out of nowhere and was used in lib/krb5/cache.c (in this case I managed to revert your patch just to see if I'm able to build s4).
>>>
>>> Please give me some advices!
>>>
>>> Matthieu
>>>
>>>
>>>
>>> --
>>> Matthieu Patou
>>> Samba Team http://samba.org
>>>
>>
>
>
> --
> Matthieu Patou
> Samba Team http://samba.org
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3815 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100815/99f07b28/attachment.bin>
More information about the samba-technical
mailing list