i3lock icon indicating copy to clipboard operation
i3lock copied to clipboard

Compilation during `make` fails

Open NavneelSinghal opened this issue 3 years ago • 2 comments

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Other (Please describe in detail)

Current Behavior

Running make leads to a compilation error (due to multiple definitions of the variable input_position).

Expected Behavior

Compilation should complete without errors.

Resolution of the bug

Just commenting out the line int input_position; (or making the variable extern) in the file unlock_indicator.c works. Putting this bugfix out there so that people can resolve this error on their own.

Reproduction Instructions

Identical to the installation instructions on a fresh clone of the repo.

Environment

Output of i3lock --version:

i3lock: version be2a08a (2019-10-05, branch "master") © 2010 Michael Stapelberg

NavneelSinghal avatar Jul 28 '21 06:07 NavneelSinghal

Resolution of the bug

Just commenting out the line int input_position; (or making the variable extern) in the file unlock_indicator.c works. Putting this bugfix out there so that people can resolve this error on their own.

I have the same problem, after i upgrade debian 10 to 11.

Thanks to @NavneelSinghal, This answer work for me.

shgninc avatar Sep 04 '21 05:09 shgninc