Singular
https://www.singular.uni-kl.de/forum/

libfac gmp_numerator
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=1858
Page 1 of 1

Author:  Guest [ Wed Sep 22, 2010 1:53 am ]
Post subject:  libfac gmp_numerator

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

Author:  hannes [ Thu Sep 23, 2010 7:35 pm ]
Post subject:  Re: libfac gmp_numerator

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.

Author:  pcpa1 [ Thu Sep 23, 2010 9:40 pm ]
Post subject:  Re: libfac gmp_numerator

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

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/