On Sat, Sep 5, 2009 at 12:55 AM, Maxwell, Adam R <[email protected]>wrote:

>
>
>
> On 09/04/09 15:47, "Christiaan Hofman" <[email protected]> wrote:
>
> >
> > On Sep 5, 2009, at 0:26, Maxwell, Adam R wrote:
> >
> >> I updated from svn today and tried to recompile (Mac Pro, 10.5.8), and
> >> linking fails for all architectures since
> >> IOPMAssertionCreateWithName is not
> >> public on 10.5 and earlier (although the symbol is present in IOKIt):
> >>
> >> Undefined symbols:
> >>  "_IOPMAssertionCreateWithName", referenced from:
> >>      -[SKMainWindowController enterPresentationMode] in
> >> SKMainWindowController.o
> >> ld: symbol(s) not found
> >> collect2: ld returned 1 exit status
> >>
> >> http://lists.apple.com/archives/Darwin-dev/2008/Jul/msg00069.html
> >
> > I don't understand that. It's now declared in the file, and it should
> > be present in the binary from everything I read, so why doesn't it link?
>
> Maybe it was compiled with __private_extern__?  I can see the symbol with
> nm, but I can also see FileView.framework symbols that I know are declared
> as __private_extern__.
>
> > It's certainly a bug of Apple, because it's documented to be supported.
>
> Is it documented as supported in 10.6?  The only thing I could find was the
> IOKit engineer saying it's not supported on 10.5, and I don't have 10.6
> here.
>

No, it's documented to be introduced in 10.5, while the alternative
IOPMAssertionCreate is already deprecated on 10.6. So if I believe the 10.6
docs, I should use IOPMAssertionCreateWithName and not IOPMAssertionCreate,
both on 10.5 and 10.6. And all the engineer said is that it's not documented
AFAICS. Filed a bug report.

Christiaan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to