Date: Sun, 17 Oct 2010 13:26:28 -0400 (EDT)
From: Jun-Hui Zhao 
To: Dan Marrone 
Cc: Peter Teuben , smamiriad@cfa.harvard.edu
Subject: Re: miriad beta trouble

Hi Dan,
We are doing so right now(?). We need to debug the beta with the testing
team's feedback from end2end tests and tell us it is OK to replace the
standard SMA miriad in CVS with the beta.
       Jun-Hui

On Sun, 17 Oct 2010, Dan Marrone wrote:

> Hi Junhui,
>
> I think that the key to getting this to work for mac and everything else is
to get the sma beta stuff into the main CVS distribution. once that happens,
everything else will be fine. Is there a reason that this should remain beta at
this point?
>
> Dan
>
> On Oct 17, 2010, at 10:29 AM, Jun-Hui Zhao wrote:
>
> >
> > Hi Dan and Peter,
> >     Thanks for exploring the SMA Miriad on Mac. We now can
> > be justified to request a Mac for the increasing Mac users.
> > Please let me know if you have solutions for the Mac compilation.
> > I recalled we had users' help to fix the Mac problems for the old SMA
> > Miriad. Here are the links,
> >
http://www.cfa.harvard.edu/sma/miriad/manuals/SMAuguide/smauserhtml/install.html
> >     One of tips there is linking to Peter's page.
> >     Jun-Hui
> >
> > On Sun, 17 Oct 2010, Peter Teuben wrote:
> >
> >>  I had some code with that duplicate symbols via an
> >>
> >>     int foobar;
> >>
> >> in .h file that was included multiple times.... We solved it this way:
> >>
> >>


> >>
> >> In a defs.h file we would say
> >>
> >> #if !defined(global)
> >> #  define global extern
> >> #endif
> >>
> >>
> >> which in only one .c file you use
> >>
> >>     #define global
> >>     #include "foobar.h"       // in here:      global int foobar;
> >>
> >> which in only one .c file it becomes the definiton, in all others,
> >>  it effectively becomes
> >>
> >>     int foobar;
> >> since global is a blank for the preprocessor.
> >>
> >> If you just have one instance, you can hardcode it. But we had lots of
> >> legacy code,
> >> and judging from my comments, I did this for the mac back in 2004. deja
> >> vu. Another
> >> horrible thing the mac made me change is not being able to handle files
> >> with upper
> >> case and lower code living side by side..   we had math.h and Math.h in
> >> CASA at one
> >> point.... horrible to lower ones standard this deep. But the linking
> >> issue i can't complain
> >> about, as just reading source code, it's ambiguous.
> >>
> >>
> >>
> >> peter
> >>
> >>
> >>
>
>