Opened 10 years ago

Closed 10 years ago

#44524 closed defect (fixed)

wxWidgets-3.0: build failing on Yosemite

Reported by: nvdchr@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version:
Keywords: yosemite Cc: mojca (Mojca Miklavec), Schamschula (Marius Schamschula)
Port: wxWidgets-3.0

Description (last modified by ryandesign (Ryan Carsten Schmidt))

On a Yosemite Mac OSX 10.10 mac pro

Christophes-Mac-Pro:~ cngo$ sudo port -v
MacPorts 2.3.1
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-3.0/wxWidgets-3.0/work/wxWidgets-3.0.1/build/bk-deps /usr/bin/clang++ -c -o xrcdll_xh_listbk.o -I./.pch/wxprec_xrcdll -D__WXOSX_COCOA__      -DWXBUILDING      -I../src/regex  -DWXUSINGDLL -DWXMAKINGDLL_XRC -dynamic -fPIC -DPIC -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wno-deprecated-declarations -D_FILE_OFFSET_BITS=64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-3.0/wxWidgets-3.0/work/wxWidgets-3.0.1/build/lib/wx/include/osx_cocoa-unicode-3.0 -I../include -I/opt/local/include -I/opt/local/include -DWX_PRECOMP -pipe -Os -arch x86_64 -stdlib=libc++ -fno-common  ../src/xrc/xh_listbk.cpp
:info:build ../src/osx/webview_webkit.mm:392:30: warning: incompatible pointer types sending 'WebViewUIDelegate *' to parameter of type 'id<WKUIDelegate>' [-Wincompatible-pointer-types]
:info:build     [m_webView setUIDelegate:uiDelegate];
:info:build                              ^~~~~~~~~~
:info:build ../src/osx/webview_webkit.mm:464:34: warning: 'WKPreferences' may not respond to 'setUsesPageCache:'
:info:build         [[m_webView preferences] setUsesPageCache:NO];
:info:build          ~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build ../src/osx/webview_webkit.mm:466:34: warning: 'WKPreferences' may not respond to 'setUsesPageCache:'
:info:build         [[m_webView preferences] setUsesPageCache:YES];
:info:build          ~~~~~~~~~~~~~~~~~~~~~~~ ^
:info:build ../src/osx/webview_webkit.mm:936:25: error: cannot initialize a variable of type 'WebBackForwardList *' with an rvalue of type 'WKBackForwardList *'
:info:build     WebBackForwardList* history = [m_webView backForwardList];
:info:build                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ../src/osx/webview_webkit.mm:954:25: error: cannot initialize a variable of type 'WebBackForwardList *' with an rvalue of type 'WKBackForwardList *'
:info:build     WebBackForwardList* history = [m_webView backForwardList];
:info:build                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build 3 warnings and 2 errors generated.
:info:build make: *** [webviewdll_osx_webview_webkit.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-3.0/wxWidgets-3.0/work/wxWidgets-3.0.1/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-3.0/wxWidgets-3.0/work/wxWidgets-3.0.1/build" && /usr/bin/make -j12 -w all 
:info:build Exit code: 2

Attachments (2)

patch-wxwidgets-3.0.diff (403 bytes) - added by mf2k (Frank Schima) 10 years ago.
patch-webview_webkit.mm.diff (335 bytes) - added by mf2k (Frank Schima) 10 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mojca@… added
Description: modified (diff)
Keywords: yosemite added
Owner: changed from macports-tickets@… to jwa@…
Port: wxWidgets-3.0 added
Summary: wxWidgets-3.0.1 build failingwxWidgets-3.0: build failing on Yosemite

comment:2 Changed 10 years ago by mojca (Mojca Miklavec)

Version: 2.3.1

Please report the problem upstream and let us know the ticket number (or a link to the ticket).

I would also suggest you to try to use a different compiler (for example macports-clang-3.4 or 3.3) just to check if that makes any difference. What compiler version did you use? I would like to check if it is possible to reproduce the error on another OS version with a newer compiler.

Last edited 10 years ago by mojca (Mojca Miklavec) (previous) (diff)

comment:3 Changed 10 years ago by Schamschula (Marius Schamschula)

Ran into this this morning. I found the following upstream report:

http://trac.wxwidgets.org/ticket/16329

comment:4 Changed 10 years ago by Schamschula (Marius Schamschula)

Cc: mschamschula@… added

Cc Me!

comment:5 Changed 10 years ago by mojca (Mojca Miklavec)

Thank you for the link. Can someone with Yosemite please try to prepare a patch that works for you?

Changed 10 years ago by mf2k (Frank Schima)

Attachment: patch-wxwidgets-3.0.diff added

Changed 10 years ago by mf2k (Frank Schima)

comment:6 Changed 10 years ago by mf2k (Frank Schima)

The attached patches work for me on Yosemite beta 3.

comment:7 Changed 10 years ago by mojca (Mojca Miklavec)

Please commit it then.

Out of curiosity: does wxgtk-2.8 work on Yosemite?

Last edited 10 years ago by mojca (Mojca Miklavec) (previous) (diff)

comment:8 Changed 10 years ago by mojca (Mojca Miklavec)

But please add the source of the patch if one exists (http://trac.wxwidgets.org/changeset/xyz) or at least the reference to the ticket.

The ticket mentions three commits, but none of those match the change that you used (even though they mention this patch as a possible candidate).

comment:9 Changed 10 years ago by mf2k (Frank Schima)

r125408. I'll leave this ticket open for other user comments and potentially a better fix. But feel free to close it.

I have not tested wxgtk-2.8 on Yosemite yet.

comment:10 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.