Hi David,

that is a remarkable piece of detective work. I have never used OSX
myself and therefore do not have any experience developing applications
for it, but you have digged up is a rahter nasty feature here.

As for sending patches, you can do that to this list, unless it is
a rather large patch. In that case you can send it to one of the
developers instead.

I agree that option 3b looks the cleanest. It should not be
too hard to implement it - the build system has several examples
on how to check for specific functions. Something along the
lines of TestSignalType.cmake for instance.

Regards,

Arjen

On 2010-01-28 08:04, David MacMahon wrote:
> On Jan 27, 2010, at 16:42 , David MacMahon wrote:
> 
>> 3a. Add code within "#if define ( __APPLE __)" blocks so that NXArgc
>> can be modified to match the modified contents of NXArgv/argv.  This
>> might also an issue on NeXTSTEP, since I think that's where Apple
>> picked up these variables (hence the NX prefix)
>>
>> 3b. Create a cmake test for NXArgc/NXArgv and define a HAVE_NXARGC
>> macro that can be used instead of __APPLE__.
>>
>> I think 3b might be the cleanest option, but I'm open other
>> possibilities (including any I've not listed).  Opinions?
> 
> FWIW, I've created and tested a patch for 3a.  It turns out that  
> directly accessing NXArgc from a library is not possible, but there  
> is a function...
> 
> int * _NSGetArgc()
> 
> ...declared in /usr/include/crt_externs.h that can be used to get a  
> pointer to the global argc.  If anyone wants the patch, let me know.
> 
> Is it generally OK to send patches to plplot-devel or should I send  
> them to a different list or should I send them off-list to a  
> committer or should I ...?
> 
> If someone wants to try doing 3b, I think it would be great, but my  
> cmake skills are not up to that task (yet).
> 
> Thanks,
> Dave
> 
> 
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 
> 

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to