[MacPorts] #59838: Webkit2-gtk @2.26.2_0+minibrowser+x11 JSCore Compilation

MacPorts noreply at macports.org
Thu Dec 12 15:37:26 UTC 2019


#59838: Webkit2-gtk @2.26.2_0+minibrowser+x11 JSCore Compilation
------------------------+-------------------------
 Reporter:  jmercouris  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:              |       Port:  webkit2-gtk
------------------------+-------------------------
 I'm not able to compile a program using WebKitGTK+ without doing the steps
 reproduced below.

 I had the following error on compilation:

 {{{
 In file included from
 /opt/local/include/webkitgtk-4.0/JavaScriptCore/JSObjectRef.h:31:
 /opt/local/include/webkitgtk-4.0/JavaScriptCore/JSValueRef.h:54:18: error:
 missing ',' between enumerators
     kJSTypeSymbol JSC_API_AVAILABLE(macos(10.15), ios(13.0))
 }}}

 Investigating a little bit more I see a file
 /opt/local/include/webkitgtk-4.0/JavaScriptCore/WebKitAvailability.h

 in which the symbol {{{JSC_API_AVAILABLE}}} is defined. That file is
 reproduced below for convenience:

 {{{
 /*
  * Copyright (C) 2008, 2009, 2010, 2014 Apple Inc. All Rights Reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  * 1. Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
  * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */

 #ifndef __WebKitAvailability__
 #define __WebKitAvailability__

 #if defined(__APPLE__)

 #include <AvailabilityMacros.h>
 #include <CoreFoundation/CoreFoundation.h>

 #if defined(BUILDING_GTK__)
 #undef JSC_API_AVAILABLE
 #define JSC_API_AVAILABLE(...)
 #endif

 #else
 #define JSC_API_AVAILABLE(...)
 #endif

 #endif /* __WebKitAvailability__ */
 }}}

 I had to change it like this to get anything to compile with WebKitGTK+,
 basically so that the symbol is defined.

 {{{
 #ifndef __WebKitAvailability__
 #define __WebKitAvailability__

 #if defined(__APPLE__)

 #include <AvailabilityMacros.h>
 #include <CoreFoundation/CoreFoundation.h>

 #define JSC_API_AVAILABLE(...)
 #endif

 #endif /* __WebKitAvailability__ */
 }}}

 Not sure if this is a known issue or if I am possibly not setting some
 environment variable in my compilation. In any case, I figured I would
 make this report. Please note that this problem should also effect webkit2
 -gtk-devel.

 Thank you for your time!

-- 
Ticket URL: <https://trac.macports.org/ticket/59838>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list