[Webkit-unassigned] [Bug 214912] New: [GTK] Linking error during build of 2.28.4

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 28 22:56:47 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=214912

            Bug ID: 214912
           Summary: [GTK] Linking error during build of 2.28.4
           Product: WebKit
           Version: WebKit Local Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: Gtk
          Severity: Normal
          Priority: P3
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Tom.Schoonjans at me.com
                CC: bugs-noreply at webkitgtk.org

HI all,


I did not manage to build webkitgtk on macOS as I ended up with some linking errors. Cmake was invoked as:

cmake \
        -DENABLE_MINIBROWSER=ON \
        -DENABLE_OPENGL=OFF \
        -DPORT=GTK \
        -DCMAKE_BUILD_TYPE=Release \
        -GNinja \
        -DCMAKE_INSTALL_PREFIX=${PREFIX} \
        -DENABLE_VIDEO=OFF -DENABLE_WEB_AUDIO=OFF \
        -DENABLE_GEOLOCATION=OFF \
        -DENABLE_SPELLCHECK=OFF \
        -DUSE_LIBNOTIFY=OFF \
        -DUSE_LIBHYPHEN=OFF \
        -DUSE_OPENJPEG=OFF \
        -DUSE_WOFF2=OFF \
        -DENABLE_WEB_CRYPTO=OFF \
        ..

The observed error was:

