zoltanp / xrandr-invert-colors

Small utility for inverting the colors on all monitors attached to an XRandR-capable X11 display server.
119 stars 16 forks source link

/bin/ld: gamma_randr.o: undefined reference to symbol 'xcb_get_setup' #1

Closed gavinengel closed 10 years ago

gavinengel commented 10 years ago

When I run 'make' I get these errors:

$ make cc -Wall -Wextra -O0 -ggdb -std=c99 -c gamma_randr.c cc -Wall -Wextra -O0 -ggdb -std=c99 -c xrandr-invert-colors.c cc -Wall -Wextra -O0 -ggdb -std=c99 -o xrandr-invert-colors.bin xrandr-invert-colors.o gamma_randr.o -lxcb-randr /usr/bin/ld: gamma_randr.o: undefined reference to symbol 'xcb_get_setup' /usr/bin/ld: note: 'xcb_get_setup' is defined in DSO /lib64/libxcb.so.1 so try adding it to the linker command line /lib64/libxcb.so.1: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *\ [xrandr-invert-colors.bin] Error 1

When I try to 'yum install libxcb' I see:

Package libxcb-1.9-3.fc19.x86_64 already installed and latest version

Any thoughts?

zoltanp commented 10 years ago

The changes in branch https://github.com/zoltanp/xrandr-invert-colors/tree/fix-64bit-linking should fix this problem. Could you check if the fix works on your system?

gavinengel commented 10 years ago

That works perfectly! I'm so happy I can finally invert both my screens in Fedora. My eyes say 'thank you'

gavin@localhost:~/bin/xrandr-invert-colors$ make cc -Wall -Wextra -O0 -ggdb -std=c99 -c gamma_randr.c cc -Wall -Wextra -O0 -ggdb -std=c99 -c xrandr-invert-colors.c cc -Wall -Wextra -O0 -ggdb -std=c99 -o xrandr-invert-colors.bin xrandr-invert-colors.o gamma_randr.o -lxcb-randr -lxcb

zoltanp commented 10 years ago

I directly applied the fix to master, and closed the pull request. So the fix now is in the master branch. Have fun with this utility :)