helmuthdu / conky_colors

CONKY-colors is an easier way to configure Conky
GNU General Public License v3.0
123 stars 39 forks source link

Unable to build on EndeavourOS (and most likely Arch Linux) #70

Closed Quoding closed 4 years ago

Quoding commented 4 years ago

It seems impossible to build under EndeavourOS with the current Makefile.

I am getting an error an error like :

/usr/bin/ld: /tmp/ccV4wprr.o:(.bss+0x0): multiple definition of `i'; /tmp/ccBdLCoq.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [<builtin>: conky-colors] Error 1

As pointed out here, it seems the default compiler flag is now -fno-common which does not allow such duplicates.

The workaround, in my case is to add the flag -fcommon to the $CFLAGS variable in the Makefile.