On 2009-01-29 21:48-0700 Jerry wrote:

>
> On Jan 26, 2009, at 1:57 PM, Hazen Babcock wrote:
>
>> Jerry wrote:
>>> Yesterday I started looking at fixing the Ada stripchart example
>>> (17). This has to be run in X11 on the Mac. I discovered that
>>> neither  it nor a few randomly selected other C and Ada examples
>>> now run in  X11 on OS X 10.4.11 (Tiger). They used to. I'm not
>>> aware of making  any changes on my machine or in my build options
>>> since they last ran.  I get only a black window with nothing drawn
>>> in it, and no amount of  clicking around or pressing keys has any
>>> effect.
>>> I seem to recall a discussion about X11 on OS X not long ago but
>>> I  can't find it in the list archives. (Is there no search
>>> function for  the archives?)
>>
>> I think this is due to having PTHREAD=ON. However it should be off
>> by default now on OS-X, so I'm not sure why you are seeing this
>> behavior.
>>
>> The relevant thread is "xwin / pthread / OS-X" started on 1/11/09.
>>
>> -Hazen
>>
> Thanks, Hazen. It looks like I had not done a build since that was
> changed, and when I did, I ran into a problem where cmake and the Mac
> Ada compiler didn't like each other. That problem is now fixed thanks
> to Alan and the cmake team, and now my X11 runs normally.

I am quite happy and relieved a solution has been found for this CMake-2.6
issue.

Jerry played a big role in solving this issue; I don't think a solution
would have been possible without his many patient answers for all the
requests for information that I was relaying to him from the CMake list.

The final solution was a simple, but essential two-line patch to
Modules/Platform/Darwin.cmake to replace -Wl,-compatibility_version, and
-Wl,-current_version with -compatibility_version and -current_version. The
-Wl, passes that option directly to the linker with no interpretation by
gcc.  It's amazing the old version worked for some linkers (although not the
linker associated with macada gcc) since according to the gcc documentation
the names of the options are -compatibility_version and -current_version
without the -Wl, i.e., these options are meant to be interpreted by gcc
rather than passed directly to the linker.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to