Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - libfac gmp_numerator
Author Message
  Post subject:  Re: libfac gmp_numerator  Reply with quote
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
Post Posted: Thu Sep 23, 2010 9:40 pm
  Post subject:  Re: libfac gmp_numerator  Reply with quote
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.
Post Posted: Thu Sep 23, 2010 7:35 pm
  Post subject:  libfac gmp_numerator  Reply with quote
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
Post Posted: Wed Sep 22, 2010 1:53 am


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