Overview

Artifact ID: 352f4c616572615a19c9f113fb663df521117d8e3c779f0ce288ae2740ff21eb
Ticket: c6cc9e097be16bd328603059e0ac3a73269ef25e
MacOS Catalina duplicate symbol _tdomStubsPtr
User & Date: anonymous 2020-06-05 07:39:51
Changes

  1. Change icomment to:

    Hi,

    I cloned the tkdom repo, opened it, and then tried to build it with the following options:

    ./configure --with-tcl='/usr/local/opt/tcl-tk/lib' --enable-html5
    make

    and I receive the following error:

    gcc -dynamiclib -pipe  -Os -DNDEBUG -Wall -fno-common -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/tcl-tk/include  -L/usr/local/opt/tcl-tk/lib -L/usr/local/opt/tcl-tk/lib -prebind -headerpad_max_install_names -Wl,-search_paths_first  -Wl,-single_module -current_version 0.9.2 -compatibility_version 0.9.2 -o libtdom0.9.2.dylib xmlrole.o xmltok.o xmlparse.o xmlsimple.o dom.o domhtml.o domhtml5.o domjson.o domxpath.o domxslt.o domlock.o tcldom.o nodecmd.o tdominit.o tclexpat.o tclpull.o tdomStubInit.o -L/usr/local/Cellar/gumbo-parser/0.10.1/lib -lgumbo  -L/usr/local/Cellar/tcl-tk/8.6.10/lib -ltclstub8.6
    ld: warning: option -prebind is obsolete and being ignored
    duplicate symbol '_tdomStubsPtr' in:
        tdominit.o
        tclpull.o
    duplicate symbol '_tdomStubsPtr' in:
        tdominit.o
        tdomStubInit.o
    ld: 2 duplicate symbols for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [libtdom0.9.2.dylib] Error 1
    

    I've experimented with both

    --disable stubs
    and removing
    --enable-html5
    and receive the same error when building, in the linking step.

    My system:

    MacOS Catalina
    10.15.5
    

    My clang version:

    Apple clang version 11.0.3 (clang-1103.0.32.62)
    Target: x86_64-apple-darwin19.5.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin
    

    My tcl version:

    tcl-tk: stable 8.6.10
    

    Thanks meff

  2. Change login to "anonymous"
  3. Change mimetype to "text/html"
  4. Change severity to "Critical"
  5. Change status to "Open"
  6. Change title to "MacOS Catalina duplicate symbol _tdomStubsPtr"
  7. Change type to "Build_Problem"