Opened 7 years ago

Closed 7 years ago

#36880 closed defect (fixed)

webkit-gtk: Undefined symbols _objc_registerThreadWithCollector

Reported by: M.Hairer@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: webkit-gtk

Description (last modified by ryandesign (Ryan Schmidt))

The subject says it all... The system is 10.8.2 with Xcode 4.5.2 on a retina MBP. To make sure that I wasn't using an outdated port, I did:

sudo port -yds sync
sudo port -vds selfupdate
sudo port -vs upgrade outdated
sudo port -v clean webkit-gtk
sudo port install -s webkit-gtk

The output of the last command is:

--->  Computing dependencies for webkit-gtk
--->  Fetching distfiles for webkit-gtk
--->  Verifying checksum(s) for webkit-gtk
--->  Extracting webkit-gtk
--->  Applying patches to webkit-gtk
--->  Configuring webkit-gtk
--->  Building webkit-gtk
Error: org.macports.build for port webkit-gtk returned: command execution failed
Please see the log file for port webkit-gtk for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_webkit-gtk/webkit-gtk/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port webkit-gtk failed

I will attach the log file.

Attachments (1)

main.log.bz2 (427.5 KB) - added by ryandesign (Ryan Schmidt) 7 years ago.
M.Hairer's log compressed

Download all attachments as: .zip

Change History (4)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to jeremyhu@…
Port: webkit-gtk added
Summary: webkit-gtk 1.10.1 fails to buildwebkit-gtk: Undefined symbols _objc_registerThreadWithCollector

Please compress large files; I've uploaded a compressed version of your log and deleted the original.

Remember also to use WikiFormatting when writing in Trac, to fill in the Port field, and to Cc the maintainer of that port.

The first error I see in the log is:

:info:build libtool: link: /usr/bin/llvm-g++-4.2 -pipe -O2 -arch x86_64 -O2 -arch x86_64 -o Programs/TestWebKitAPI/TestWTF Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-AtomicString.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-CString.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-CheckedArithmeticOperations.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-Functional.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-HashMap.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-MediaTime.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-RedBlackTree.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-StringBuilder.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-StringImpl.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-StringOperators.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-TemporaryChange.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-VectorBasic.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-Vector.o Tools/TestWebKitAPI/Tests/WTF/Programs_TestWebKitAPI_TestWTF-VectorReverse.o  -L/opt/local/lib Libraries/.libs/libTestWebKitAPIMain.a Libraries/.libs/libgtest.a ./.libs/libWTF.a -licui18n -licuuc -licudata /opt/local/lib/libgtk-x11-2.0.dylib /opt/local/lib/libgdk-x11-2.0.dylib /opt/local/lib/libatk-1.0.dylib /opt/local/lib/libpangocairo-1.0.dylib /opt/local/lib/libXinerama.dylib /opt/local/lib/libXi.dylib /opt/local/lib/libXrandr.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libXcursor.dylib /opt/local/lib/libXcomposite.dylib /opt/local/lib/libXdamage.dylib /opt/local/lib/libgdk_pixbuf-2.0.dylib /opt/local/lib/libpangoft2-1.0.dylib /opt/local/lib/libXfixes.dylib /opt/local/lib/libcairo.dylib /opt/local/lib/libpixman-1.dylib /opt/local/lib/libpng15.dylib /opt/local/lib/libxcb-shm.dylib /opt/local/lib/libX11-xcb.dylib /opt/local/lib/libxcb-render.dylib /opt/local/lib/libXrender.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib /opt/local/lib/libpango-1.0.dylib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib -lbz2 /opt/local/lib/libexpat.dylib /opt/local/lib/libsoup-2.4.dylib /opt/local/lib/libxml2.dylib -lpthread /opt/local/lib/liblzma.dylib -lm /opt/local/lib/libgio-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib -lz /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libffi.dylib /opt/local/lib/libglib-2.0.dylib -lresolv /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc -pthread
:info:build Undefined symbols for architecture x86_64:
:info:build   "_objc_registerThreadWithCollector", referenced from:
:info:build       WTF::initializeCurrentThreadInternal(char const*)in libWTF.a(libWTF_la-ThreadingPthreads.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status

I see this same error was also filed as upstream bug 58737 last year against Snow Leopard. There is a small patch attached there.

Changed 7 years ago by ryandesign (Ryan Schmidt)

Attachment: main.log.bz2 added

M.Hairer's log compressed

comment:2 in reply to:  1 Changed 7 years ago by M.Hairer@…

Replying to ryandesign@…:

Please compress large files; I've uploaded a compressed version of your log and deleted the original.

Remember also to use WikiFormatting when writing in Trac, to fill in the Port field, and to Cc the maintainer of that port.

Thanks for the info.

I see this same error was also filed as upstream bug 58737 last year against Snow Leopard. There is a small patch attached there.

Great, that seems to work fine, thanks a lot. Applying the patch automatically doesn't work because it was made against an older version of webkit-gtk. However, changing the two relevant lines by hand does the trick.

comment:3 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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