Opened 11 years ago

Last modified 10 years ago

#40674 new defect

phantomjs @1.9.2 build error - Undefined symbols in QTWebFrame

Reported by: daniel.laflamme@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: phantomjs

Description

Ports: 2.2.0

OSX: 10.6.8

XCode: 3.2.6

gcc: 4.2.1 (Apple Inc. build 5666) (dot 3)

Short error message below. Full log attached.

I have tried the following things:

  • port clean phantomjs && port install phantomjs
  • port uninstall phantomjs && port install phantomjs
info:build g++ -headerpad_max_install_names -sectcreate __TEXT __info_plist Info.plist -arch i386 -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 Undefined symbols:
:info:build   "QWebFrame::evaluateJavaScript(QString const&, QString const&)", referenced from:
:info:build       Phantom::onInitialized()      in phantom.o
:info:build       Phantom::loadModule(QString const&, QString const&)in phantom.o
:info:build       getHeaderFooter(QMap<QString, QVariant> const&, QString const&, QWebFrame*, int, int)in webpage.o
:info:build       WebPage::windowName() const in webpage.o
:info:build       WebPage::_appendScriptElement(QString const&) in webpage.o
:info:build       WebPage::openUrl(QString const&, QVariant const&, QMap<QString, QVariant> const&)in webpage.o
:info:build       WebPage::setupFrame(QWebFrame*)      in webpage.o
:info:build       WebPage::setupFrame(QWebFrame*)      in webpage.o
:info:build       WebPage::evaluateJavaScript(QString const&) in webpage.o
:info:build       CSConverter::CSConverter()in csconverter.o
:info:build       CSConverter::convert(QString const&) in csconverter.o
:info:build       Utils::loadJSForDebug(QString const&, Encoding const&, QString const&, QWebFrame*, bool)in utils.o
:info:build       Utils::injectJsInFrame(QString const&, Encoding const&, QString const&, QWebFrame*, bool)in utils.o
:info:build       Config::loadJsonFile(QString const&) in config.o
:info:build       REPL::REPL(QWebFrame*, Phantom*) in repl.o
:info:build       REPL::startLoop()     in repl.o
:info:build       REPL::offerCompletion(char const*, linenoiseCompletions*)in repl.o
:info:build   "QWebFrame::print(QPrinter*, QWebFrame::PrintCallback*) const", referenced from:
:info:build       WebPage::renderPdf(QString const&)in webpage.o
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
: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 2
:info:build Exit code: 2
:error:build org.macports.build for port phantomjs returned: command execution failed
:debug:build Error code: CHILDSTATUS 83382 2

Attachments (3)

phantomjs_main.2.log (32.3 KB) - added by daniel.laflamme@… 11 years ago.
Install log for phantomjs
phantomjs_main.3.log (16.9 MB) - added by daniel.laflamme@… 11 years ago.
Install log for phantomjs after a port clean of phantomjs
main.log (154.2 KB) - added by gthb (Gunnlaugur Thor Briem) 10 years ago.

Change History (9)

Changed 11 years ago by daniel.laflamme@…

Attachment: phantomjs_main.2.log added

Install log for phantomjs

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

Owner: changed from macports-tickets@… to stromnov@…
Summary: phantomjs @1.9.2 Configure error - Undefined symbols in QTWebFramephantomjs @1.9.2 build error - Undefined symbols in QTWebFrame

You said you cleaned and tried again, but the log you attached is not from a clean attempt. Please clean again and try again and attach that main.log.

Changed 11 years ago by daniel.laflamme@…

Attachment: phantomjs_main.3.log added

Install log for phantomjs after a port clean of phantomjs

comment:2 Changed 11 years ago by daniel.laflamme@…

Attached.

comment:3 Changed 11 years ago by daniel.laflamme@…

Is there any more information I can provide that would be helpful in addressing this?

comment:4 Changed 10 years ago by daniel.laflamme@…

We can close this. The problem went away.

comment:5 Changed 10 years ago by gthb (Gunnlaugur Thor Briem)

I'm getting this exact same problem now, on Yosemite:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_phantomjs/phantomjs/work/phantomjs-1.9.7/src/qt/bin/qmake -o Makefile.phantomjs phantomjs.pro
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.7/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.7/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.7/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 
Undefined symbols for architecture x86_64:
  "QWebFrame::evaluateJavaScript(QString const&, QString const&)", referenced from:
      Phantom::loadModule(QString const&, QString const&) in phantom.o
      Phantom::onInitialized() in phantom.o
      WebPage::evaluateJavaScript(QString const&) in webpage.o
      WebPage::openUrl(QString const&, QVariant const&, QMap<QString, QVariant> const&) in webpage.o
      WebPage::windowName() const in webpage.o
      getHeaderFooter(QMap<QString, QVariant> const&, QString const&, QWebFrame*, int, int) in webpage.o
      WebPage::_appendScriptElement(QString const&) in webpage.o
      ...
  "QWebFrame::print(QPrinter*, QWebFrame::PrintCallback*) const", referenced from:
      WebPage::renderPdf(QString const&) in webpage.o
ld: symbol(s) not found for architecture x86_64

... will attach full log.

Changed 10 years ago by gthb (Gunnlaugur Thor Briem)

Attachment: main.log added

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

PhantomJS 1.9.2 is not compatible with OSX Yosemite.

Version 1.9.3 already available, but still not ported to MacPorts.

Note: See TracTickets for help on using tickets.