Bill Allombert on Fri, 10 Feb 2012 20:16:54 +0100


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

Re: Installation issue with GMP 5.0.2


On Fri, Feb 10, 2012 at 12:45:29PM -0500, Frank Thorne wrote:
> 
> frank-thornes-macbook-2:cubic-1.2 frankthorne$ make cubic
> gcc -L/opt/local/lib -Wl,-rpath,/opt/local/lib -o cubic util.o
> ccubic.o rcubic.o -lgmp -lpari -lm
> Undefined symbols:
>   "_TIMERstart", referenced from:
>       _main in util.o
>   "_TIMER", referenced from:
>       _main in util.o
>   "_gprealloc", referenced from:
>       _main in util.o
>   "_gpmalloc", referenced from:
>       _init_TI in util.o
>       _main in util.o
>       _main in util.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [cubic] Error 1

I would probably need to see the log of the whole compilation.
(do "make clean; make cubic").
but this strongly suggests that you have old headers file in
/usr/local/include/pari which are not compatible with with this PARI version
and they are used in preference of the new one, so you get the old symbols
TIMERstart, TIMER, gprealloc, gpmalloc which do not exist in the new library.

You should see lines 
gcc -DPRINT -O3 -Wall -DGCC_INLINE -I/opt/local/pari -o util.o -c util.c
etc.

Cheers,
Bill.