Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with ntl-8.* #710

Closed
tom111 opened this issue Mar 26, 2015 · 2 comments
Closed

Compatibility with ntl-8.* #710

tom111 opened this issue Mar 26, 2015 · 2 comments

Comments

@tom111
Copy link

tom111 commented Mar 26, 2015

Hi,

ntl-8.* releases are appearing and Singular is currently not compatible. Something in the conversion interface changed:

NTLconvert.cc: In function ‘CanonicalForm convertZZ2CF(const NTL::ZZ&)’:
NTLconvert.cc:504:33: error: invalid cast from type ‘const NTL::WrappedPtr<void, NTL::ZZ::Deleter>’ to type ‘long int*’
 long sizeofrep= ((long *) a.rep) [1];
                             ^
NTLconvert.cc:522:79: error: invalid cast from type ‘const NTL::WrappedPtr<void, NTL::ZZ::Deleter>’ to type ‘long int*’
 int cc= mpn_get_str (cf_stringtemp, 16, (mp_limb_t *) (((long *) (a.rep)) + 2), sizeofrep);
@malex984
Copy link
Member

Hi,

i thought that i have fixed this issue with de68844
91ecc7e106...

Could you please try building Singular with NTL 8 using the current
spielwiese HEAD checkout?

O.

Am Donnerstag, 26. März 2015 schrieb Thomas Kahle :

Hi,

ntl-8.* releases are appearing and Singular is currently not compatible.
Something in the conversion interface changed:

NTLconvert.cc: In function ‘CanonicalForm convertZZ2CF(const NTL::ZZ&)’:
NTLconvert.cc:504:33: error: invalid cast from type ‘const NTL::WrappedPtr<void, NTL::ZZ::Deleter>’ to type ‘long int_’
long sizeofrep= ((long *) a.rep) [1];
^
NTLconvert.cc:522:79: error: invalid cast from type ‘const NTL::WrappedPtr<void, NTL::ZZ::Deleter>’ to type ‘long int_’
int cc= mpn_get_str (cf_stringtemp, 16, (mp_limb_t *) (((long *) (a.rep)) + 2), sizeofrep);


Reply to this email directly or view it on GitHub
#710.

Sincerely Yours,

Dr. Oleksandr Motsak Office 48 / R. 437
Fachbereich Mathematik Tel. +49-631-205-2738
TU Kaiserslautern Fax +49-631-205-4795

D-67653 Kaiserslautern http://www.mathematik.uni-kl.de/~motsak

@tom111
Copy link
Author

tom111 commented Mar 26, 2015

Oh, I was testing the release version and did not check current HEAD. The patch works and is shipped in Gentoo's Singular package now. Thanks!

@tom111 tom111 closed this as completed Mar 26, 2015
hannes14 added a commit to hannes14/Sources that referenced this issue Apr 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants