Xavier-Francois Roblot on Fri, 28 Sep 2012 06:15:43 +0200


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

Re: Please test pari-2.5.3 prerelease 1


On 27 sept. 2012, at 21:17, Bill Allombert wrote:

> On Thu, Sep 27, 2012 at 08:51:24PM +0200, Xavier-Francois Roblot wrote:
>> 
>> On 27 sept. 2012, at 20:27, Bill Allombert wrote:
>>> It looks like ./gp is a script and not a symlink pointing to Odarwin-i686/gp-dyn, or 
>>> that the command ./gp does not launch ./gp.
>>> What is actaully ./gp ?
>> 
>> pari roblot$ cat gp
>> #!/bin/sh
>> dir="`dirname \"$0\"`"
>> exec "$dir/gp-dyn.app/Contents/MacOS/gp-dyn" "$@"
> 
> I see. This script is not symlink-safe unfortunately.
> 
>> I think the last lines of the output of 'make all' explain what is happening:
>> 
>> (...)
>> rm -f gp-dyn
>> /opt/local/bin/gcc  -o gp-dyn -L"/Users/roblot/pari/Odarwin-i386" -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer    -Wl,-search_paths_first  gp.o gp_init.o gp_rl.o highlvl.o whatnow.o plotport.o plotfltk.o  -L/opt/local/lib -lreadline -lpari -L"/opt/local"/lib -lfltk -framework Carbon -framework Cocoa -lsupc++  
>> fltk-config --post  gp-dyn
>> Creating 'gp-dyn.app' bundle for desktop...
> 
> I assume this is with PARI 2.6 ? Does 2.5 works differently ?

Yes, it is similar, sorry for the confusion. The corresponding lines are:

rm -f gp-dyn
/opt/local/bin/gcc  -o gp-dyn -L"/Users/roblot/pari-2.5.3/Odarwin-i386" -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer    -Wl,-search_paths_first  gp.o gp_init.o gp_rl.o highlvl.o whatnow.o plotport.o plotfltk.o  -L/opt/local/lib -lreadline -L/usr/lib/ -lncurses -lpari -L"/opt/local"/lib -lfltk -framework Carbon -lsupc++  
fltk-config --post  gp-dyn
Creating 'gp-dyn.app' bundle for desktop...

> What happens if you remove -framework Cocoa from the Makefile ?

I tried to remove -framework Carbon from the Makefile in the Odarwin-i386 directory of PARI 2.5.3 (as there is no -framework Cocoa in that case), but that did not change anything. 

BTW, for some strange reason that I cannot explain, ploth is not working anymore (with or without -framework Carbon). I am attaching the corresponding crash report file. I have no idea what changed from yesterday...

Also, to answer your other email:

$ fltk-config --cflags
-I/opt/local/include -pipe -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
$ fltk-config --cxxflags
-I/opt/local/include -pipe -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
$ fltk-config --ldflags
-L/opt/local/lib -lfltk -lpthread -framework Cocoa

Best,

Xavier

Attachment: gp-dyn.crash
Description: Binary data