From: Steve K. <sd...@ia...> - 2011-04-01 03:15:40
|
Hi Frank, Bill- Thanks for your responses - I was able to solve this problem. Indeed, the warnings about strncpy were not fatal. What was killing things was the 'ar ru' part of the makefile where the library libpgplot.a was being archived/ranlib-ed More specifically, after running 'makemake . osx gfortran-gcc' I replaced the line 687 of the resulting makefile with libtool -s -o libpgplot.a \ and then all went well. This tip came from the following website: http://iparrizar.mnstate.edu/~juan/urania/2009/10/23/pgplot-on-snow-leopard/ By the way, I'm currently using gfortran 4.5.2 and gcc 4.5.2, latest Xcode from SL 10.6.7 / Software Update. Cheers, Steve On Mar 31, 2011, at 7:06 PM, Frank Timmes wrote: > hi steve, > > these are just warnings. it should be fine. > or are you saying these warnings stop the compilation or link? > > what version of gcc and xcode are you using? > > fxt > > > > On Mar 31, 2011, at 4:04 PM, Steve Kawaler wrote: > >> Hi all- >> >> I've tried to find an answer on my own but am officially stumped. I'm running mesa-star just fine on my MacPro, compiled with gfortran (4.5.2), and would like to implement the pgplot window displays. The problem is when trying to compile pgplot (with the supplied source in the utils directory) the fortran routines all compile, but the some .c routines throw the error (i've removed the directory paths from the log to keep it simple): >> >> gcc -c -DPG_PPU -O2 -I. sys/grfileio.c >> sys/grfileio.c: In function ‘grofil_’: >> sys/grfileio.c:82:5: warning: incompatible implicit declaration of built-in function ‘strncpy’ >> gcc -c -DPG_PPU -O2 -I. sys/grtermio.c >> sys/grtermio.c: In function ‘groter_’: >> sys/grtermio.c:39:5: warning: incompatible implicit declaration of built-in function ‘strncpy’ >> >> What am I missing? >> >> Thanks, >> Steve >> >> Steven Kawaler >> Physics and Astronomy >> Iowa State University >> ------------------------------------------------------------------------------ >> Create and publish websites with WebMatrix >> Use the most popular FREE web apps or write code yourself; >> WebMatrix provides all the features you need to develop and >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> _______________________________________________ >> mesa-users mailing list >> mes...@li... >> https://lists.sourceforge.net/lists/listinfo/mesa-users > |