[2274/4212] Linking CXX executable bin/WebKitWebDriver
FAILED: bin/WebKitWebDriver 
: && $BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang++ -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-noexcept-type -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/webkitgtk-2.28.4 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -fno-strict-aliasing -fno-exceptions -fno-rtti -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib Source/WebDriver/CMakeFiles/WebDriver.dir/CommandResult.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/HTTPServer.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/Session.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/SessionHost.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/WebDriverMain.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/WebDriverService.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/__/__/DerivedSources/WebDriver/WebDriverAtoms.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/glib/SessionHostGlib.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/glib/WebDriverServiceGLib.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/gtk/WebDriverServiceGtk.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/soup/HTTPServerSoup.cpp.o -o bin/WebKitWebDriver  $PREFIX/lib/libsoup-2.4.dylib  lib/libWTFGTK.a  lib/libbmalloc.a  $PREFIX/lib/libicudata.dylib  $PREFIX/lib/libicui18n.dylib  $PREFIX/lib/libicuuc.dylib  $PREFIX/lib/libgio-2.0.dylib  $PREFIX/lib/libgobject-2.0.dylib  $PREFIX/lib/libglib-2.0.dylib  $PREFIX/lib/libz.dylib && :
Undefined symbols for architecture x86_64:
  "_u_charDirection_55", referenced from:
      WTF::StringImpl::stripWhiteSpace() in libWTFGTK.a(StringImpl.cpp.o)
      WTF::StringImpl::simplifyWhiteSpace() in libWTFGTK.a(StringImpl.cpp.o)
      WTF::StringImpl::defaultWritingDirection(bool*) in libWTFGTK.a(StringImpl.cpp.o)
      int WTF::toIntegralType<int, unsigned short>(unsigned short const*, unsigned long, bool*, int) in libWTFGTK.a(WTFString.cpp.o)
      unsigned int WTF::toIntegralType<unsigned int, unsigned short>(unsigned short const*, unsigned long, bool*, int) in libWTFGTK.a(WTFString.cpp.o)
      long long WTF::toIntegralType<long long, unsigned short>(unsigned short const*, unsigned long, bool*, int) in libWTFGTK.a(WTFString.cpp.o)
      unsigned long long WTF::toIntegralType<unsigned long long, unsigned short>(unsigned short const*, unsigned long, bool*, int) in libWTFGTK.a(WTFString.cpp.o)
      ...
  "_u_foldCase_55", referenced from:
      WTF::StringImpl::foldCase() in libWTFGTK.a(StringImpl.cpp.o)
  "_u_strFoldCase_55", referenced from:
      WTF::StringImpl::foldCase() in libWTFGTK.a(StringImpl.cpp.o)
  "_u_strToLower_55", referenced from:
      WTF::StringImpl::convertToLowercaseWithoutLocale() in libWTFGTK.a(StringImpl.cpp.o)
      WTF::StringImpl::convertToLowercaseWithLocale(WTF::AtomString const&) in libWTFGTK.a(StringImpl.cpp.o)
  "_u_strToUpper_55", referenced from:
      WTF::StringImpl::convertToUppercaseWithoutLocale() in libWTFGTK.a(StringImpl.cpp.o)
      WTF::StringImpl::convertToUppercaseWithLocale(WTF::AtomString const&) in libWTFGTK.a(StringImpl.cpp.o)
  "_u_tolower_55", referenced from:
      WTF::StringImpl::convertToLowercaseWithoutLocale() in libWTFGTK.a(StringImpl.cpp.o)
      WTF::StringImpl::convertToLowercaseWithoutLocaleStartingAtFailingIndex8Bit(unsigned int) in libWTFGTK.a(StringImpl.cpp.o)
  "_u_toupper_55", referenced from:
      WTF::StringImpl::convertToUppercaseWithoutLocale() in libWTFGTK.a(StringImpl.cpp.o)
  "_ubrk_close_55", referenced from:
      WTF::LineBreakIteratorPool::put(UBreakIterator*) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::closeLineBreakIterator(UBreakIterator*&) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::NonSharedCharacterBreakIterator::~NonSharedCharacterBreakIterator() in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::NonSharedCharacterBreakIterator::~NonSharedCharacterBreakIterator() in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::numGraphemeClusters(WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::numCodeUnitsInGraphemeClusters(WTF::StringView, unsigned int) in libWTFGTK.a(TextBreakIterator.cpp.o)
  "_ubrk_current_55", referenced from:
      WTF::numCodeUnitsInGraphemeClusters(WTF::StringView, unsigned int) in libWTFGTK.a(TextBreakIterator.cpp.o)
  "_ubrk_following_55", referenced from:
      WTF::StringView::GraphemeClusters::Iterator::Iterator(WTF::StringView const&, unsigned int) in libWTFGTK.a(StringView.cpp.o)
      WTF::StringView::GraphemeClusters::Iterator::operator++() in libWTFGTK.a(StringView.cpp.o)
  "_ubrk_getRuleStatus_55", referenced from:
      WTF::isWordTextBreak(UBreakIterator*) in libWTFGTK.a(TextBreakIterator.cpp.o)
  "_ubrk_next_55", referenced from:
      WTF::numGraphemeClusters(WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::numCodeUnitsInGraphemeClusters(WTF::StringView, unsigned int) in libWTFGTK.a(TextBreakIterator.cpp.o)
  "_ubrk_open_55", referenced from:
      WTF::TextBreakIterator::TextBreakIterator(WTF::StringView, WTF::TextBreakIterator::Mode, WTF::AtomString const&) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::wordBreakIterator(WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::sentenceBreakIterator(WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::openLineBreakIterator(WTF::AtomString const&) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::NonSharedCharacterBreakIterator::NonSharedCharacterBreakIterator(WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::NonSharedCharacterBreakIterator::NonSharedCharacterBreakIterator(WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::numGraphemeClusters(WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      ...
  "_ubrk_setText_55", referenced from:
      WTF::setTextForIterator(UBreakIterator&, WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
  "_ubrk_setUText_55", referenced from:
      WTF::TextBreakIterator::TextBreakIterator(WTF::StringView, WTF::TextBreakIterator::Mode, WTF::AtomString const&) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::setTextForIterator(UBreakIterator&, WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::acquireLineBreakIterator(WTF::StringView, WTF::AtomString const&, unsigned short const*, unsigned int, WTF::LineBreakIteratorMode) in libWTFGTK.a(TextBreakIterator.cpp.o)
  "_uidna_nameToASCII_55", referenced from:
      WTF::appendEncodedHostname(WTF::Vector<unsigned short, 512ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, WTF::StringView) in libWTFGTK.a(URL.cpp.o)
      WTF::Optional<WTF::Vector<unsigned char, 2048ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > WTF::URLParser::domainToASCII<unsigned char>(WTF::StringImpl&, WTF::CodePointIterator<unsigned char> const&) in libWTFGTK.a(URLParser.cpp.o)
      WTF::Optional<WTF::Vector<unsigned char, 2048ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > WTF::URLParser::domainToASCII<unsigned short>(WTF::StringImpl&, WTF::CodePointIterator<unsigned short> const&) in libWTFGTK.a(URLParser.cpp.o)
  "_uidna_openUTS46_55", referenced from:
      void std::__1::__call_once_proxy<std::__1::tuple<WTF::URLParser::internationalDomainNameTranscoder()::$_0&&> >(void*) in libWTFGTK.a(URLParser.cpp.o)
  "_uloc_setKeywordValue_55", referenced from:
      WTF::LineBreakIteratorPool::makeLocaleWithBreakKeyword(WTF::AtomString const&, WTF::LineBreakIteratorMode) in libWTFGTK.a(TextBreakIterator.cpp.o)
  "_unorm2_getNFCInstance_55", referenced from:
      WTF::normalizedNFC(WTF::StringView) in libWTFGTK.a(StringView.cpp.o)
  "_unorm2_isNormalized_55", referenced from:
      WTF::normalizedNFC(WTF::StringView) in libWTFGTK.a(StringView.cpp.o)
  "_unorm2_normalize_55", referenced from:
      WTF::normalizedNFC(WTF::StringView) in libWTFGTK.a(StringView.cpp.o)
  "_utext_close_55", referenced from:
      WTF::TextBreakIterator::TextBreakIterator(WTF::StringView, WTF::TextBreakIterator::Mode, WTF::AtomString const&) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::setTextForIterator(UBreakIterator&, WTF::StringView) in libWTFGTK.a(TextBreakIterator.cpp.o)
      WTF::acquireLineBreakIterator(WTF::StringView, WTF::AtomString const&, unsigned short const*, unsigned int, WTF::LineBreakIteratorMode) in libWTFGTK.a(TextBreakIterator.cpp.o)
  "_utext_setup_55", referenced from:
      WTF::openLatin1UTextProvider(WTF::UTextWithBuffer*, unsigned char const*, unsigned int, UErrorCode*) in libWTFGTK.a(UTextProviderLatin1.cpp.o)
      WTF::openLatin1ContextAwareUTextProvider(WTF::UTextWithBuffer*, unsigned char const*, unsigned int, unsigned short const*, int, UErrorCode*) in libWTFGTK.a(UTextProviderLatin1.cpp.o)
      WTF::uTextLatin1Clone(UText*, UText const*, signed char, UErrorCode*) in libWTFGTK.a(UTextProviderLatin1.cpp.o)
      WTF::openUTF16ContextAwareUTextProvider(UText*, unsigned short const*, unsigned int, unsigned short const*, int, UErrorCode*) in libWTFGTK.a(UTextProviderUTF16.cpp.o)
      WTF::uTextCloneImpl(UText*, UText const*, signed char, UErrorCode*) in libWTFGTK.a(UTextProvider.cpp.o)
  "_utf8_appendCharSafeBody_55", referenced from:
      WTF::Unicode::convertLatin1ToUTF8(unsigned char const**, unsigned char const*, char**, char*) in libWTFGTK.a(UTF8Conversion.cpp.o)
      WTF::Unicode::convertUTF16ToUTF8(unsigned short const**, unsigned short const*, char**, char*, bool) in libWTFGTK.a(UTF8Conversion.cpp.o)
  "_utf8_nextCharSafeBody_55", referenced from:
      WTF::Unicode::convertUTF8ToUTF16(char const*, char const*, unsigned short**, unsigned short*, bool*) in libWTFGTK.a(UTF8Conversion.cpp.o)
      WTF::Unicode::calculateStringHashAndLengthFromUTF8MaskingTop8Bits(char const*, char const*, unsigned int&, unsigned int&) in libWTFGTK.a(UTF8Conversion.cpp.o)
      WTF::Unicode::equalUTF16WithUTF8(unsigned short const*, char const*, char const*) in libWTFGTK.a(UTF8Conversion.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)



I assume this can be fixed by adding additional libraries to link against?

Any thoughts?

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200729/ecd946ac/attachment-0001.htm>


More information about the webkit-unassigned mailing list