Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: libfac gmp_numerator
PostPosted: Wed Sep 22, 2010 1:53 am 
Hi,

I am updating Mandriva sagemath package to 4.5.3, and had an issue with calls to gmp_numerator
and gmp_denominator and gmp_numerator in singular 3-1-1.

My solution was to not install factory-3-1-1.tar.gz, factory-doc.tar.gz and libfac-3-1-1.tar.gz in the
build, like I previously did. The problem is the calls in clapconv.cc:

Code:
$ grep -r gmp_numerator Singular-3-1-1
Singular-3-1-1/factory/cf_factor.cc:        MP_INT m=gmp_numerator(f);
Singular-3-1-1/factory/cf_factor.cc:        MP_INT m=gmp_numerator(f);
Singular-3-1-1/factory/int_int.h:    friend MP_INT gmp_numerator ( const CanonicalForm & f );
Singular-3-1-1/factory/int_rat.h:    friend MP_INT gmp_numerator ( const CanonicalForm & f );
Singular-3-1-1/factory/singext.h:MP_INT gmp_numerator ( const CanonicalForm & f );
Singular-3-1-1/factory/singext.cc:gmp_numerator ( const CanonicalForm & f )
Singular-3-1-1/factory/winnt/factory.h:MP_INT gmp_numerator ( const CanonicalForm & f );
Singular-3-1-1/kernel/clapconv.cc:    gmp_numerator( n, z->z );
Singular-3-1-1/kernel/clapconv.cc:      gmp_numerator( f, z->z );
Singular-3-1-1/kernel/clapconv.cc:    gmp_numerator( f, z->z );


as it calls with two arguments.

Thanks,
Paulo


Report this post
Top
  
Reply with quote  
 Post subject: Re: libfac gmp_numerator
PostPosted: Thu Sep 23, 2010 7:35 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
The current version of Singular requires factory and libfac,
factory should be configured with the flag --with-singular.
(gmp_numerator is one of the additional functions enabled
by this switch)
Probably you have a factory version without that switch in your system.
To solve that: remove it, at least temporarily.

We are working on solving that:
- future version of factory will not require that switch
- future version of Singular will also compile without factory/libfac,
but you will loose functionality if you do so.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: libfac gmp_numerator
PostPosted: Thu Sep 23, 2010 9:40 pm 

Joined: Wed Sep 22, 2010 1:45 am
Posts: 1
I think am not as experienced as an user as I am as a packager in the case of sagemath and singular :-)

You can have an idea of how the package is built by looking at the rpm spec at

svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/singular/current/SPECS/singular.spec?view=markup

Same of the "workarounds" added in the spec file may not be required anymore.

If I understand it correctly, factory-3-1-1.tar.gz and/or libfac-3-1-1.tar.gz are not updated, as if not installing
those it will actually have a gmp_numerator that receives 2 arguments.

Thanks,
Paulo


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:07 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group