Enrique,
I have already encountered this problem and solved it. Although I
composed the email, I never got around to sending it. Appended below:
David
========
April 27, 2006
After a few days of head scratching, I've finally figured out why I
could not successfully compile and load and decided to share it with the
group. First some background:
I originally installed NCARG on my Apple G4 laptop running Mac OS X
10.4.2. This version of the OS comes with GCC 4.0.0. I also installed
g77 3.4 from the hpc.sourceforge.net web site. After a few
configuration settings were modified, all worked well.
A few weeks ago, we got an Apple G5 desktop running Mac OS X 10.4.4.
This version of the OS comes with GCC 4.2.0. I continued to use g77 3.4
from the hpc.soureforce.net web site. Attempting to compile and load
results in these errors:
>dob> ncargex cpex08
>
>NCAR Graphics Fortran Example <cpex08>
>
> Copying cpex08.f
>
> Copying cpexcc.f
>
>Compiling and linking...
>g77 -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncarg/lib
-L/usr/X11R6/lib
>-L/sw/lib -lncarg -lncarg_gks -lncarg_c -lXpm -lX11 -lXext
>/usr/bin/ld: Undefined symbols:
>_fprintf$LDBLStub
>_sprintf$LDBLStub
>_printf$LDBLStub
>restFP
>saveFP
>_vsprintf$LDBLStub
>collect2: ld returned 1 exit status
>
>The compile and link failed.
>
>System configuration:
I removed the entire GCC 4.2.0 package from the Mac and attempted a
clean install of the previous version, GCC 4.0.0. Same problem. Then I
replaced the hpc.soureforge.net version of f77 with the version from
fink.sourceforge.net. This worked!
My conclusion is that the current binary downloadable version of NCARG
for Mac OS X does not play well with GCC 4.2.0, which is the current
version that ships with the newest Macs. It does work with GCC 4.0.0.
Hope this is useful information to others.
+------------------------------------------------------------------------+
| David O. Blanchard Flagstaff, Arizona david_blanchard_at_earthlink.net |
+------------------------------------------------------------------------+
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Tue May 16 2006 - 13:56:47 MDT
This archive was generated by hypermail 2.2.0 : Wed May 17 2006 - 10:07:47 MDT