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

multiple definition of 'qCleanupResources_Webkit()' #12954

Closed
john-bokma opened this issue Feb 4, 2015 · 10 comments
Closed

multiple definition of 'qCleanupResources_Webkit()' #12954

john-bokma opened this issue Feb 4, 2015 · 10 comments

Comments

@john-bokma
Copy link

I followed the build instructions:

git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 2.0
./build.sh

And it stops with "multiple definition of 'qCleanupResources_Webkit()'"

Ubuntu server 14.04.1 LTS

@Rui-Santos
Copy link

I think it is fixed by #12899

@flipperbw
Copy link

Isn't that only for windows? I also have this problem on Centos 6.6 and cannot build:

phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_WebKit.o): In function `qCleanupResources_WebKit()':
...
qrc_InspectorBackendCommands.o:qrc_InspectorBackendCommands.cpp:(.text+0x40): first defined here
collect2: ld returned 1 exit status
make[1]: *** [../bin/phantomjs] Error 1

@sardok
Copy link

sardok commented Feb 6, 2015

I see following on Ubuntu 12.04.5 LTS:

/home/sinan/tmp/phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_WebKit.o): In function `qInitResources_WebKit()':
qrc_WebKit.cpp:(.text._Z21qInitResources_WebKitv+0x0): multiple definition of `qInitResources_WebKit()'
qrc_WebKit.o:qrc_WebKit.cpp:(.text+0x0): first defined here
/home/sinan/tmp/phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_WebKit.o): In function `qCleanupResources_WebKit()':
qrc_WebKit.cpp:(.text._Z24qCleanupResources_WebKitv+0x0): multiple definition of `qCleanupResources_WebKit()'
qrc_WebKit.o:qrc_WebKit.cpp:(.text+0x30): first defined here
/home/sinan/tmp/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+0x0): first defined here
/home/sinan/tmp/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+0x30): first defined here
collect2: ld returned 1 exit status
make[1]: *** [../bin/phantomjs] Error 1
make[1]: Leaving directory `/home/sinan/tmp/phantomjs/src'
make: *** [sub-src-phantomjs-pro-make_first-ordered] Error 2

@goggelz
Copy link

goggelz commented Feb 6, 2015

I'm running centos 7 and I have the same problem i guess:

/home/goggelz/phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_WebKit.o): In function `qInitResources_WebKit()':
qrc_WebKit.cpp:(.text._Z21qInitResources_WebKitv+0x0): multiple definition of `qInitResources_WebKit()'
qrc_WebKit.o:qrc_WebKit.cpp:(.text+0x20): first defined here
/home/goggelz/phantomjs/src/qt/qtwebkit/Source/WebCore/release/libWebCore.a(qrc_WebKit.o): In function `qCleanupResources_WebKit()':
qrc_WebKit.cpp:(.text._Z24qCleanupResources_WebKitv+0x0): multiple definition of `qCleanupResources_WebKit()'
qrc_WebKit.o:qrc_WebKit.cpp:(.text+0x50): first defined here
/home/goggelz/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
/home/goggelz/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 `/home/goggelz/phantomjs/src'
make: *** [sub-src-phantomjs-pro-make_first-ordered] Error 2

@vitallium
Copy link
Collaborator

Fixed in 8e8546b

@wojtkowiak
Copy link

I have just tried to build it after git clone. I have the 8e8546b - I double checked it. Fails with the same message on Xubuntu 14.04

@vitallium
Copy link
Collaborator

@wojtkowiak do a clean build.

@flipperbw
Copy link

@vitallium This doesn't work. Brand new clone. Fix 8e8546b is Windows - we all are running Unix with this problem.

@goggelz
Copy link

goggelz commented Feb 6, 2015

@flipperbw it worked for me, i had to install qt though, which was not told in the tutorial

@flipperbw
Copy link

@vitallium See my comment on the commit. The lines containing the resources were never removed from the other builds.

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

7 participants