Bill Allombert on Fri, 09 Apr 2004 09:53:34 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: gp: anal.c more bugs


On Fri, Mar 19, 2004 at 11:59:12AM -0800, Ilya Zakharevich wrote:
> On Wed, Mar 17, 2004 at 09:45:08PM +0100, Bill Allombert wrote:
> > A minima I would like the program below compile and link fine with the
> > command
> > 
> > gcc main.c -lpari
> 
> This is a laudable goal; unfortunately, it has no chance to work
> portably.  At least you need -lm.

Let say gcc main.c -lpari -lm then.
-lm is independent of the Configure options.

> > As of now this is broken:
> > /home/bill/pari/i686/lib/libpari.so: undefined reference to `plot_outfile_set'
> > /home/bill/pari/i686/lib/libpari.so: undefined reference to `set_pointsize'
> > /home/bill/pari/i686/lib/libpari.so: undefined reference to `rectdraw0'
> > /home/bill/pari/i686/lib/libpari.so: undefined reference to `term_set'
> > /home/bill/pari/i686/lib/libpari.so: undefined reference to `PARI_get_plot'
> > collect2: ld returned 1 exit status
> 
> *These* are because one plotting module is omited.  Adding it and
> -lX11 should fix things.  AFAIU, on most architectures one can compile
> libpari.dll so that -lX11 is not needed on the main application.

But what if PARI was configured with an alternative graphic engine
(fltk,qt,etc...) ? The program will be linked with that library, and
will not work with libpari.so.x build with a different graphic engine.

Anyway we need to remove plotport.o from libpari until the issue above
is sorted out.

Cheers,
Bill.