Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

phantomjs 2.0 fails to build on ubuntu 14.04 #12938

Closed
a1gucis opened this issue Feb 2, 2015 · 4 comments
Closed

phantomjs 2.0 fails to build on ubuntu 14.04 #12938

a1gucis opened this issue Feb 2, 2015 · 4 comments

Comments

@a1gucis
Copy link

a1gucis commented Feb 2, 2015

Hi,

I followed the phantomjs 2.0 build procedure on http://phantomjs.org/build.html.
The build fails with:

/app/phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_InspectorBackendCommands.o): In function `qInitResources_InspectorBackendCommands()':
qrc_InspectorBackendCommands.cpp:(.text._Z39qInitResources_InspectorBackendCommandsv+0x0): multiple definition of `qInitResources_InspectorBackendCommands()'
qrc_InspectorBackendCommands.o:qrc_InspectorBackendCommands.cpp:(.text+0x20): first defined here
/app/phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_InspectorBackendCommands.o): In function `qCleanupResources_InspectorBackendCommands()':
qrc_InspectorBackendCommands.cpp:(.text._Z42qCleanupResources_InspectorBackendCommandsv+0x0): multiple definition of `qCleanupResources_InspectorBackendCommands()'
qrc_InspectorBackendCommands.o:qrc_InspectorBackendCommands.cpp:(.text+0x50): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [../bin/phantomjs] Error 1
make[1]: Leaving directory `/app/phantomjs/src'
make: *** [sub-src-phantomjs-pro-make_first-ordered] Error 2

Does anyone have any ideas why the compilation/linking process fails?

@ariya
Copy link
Owner

ariya commented Feb 2, 2015

Try to build from the source tarball while we're investigating the issue.

@vitallium
Copy link
Collaborator

This issue has been fixed in #12899

@sumanranjanpanda
Copy link

Hi,

Yesterday I have pulled the phantomjs 2.0 build and tried to install as per the steps on http://phantomjs.org/build.html on my Ubuntu 14.04.

But, it didn't work and failed with the same issue:

qrc_WebKit.o:qrc_WebKit.cpp:(.text+0x90): first defined here
/usr/local/share/phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_InspectorBackendCommands.o): In function `qInitResources_InspectorBackendCommands()':
qrc_InspectorBackendCommands.cpp:(.text._Z39qInitResources_InspectorBackendCommandsv+0x0): multiple definition of `qInitResources_InspectorBackendCommands()'
qrc_InspectorBackendCommands.o:qrc_InspectorBackendCommands.cpp:(.text+0x40): first defined here
/usr/local/share/phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_InspectorBackendCommands.o): In function `qCleanupResources_InspectorBackendCommands()':
qrc_InspectorBackendCommands.cpp:(.text._Z42qCleanupResources_InspectorBackendCommandsv+0x0): multiple definition of `qCleanupResources_InspectorBackendCommands()'
qrc_InspectorBackendCommands.o:qrc_InspectorBackendCommands.cpp:(.text+0x90): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [../bin/phantomjs] Error 1
make[1]: Leaving directory `/usr/local/share/phantomjs/src'
make: *** [sub-src-phantomjs-pro-make_first-ordered] Error 2

How to fix this issue?

@berighton
Copy link

Added a compiled binary for 15.10 if anyone interested: https://github.com/mdproductions/phantomjs/tree/master/bin/linux

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants