Opened 15 years ago
Closed 14 years ago
#22152 closed defect (duplicate)
amarok fails to buildon app_mac.cpp
Reported by: | raul.moratalla@… | Owned by: | illogic-al@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.1 |
Keywords: | Cc: | ||
Port: | amarok |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hi, this is not the same error as ticket #22037. this is the output of the error:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/amarok-2.2.0/src/app_mac.cpp: In function 'void setupEventHandler_mac(long int)': /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/amarok-2.2.0/src/app_mac.cpp:94: error: invalid conversion from 'void*' to 'SRefCon' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/amarok-2.2.0/src/app_mac.cpp:94: error: initializing argument 4 of 'OSErr AEInstallEventHandler(AEEventClass, AEEventID, OSErr (*)(const AppleEvent*, AppleEvent*, SRefCon), SRefCon, Boolean)' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/amarok-2.2.0/src/app_mac.cpp:96: error: invalid conversion from 'void*' to 'SRefCon' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_amarok/work/amarok-2.2.0/src/app_mac.cpp:96: error: initializing argument 4 of 'OSErr AEInstallEventHandler(AEEventClass, AEEventID, OSErr (*)(const AppleEvent*, AppleEvent*, SRefCon), SRefCon, Boolean)' make[2]:
Change History (4)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to illogic-al@… |
Port: | amarok added |
comment:2 Changed 15 years ago by oroboros@…
comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:4 Changed 14 years ago by michaelld (Michael Dickens)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
BTW> Tracking this issue now in ticket #25489, so I'm closing this one as duplicate.
Note: See
TracTickets for help on using
tickets.
This fails on my machine as well (10.5, G5, XCode 3.1.4).
I was able to get past this by changing the (void *) cast on lines 94 and 96 of app_mac.cpp to an (SRefCon) cast, as per the documentation here:
http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/Carbon64BitGuide/PortingTo64Bit/PortingTo64Bit.html
No need for a diff; the fix is trivial.