Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker static builds: undefined reference to symbol 'xcb_glx_id' #3011

Closed
tobtoht opened this issue Jul 14, 2020 · 7 comments · Fixed by #3015
Closed

Docker static builds: undefined reference to symbol 'xcb_glx_id' #3011

tobtoht opened this issue Jul 14, 2020 · 7 comments · Fixed by #3015

Comments

@tobtoht
Copy link
Contributor

tobtoht commented Jul 14, 2020

docker run --rm -it -v $(pwd):/monero-gui -w /monero-gui monero:build-env-gui sh -c 'USE_SINGLE_BUILDDIR=ON DEV_MODE=ON make release-static -j4' fails with:

[ 78%] Building CXX object src/CMakeFiles/monero-wallet-gui.dir/qrc_translations.cpp.o
[ 78%] Linking CXX executable ../bin/monero-wallet-gui
/usr/bin/ld: /usr/plugins/xcbglintegrations/libqxcb-glx-integration.a(qxcbglxintegration.o): undefined reference to symbol 'xcb_glx_id'
//usr/lib/x86_64-linux-gnu/libxcb-glx.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/monero-wallet-gui.dir/build.make:1554: recipe for target 'bin/monero-wallet-gui' failed

Tested on current master (b7b1221) and Docker version 19.03.12

@xiphon
Copy link
Collaborator

xiphon commented Jul 14, 2020

It can't be docker build ... output, the step doesn't build Monero GUI. Please double check this.

@tobtoht
Copy link
Contributor Author

tobtoht commented Jul 14, 2020

My bad, I copied the wrong command. I have updated the issue.

@xiphon
Copy link
Collaborator

xiphon commented Jul 14, 2020

Could you try to rm -rf build directory and run the build again?

@tobtoht
Copy link
Contributor Author

tobtoht commented Jul 14, 2020

I tried that just now, the issue is still there.

@tobtoht
Copy link
Contributor Author

tobtoht commented Jul 14, 2020

Full build logs: https://paste.debian.net/plainh/6343a879

@xiphon
Copy link
Collaborator

xiphon commented Jul 15, 2020

Could you please test the fix? #3015

@tobtoht
Copy link
Contributor Author

tobtoht commented Jul 15, 2020

Thanks for taking the time to look into this.

The build succeeds now.

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

Successfully merging a pull request may close this issue.

2 participants