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

XCB_CONN_CLOSED_FDPASSING_FAILED’ undeclared #210

Closed
madisodr opened this issue Feb 11, 2015 · 9 comments
Closed

XCB_CONN_CLOSED_FDPASSING_FAILED’ undeclared #210

madisodr opened this issue Feb 11, 2015 · 9 comments

Comments

@madisodr
Copy link

Ubuntu 13.10 / Linux version 3.11.0-26-generic / gcc/g++ version 4.8.1

Getting this error on the most recent pull of code. I installed the required dependencies based on
[ https://github.com/windelicato/dotfiles/wiki/bspwm-for-dummies ] Must have missed one or two?

Did some digging and found that XCB_CONN_CLOSED_FDPASSING_FAILED is declared in libxcb-sync but installing this didn't fix the issue.

cc -std=c99 -pedantic -Wall -Wextra -I/usr/local/include -D_POSIX_C_SOURCE=200112L -DVERSION="0.8.9" -Os -c -o bspwm.o bspwm.c
bspwm.c: In function ‘check_connection’:
bspwm.c:375:9: error: ‘XCB_CONN_CLOSED_FDPASSING_FAILED’ undeclared (first use in this function)
case XCB_CONN_CLOSED_FDPASSING_FAILED:
^
bspwm.c:375:9: note: each undeclared identifier is reported only once for each function it appears in
make: *** [bspwm.o] Error 1

@madisodr madisodr changed the title sudo apt-get install libxinerama1 libxinerama-dev XCB_CONN_CLOSED_FDPASSING_FAILED’ undeclared Feb 11, 2015
@baskerville
Copy link
Owner

I'm not sure how things are packaged on Ubuntu but that constant is in libxcb since January 2013.

@museur
Copy link

museur commented Feb 18, 2015

This is from Debian:
"cc -std=c99 -pedantic -Wall -Wextra -I/usr/local/include -D_POSIX_C_SOURCE=200112L -DVERSION="0.8.9" -Os -c -o bspwm.o bspwm.c
bspwm.c: In function ‘check_connection’:
bspwm.c:372:9: error: ‘XCB_CONN_CLOSED_INVALID_SCREEN’ undeclared (first use in this function)
bspwm.c:372:9: note: each undeclared identifier is reported only once for each function it appears in
bspwm.c:375:9: error: ‘XCB_CONN_CLOSED_FDPASSING_FAILED’ undeclared (first use in this function)
make: *** [bspwm.o] Error 1"

If I by-pass the check:
"cc -o bspwm bspwm.o helpers.o settings.o monitor.o desktop.o tree.o stack.o history.o events.o pointer.o window.o messages.o query.o restore.o rule.o ewmh.o subscribe.o -L/usr/local/lib -s -lm -lxcb -lxcb-icccm -lxcb-ewmh -lxcb-randr -lxcb-xinerama
bspwm.o: In function main': bspwm.c:(.text.startup+0x113): undefined reference tocheck_connection'
bspwm.c:(.text.startup+0x39c): undefined reference to `check_connection'
collect2: error: ld returned 1 exit status
make: *** [bspwm] Error 1"

In debian lxcb binary, instead of /usr/local/lib:
"/usr/lib/x86_64-linux-gnu/libxcb-icccm.a
/usr/lib/x86_64-linux-gnu/libxcb-icccm.so
/usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4
/usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4.0.0"

etc.

The system has all of libxcb1 plus undependent libxcb-*0.

I'm stuck with gnome now, until this got a fix, I do not really want to migrate to another wm.

@museur
Copy link

museur commented Feb 18, 2015

Any way to acquire some old version of bspwm repo?

@museur
Copy link

museur commented Feb 18, 2015

Well, I got this fork working just fine. @madisodr pull this: https://github.com/tmathmeyer/bspwm

@ghost
Copy link

ghost commented Feb 22, 2015

For a workaround, please check my reddit post if that helps.. http://www.reddit.com/r/bspwm/comments/2vsadi/i_am_having_trouble_installing_bspwm_on_debian/coscz6r

@baskerville
Copy link
Owner

Here's a simple fix: git checkout b0e8dd3.

It would be great to report this problem to the relevant package maintainers though...

@ghost
Copy link

ghost commented Mar 17, 2015

I've got the same error on Centos 7 with a clone from recent baskerville git.
"git checkout b0e8dd3" - this didn't help much, because it was in "'detached HEAD' state". So this fix is not that simple and helpful. I just cloned from tmathmeyer and it built without any errors.

@vistamon82
Copy link

any new workaround on this? I'm experiencing the same problem on CentOS 7, but I can't clone the @tmathmeyer git because it doesn't exist any more.

@Custodia
Copy link

@CryptoGranny @vistamon82

Detached head is nothing nefarious, if you are unfamiliar with git see this.

I don't know if the workaround commit is the same for CentOS 7 but for debian wheezy doing the checkout and then making normally works.

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

No branches or pull requests

5 participants