Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2017 18:42:11 +0300
From:      "toem@openaliasbox.org" <toem@openaliasbox.org>
To:        feld@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: phantomjs-2.1.1
Message-ID:  <4250f31a-33e7-dad4-1137-a5053c0321ec@openaliasbox.org>

next in thread | raw e-mail | index | archive | help
Hello, phantomjs maintainers!

I tried to build phantomjs from source and received error.

My system:

% uname -a

FreeBSD ae2srv.local 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct =
24 06:55:27 UTC 2016     root@amd64-builder.daemonology.net:/usr/obj/usr/=
src/sys/GENERIC  amd64


I used commands:

# portsnap fetch update

# portmaster --packages lang/phantomjs


The error code (last lines from stdout):

clang++ -pthread -Wl,-rpath-link,/usr/ports/lang/phantomjs/work/phantomjs=
-2.1.1/src/qt/qtbase/lib -o ../bin/phantomjs phantom.o  callback.o  webpa=
ge.o  webserver.o  main.o  utils.o  networkaccessmanager.o  cookiejar.o  =
filesystem.o  system.o  env.o  terminal.o  encoding.o  config.o  childpro=
cess.o  repl.o  crashdump.o  mongoose.o  linenoise.o  utf8.o  qcommandlin=
e.o  phantomjs_plugin_import.o  qrc_phantomjs.o  qrc_ghostdriver.o  moc_p=
hantom.o  moc_callback.o  moc_webpage.o  moc_webserver.o  moc_networkacce=
ssmanager.o  moc_cookiejar.o  moc_filesystem.o  moc_system.o  moc_env.o  =
moc_terminal.o  moc_config.o  moc_childprocess.o  moc_repl.o  moc_qcomman=
dline.o   -L/usr/local/lib -L/usr/ports/lang/phantomjs/work/phantomjs-2.1=
=2E1/src/qt/qtbase/lib -lQt5WebKitWidgets -lQt5Widgets -lQt5WebKit -L/usr=
/ports/lang/phantomjs/work/phantomjs-2.1.1/src/qt/qtbase/plugins/platform=
s -lqphantom -lQt5PlatformSupport -lQt5DBus -lgthread-2.0 -pthread -lglib=
-2.0 -lintl -lXrender -lXext -lX11 -lm -lfontconfig -lfreetype -lEGL -lGL=
 -L/usr/ports/lang/phantomjs/work/phantomjs-2.1.1/src/qt/qtbase/plugins/i=
mageformats -lqico -lQt5Gui -L/usr/ports/lang/phantomjs/work/phantomjs-2.=
1.1/src/qt/qtbase/plugins/bearer -lqgenericbearer -lQt5Network -lQt5Core

/usr/bin/ld: undefined reference to symbol `_ZN8QPrinter12setPaperSizeEN1=
7QPagedPaintDevice8PageSizeE@@Qt_5' (try adding -lQt5PrintSupport)

//usr/local/lib/libQt5PrintSupport.so.5: could not read symbols: Bad valu=
e

clang++: error: linker command failed with exit code 1 (use -v to see inv=
ocation)

*** [../bin/phantomjs] Error code 1

make[3]: stopped in /usr/ports/lang/phantomjs/work/phantomjs-2.1.1/src

1 error

make[3]: stopped in /usr/ports/lang/phantomjs/work/phantomjs-2.1.1/src

*** [sub-src-phantomjs-pro-make_first-ordered] Error code 2

make[2]: stopped in /usr/ports/lang/phantomjs/work/phantomjs-2.1.1

1 error

make[2]: stopped in /usr/ports/lang/phantomjs/work/phantomjs-2.1.1

ERROR: Failed to build PhantomJS! Building PhantomJS failed.

*** Error code 1

Stop.

make[1]: stopped in /usr/ports/lang/phantomjs

*** Error code 1

Stop.

make: stopped in /usr/ports/lang/phantomjs

=3D=3D=3D>>> make build failed for lang/phantomjs

=3D=3D=3D>>> Aborting update

=3D=3D=3D>>> Upgrade of pkgconf-1.2.2_1 to pkgconf-1.3.0 complete

=3D=3D=3D>>> You can restart from the point of failure with this command =
line:

        portmaster <flags> lang/phantomjs

This command has been saved to /tmp/portmasterfail.txt


Can you please review this error and make corrections to port files so=20
port could be build?

Regards, Toem.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4250f31a-33e7-dad4-1137-a5053c0321ec>