Opened 10 years ago

Last modified 9 years ago

#40994 new defect

phantomjs @1.9.2: library not found for -lQtWebKit

Reported by: wichert@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: macports.org@…, brandon.zacharie@…
Port: phantomjs

Description

Trying to install phantomjs on Mavericks fails with this error:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_phantomjs/phantomjs/work/phantomjs-1.9.2/src/qt
:info:build cd src/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.phantomjs 
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_phantomjs/phantomjs/work/phantomjs-1.9.2/src/qt/bin/qmake -o Makefile.phantomjs phantomjs.pro
:info:build g++ -headerpad_max_install_names -sectcreate __TEXT __info_plist Info.plist -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o ../bin/phantomjs MachIPC.o phantom.o callback.o webpage.o webserver.o main.o csconverter.o utils.o networkaccessmanager.o cookiejar.o filesystem.o system.o env.o terminal.o encoding.o config.o childprocess.o repl.o gif_err.o gifalloc.o egif_lib.o gif_hash.o quantize.o gifwriter.o mongoose.o linenoise.o utf8.o qcommandline.o minidump_file_writer.o convert_UTF.o md5.o string_conversion.o crash_generation_client.o exception_handler.o minidump_generator.o dynamic_images.o breakpad_nlist_64.o bootstrap_compat.o file_id.o macho_id.o macho_utilities.o macho_walker.o string_utilities.o moc_phantom.o moc_callback.o moc_webpage.o moc_webserver.o moc_networkaccessmanager.o moc_cookiejar.o moc_filesystem.o moc_system.o moc_env.o moc_config.o moc_childprocess.o moc_repl.o moc_qcommandline.o qrc_phantomjs.o qrc_ghostdriver.o qrc_WebKit.o qrc_InspectorBackendStub.o    -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_phantomjs/phantomjs/work/phantomjs-1.9.2/src/qt/lib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_phantomjs/phantomjs/work/phantomjs-1.9.2/src/qt/plugins/codecs -lqcncodecs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_phantomjs/phantomjs/work/phantomjs-1.9.2/src/qt/lib -framework ApplicationServices -framework CoreFoundation -framework Security -lqjpcodecs -lqkrcodecs -lqtwcodecs -lQtWebKit -framework Carbon -framework AppKit -framework SystemConfiguration -framework CoreServices -lQtGui -lQtNetwork -lQtCore -lz -lm 
:info:build ld: library not found for -lQtWebKit
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [../bin/phantomjs] Error 1
:info:build make: *** [sub-src-phantomjs-pro-make_default-ordered] Error 2
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_phantomjs/phantomjs/work/phantomjs-1.9.2" && ./build.sh --confirm --jobs 4 
:info:build Exit code: 2
:error:build org.macports.build for port phantomjs returned: command execution failed
:debug:build Error code: CHILDSTATUS 57335 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"

Attachments (1)

main.log (726.2 KB) - added by brandon.zacharie@… 10 years ago.

Download all attachments as: .zip

Change History (13)

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

Cc: stromnov@… openmaintainer@… removed
Keywords: mavericks removed
Owner: changed from macports-tickets@… to stromnov@…
Summary: phantomjs @1.9.2 fails to find QtWebKit on Mavericksphantomjs @1.9.2: library not found for -lQtWebKit

So it looks like phantomjs has an undeclared dependency on qt4-mac.

Unfortunately qt4-mac doesn't build on Mavericks right now.

comment:2 Changed 10 years ago by stromnov (Andrey Stromnov)

Phantomsjs incorporates own subset of QT4 sources, therefore phantomjs experiencing problems similar to qt4-mac.

comment:3 Changed 10 years ago by wichert@…

The qt4-mac problems on mavericks have been fixed in r112811. Can that changeset be merged into the QT4 copy included in phantoms?

comment:4 Changed 10 years ago by macports.org@…

Cc: macports.org@… added

Cc Me!

comment:5 Changed 10 years ago by royliu@…

Potentially fixed in r112873.

comment:6 Changed 10 years ago by wichert@…

I can confirm phantomjs installs and works correctly now. Thanks!

comment:7 Changed 10 years ago by macports.org@…

Same here. Thanks!

comment:8 Changed 10 years ago by brandon.zacharie@…

I'm still getting this error

Changed 10 years ago by brandon.zacharie@…

Attachment: main.log added

comment:9 Changed 10 years ago by brandon.zacharie@…

Cc: brandon.zacharie@… added

Cc Me!

comment:10 in reply to:  8 Changed 10 years ago by brandon.zacharie@…

Replying to brandon.zacharie@…:

I'm still getting this error

I was able to install after I did a complete uninstall/reinstall of MacPorts. I suspect the problem I had was a side effect of upgrading to Mavericks.

comment:11 Changed 9 years ago by wichert@…

Interestingly I get this again after upgrading to yosemite.

comment:12 Changed 9 years ago by wichert@…

Looks like the patch from r112873. needs to be updated to add 10.10 as well.

Note: See TracTickets for help on using tickets.