Skip Menu |

This queue is for tickets about the Math-Pari CPAN distribution.

Report information
The Basics
Id: 17424
Status: open
Priority: 0/
Queue: Math-Pari

People
Owner: Nobody in particular
Requestors: jgilbert [...] biomail.ucsd.edu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.010703
Fixed in: (no value)



Subject: Pari.xs "prec" undeclared line 313+ built against pari-2.2.1
cc -c -I ../pari-2.2.12.beta/src -I../pari-2.2.12.beta/src/headers -I../pari-2.2.12.beta/src -I./libPARI -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=pentium3 -DVERSION=\"2.010702\" -DXS_VERSION=\"2.010702\" -fPIC "-I/usr/lib/perl5/5.8.7/i686-linux-thread-multi/CORE" -DPARI_VERSION_EXP=2002012 -DDEBUG_PARI -DLSB_in_U32=0 -Derr=pari_err -DGCC_INLINE Pari.c Pari.xs: In function `installep': Pari.xs:281: warning: initialization makes pointer from integer without a cast Pari.xs: In function `my_gpui': Pari.xs:313: error: `prec' undeclared (first use in this function) Pari.xs:313: error: (Each undeclared identifier is reported only once Pari.xs:313: error: for each function it appears in.) Pari.xs: In function `setprecision': Pari.xs:851: error: `prec' undeclared (first use in this function) Pari.xs: In function `fill_argvect': Pari.xs:1345: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface0': Pari.xs:1826: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface1': Pari.xs:1859: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface199': Pari.xs:1882: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface29': Pari.xs:2126: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface5': Pari.xs:2206: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface27': Pari.xs:2425: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface33': Pari.xs:2542: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface37': Pari.xs:2597: error: `prec' undeclared (first use in this function) Pari.xs: In function `XS_Math__Pari_interface73': Pari.xs:2832: error: `prec' undeclared (first use in this function) Pari.c: In function `XS_Math__Pari_type_name': Pari.c:4974: warning: assignment discards qualifiers from pointer target type Pari.xs: In function `boot_Math__Pari': Pari.xs:3456: error: `INIT_JMP_off' undeclared (first use in this function) Pari.xs:3457: error: `INIT_SIG_off' undeclared (first use in this function) Pari.xs:3462: error: `pari_modules' undeclared (first use in this function) Pari.xs:3463: error: `helpmessages_highlevel' undeclared (first use in this function) make: *** [Pari.o] Error 1
Subject: Re: [rt.cpan.org #17424] Pari.xs "prec" undeclared line 313+ built against pari-2.2.1
Date: Wed, 1 Feb 2006 18:31:13 -0800
To: Guest via RT <bug-Math-Pari [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Wed, Feb 01, 2006 at 08:49:27PM -0500, Guest via RT wrote: Show quoted text
> > Wed Feb 01 20:49:26 2006: Request 17424 was acted upon. > Transaction: Ticket created by guest > Queue: Math-Pari > Subject: Pari.xs "prec" undeclared line 313+ built against pari-2.2.1 > Owner: Nobody > Requestors: jgilbert@biomail.ucsd.edu > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=17424 > > > > cc -c -I ../pari-2.2.12.beta/src -I../pari-2.2.12.beta/src/headers
Did not you see how to report bugs? Anyway, it looks like an obsolete Math::Pari is used. Hope this helps, Ilya
Subject: Re: [rt.cpan.org #17424] Pari.xs "prec" undeclared line 313+ built against pari-2.2.12.beta
Date: Wed, 1 Feb 2006 18:53:48 -0800
To: <bug-Math-Pari [...] rt.cpan.org>
From: "Gilbert, John" <JGG [...] dolby.com>
Hello Ilya, It's the same problem with both 2.010702 and 2.010703. It's just shifted to line 323+ in 2.010703. Oh, and it looks like the bug report form clipped the header to 2.2.1. should be 2.2.12.beta. There's a second problem, I'm including the patch to fix, but someone who understands the build process should redo this. libPARI/mp.c is generated on the fly but with a now bogus include pragma. "proc" is just a long, but where it's initialized in Pari I haven't figured out yet. Just declaring it doesn't seem wise. Thanks. John G. jgilbert@biomail.ucsd.edu ----------------------------------------- This message (including any attachments) may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, delete this message. If you are not the intended recipient, disclosing, copying, distributing, or taking any action based on this message is strictly prohibited.

Message body is not shown because sender requested not to inline it.

CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #17424] Pari.xs "prec" undeclared line 313+ built against pari-2.2.12.beta
Date: Wed, 1 Feb 2006 21:56:07 -0800
To: "Gilbert, John via RT" <bug-Math-Pari [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Wed, Feb 01, 2006 at 09:55:19PM -0500, Gilbert, John via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=17424 > > > Hello Ilya, > It's the same problem with both 2.010702 and 2.010703. It's just shifted > to line 323+ in 2.010703. > Oh, and it looks like the bug report form clipped the header to 2.2.1. > should be 2.2.12.beta.
I see. The corresponding #if's are triggered by 2.2.13. Switch to CVS, please. Or, better, edit #if's so that they work with 2.2.12 (if it is not too much work). Show quoted text
> There's a second problem, I'm including the patch to fix, but someone > who understands the build process should redo this. libPARI/mp.c is > generated on the fly but with a now bogus include pragma.
Not here (with CVS). Anyway, it should be done by modifying INCLUDE MakeMaker setting, not the code. Thanks, Ilya
Subject: Pari.xs "prec" undeclared line 313+ built against pari-2.2.12
From: Possible fix
On Wed Feb 01 20:49:26 2006, guest wrote: Show quoted text
> cc -c -I ../pari-2.2.12.beta/src -I../pari-2.2.12.beta/src/headers > -I../pari-2.2.12.beta/src -I./libPARI -D_REENTRANT -D_GNU_SOURCE > -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=pentium3 > -DVERSION=\"2.010702\" -DXS_VERSION=\"2.010702\" -fPIC > "-I/usr/lib/perl5/5.8.7/i686-linux-thread-multi/CORE" > -DPARI_VERSION_EXP=2002012 -DDEBUG_PARI -DLSB_in_U32=0 -Derr=pari_err > -DGCC_INLINE Pari.c > Pari.xs: In function `installep': > Pari.xs:281: warning: initialization makes pointer from integer
without Show quoted text
> a cast > Pari.xs: In function `my_gpui': > Pari.xs:313: error: `prec' undeclared (first use in this function) > Pari.xs:313: error: (Each undeclared identifier is reported only once > Pari.xs:313: error: for each function it appears in.) > Pari.xs: In function `setprecision': > Pari.xs:851: error: `prec' undeclared (first use in this function) > Pari.xs: In function `fill_argvect': > Pari.xs:1345: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface0': > Pari.xs:1826: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface1': > Pari.xs:1859: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface199': > Pari.xs:1882: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface29': > Pari.xs:2126: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface5': > Pari.xs:2206: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface27': > Pari.xs:2425: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface33': > Pari.xs:2542: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface37': > Pari.xs:2597: error: `prec' undeclared (first use in this function) > Pari.xs: In function `XS_Math__Pari_interface73': > Pari.xs:2832: error: `prec' undeclared (first use in this function) > Pari.c: In function `XS_Math__Pari_type_name': > Pari.c:4974: warning: assignment discards qualifiers from pointer
target Show quoted text
> type > Pari.xs: In function `boot_Math__Pari': > Pari.xs:3456: error: `INIT_JMP_off' undeclared (first use in this
function) Show quoted text
> Pari.xs:3457: error: `INIT_SIG_off' undeclared (first use in this
function) Show quoted text
> Pari.xs:3462: error: `pari_modules' undeclared (first use in this
function) Show quoted text
> Pari.xs:3463: error: `helpmessages_highlevel' undeclared (first use in > this function) > make: *** [Pari.o] Error 1
In Pari.xs it appears that "#if PARI_VERSION_EXP >= 2002013" is never evaluated true and a lot variables never get defined. I changed all occurences of 2002013 to 2002012 and successfully compiled.
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #17424] Pari.xs "prec" undeclared line 313+ built against pari-2.2.12
Date: Wed, 1 Mar 2006 11:37:02 -0800
To: Guest via RT <bug-Math-Pari [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Wed, Mar 01, 2006 at 01:12:45PM -0500, Guest via RT wrote: Show quoted text
> In Pari.xs it appears that "#if PARI_VERSION_EXP >= 2002013" is never > evaluated true and a lot variables never get defined.
This appears false. CVS version is long at 2.2.13. Show quoted text
> I changed all occurences of 2002013 to 2002012 and successfully > compiled.
Thanks, it is important to know. >>TODO Yours, Ilya