resloved / i3

🔲 — Rounded i3-gaps
Other
277 stars 29 forks source link

Compile error #20

Open Anderson0xFF opened 3 years ago

Anderson0xFF commented 3 years ago

I'm submitting a…

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

Current Behavior

Expected Behavior

Reproduction Instructions

../configure --prefix=/usr --disable-sanitizers make or make -j8

Environment

Output of i3 --moreversion 2>&-:

i3 version: 

ERROR: rest.xmacro:3: first defined here /usr/bin/ld: ./libi3.a(a-draw_util.o):/home/anderson/workspace/i3-gaps/build/../../i3-gaps/libi3/draw_util.c:19: multiple definition of `visual_type'; src/i3-main.o:/home/anderson/workspace/i3-gaps/build/../../i3-gaps/src/main.c:63: first defined here clang-11: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [Makefile:1587: i3] Error 1 make[1]: Leaving directory '/home/anderson/workspace/i3-gaps/build' make: [Makefile:1332: all] Error 2

Logfile URL:
- Linux Distribution & Version: ArchLinx
- Are you using a compositor (e.g., xcompmgr or compton):
misss13 commented 3 years ago

Idk but I had similar error just wanna post solution so I can use this next time. Worked on fresh Gentoo install + compton

export CFLAGS=" -fcommon"
export CPPFLAGS="-U_FORTIFY_SOURCE"