Issue 96549 - vcl/aqua/source/gdi deprecation warnings
Summary: vcl/aqua/source/gdi deprecation warnings
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: DEV300m35
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: OOo 3.1
Assignee: philipp.lohmann
QA Contact: issues@gsl
URL:
Keywords: aqua
: 92820 (view as issue list)
Depends on:
Blocks:
 
Reported: 2008-11-24 20:20 UTC by Stephan Bergmann
Modified: 2009-01-19 10:20 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Code patch (1.34 KB, patch)
2008-12-06 18:11 UTC, dyrcona
no flags Details | Diff
A better version of the patch. (1.34 KB, patch)
2008-12-06 18:27 UTC, dyrcona
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Stephan Bergmann 2008-11-24 20:20:36 UTC
At least on Intel Mac OS X 10.5.5 with configure --enable-werror, building vcl fails with deprecation 
warnings in vcl/aqua/source/gdi

---8<---
/Users/stephan/DEV300m35/vcl/aqua/source/gdi/salgdi.cxx: In function 'bool AddTempFontDir(const 
char*)':
/Users/stephan/DEV300m35/vcl/aqua/source/gdi/salgdi.cxx:1500: warning: 
'ATSFontActivateFromFileSpecification' is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/AT
SFont.h:283)
/Users/stephan/DEV300m35/vcl/aqua/source/gdi/salgdi.cxx:1502: warning: 
'ATSFontActivateFromFileSpecification' is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/AT
SFont.h:283)
/Users/stephan/DEV300m35/vcl/aqua/source/gdi/salgdi.cxx: In member function 'virtual bool 
AquaSalGraphics::AddTempDevFont(ImplDevFontList*, const String&, const String&)':
/Users/stephan/DEV300m35/vcl/aqua/source/gdi/salgdi.cxx:1587: warning: 
'ATSFontActivateFromFileSpecification' is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/AT
SFont.h:283)
/Users/stephan/DEV300m35/vcl/aqua/source/gdi/salgdi.cxx:1589: warning: 
'ATSFontActivateFromFileSpecification' is deprecated (declared at 
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/AT
SFont.h:283)
---8<---
Comment 1 hdu@apache.org 2008-11-25 07:52:16 UTC
@sb: since our MacOS build is targeted for OSX10.4 or newer we build with
  -DMAC_OS_X_VERSION_MIN_REQUIRED=1040
Please check the configure scripts why this isn't done in your build scenario.
Comment 2 Stephan Bergmann 2008-11-25 21:55:02 UTC
@hdu:  The only mention of MAC_OS_X_VERSION_MIN_REQUIRED in tags/DEV300_m35 is at tags/DEV300_m35/solenv/config/sdev300.ini@264268 l. 3729.  So, while Sun-Hamburg setsolar 
environment obviously sets it (to 1010), configure environment does not.
Comment 3 dyrcona 2008-12-06 18:11:31 UTC
Created attachment 58575 [details]
Code patch
Comment 4 dyrcona 2008-12-06 18:19:08 UTC
Hmm. Maybe the patch should actually use MAC_OS_X_MIN_ALLOWED rather than
MAC_OS_X_MAX_ALLOWED?

I think the patch may cause problems if you do get a successful build going with
MACOSX_DEPLOYMENT_TARGET=10.4 or with the define option listed in the previous
descriptions. (I couldn't get either to work for me, though.)

Comment 5 dyrcona 2008-12-06 18:27:12 UTC
Created attachment 58578 [details]
A better version of the patch.
Comment 6 hdu@apache.org 2008-12-08 11:26:09 UTC
@dyrcona: thanks for the patch! It will be useful once the deployment target moves to OSX>=10.5.
I also updated the solenv module to set MAC_OS_X_VERSION_MIN_REQUIRED for all build environments on 
OSX.

Fixed in CWS vcl97.
Comment 7 philipp.lohmann 2008-12-08 13:25:04 UTC
target
Comment 8 dyrcona 2008-12-08 13:43:54 UTC
@hdu:

I've got an even better version of the patch if you want it. The latest (third)
patch moves the code to get the FSSpec from the FSRef to after the #else, since
that is only needed for ATSFontActivateFromFileSpecification, which is the
function deprecated in 10.5.
Comment 9 hdu@apache.org 2008-12-08 13:48:19 UTC
@dyrcona: already done. Please check salgdi.cxx in svn revision 264988.
Comment 10 hdu@apache.org 2008-12-09 10:34:57 UTC
Also the revision I mentioned in the previous comment had problems: On older SDKs the 
MAC_OS_X_VERSION_10_5 was not defined. The new salgdi.cxx in CWS vcl97 fixes this: 
http://svn.services.openoffice.org/ooo/cws/vcl97/vcl/aqua/source/gdi/salgdi.cxx

Comment 11 hdu@apache.org 2008-12-09 10:39:11 UTC
*** Issue 92820 has been marked as a duplicate of this issue. ***
Comment 12 hdu@apache.org 2008-12-11 14:14:24 UTC
@pl: please verify in CWS vcl97
Comment 13 philipp.lohmann 2008-12-11 18:26:35 UTC
verified
Comment 14 philipp.lohmann 2009-01-19 10:20:09 UTC
intergrated in m39, closing