问下各位大佬,家里的电脑可以一样的系统Ubuntu mate22.04,可以安装conky_colors。另一台就不行了!提示如下!!这是什么原因??看不懂!!
代码: 全选
cc -Wall -std=c99 src/conky-colors.c src/conkycover.c src/conkyplayer.c src/conkyrc_cairo.c src/conkyrc_ring.c src/conkyrc_board.c src/conkyrc_default.c src/conkyrc_slim.c src/conkyrc_sls.c src/coverposition.c src/finddir.c src/help.c src/options.c src/photoposition.c src/themes.c src/translations.c src/variables.c src/confinstall.c src/utils.c src/initialize.c -o conky-colors
src/conkyrc_cairo.c: In function ‘conkyrc_cairo’:
src/conkyrc_cairo.c:118:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
118 | else
| ^~~~
src/conkyrc_cairo.c:121:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
121 | if (dark == True || black == True)
| ^~
src/conkyrc_board.c: In function ‘conkyrc_board’:
src/conkyrc_board.c:124:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
124 | else
| ^~~~
src/conkyrc_board.c:127:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
127 | fprintf(fp,"%s ", color3);
| ^~~~~~~
src/finddir.c: In function ‘initialize_finddir’:
src/finddir.c:37:68: warning: ‘/.conkycolors’ directive output may be truncated writing 13 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
37 | snprintf(info.datadir[FINDDIR_LOCAL], FINDDIR_CHAR_LEN, "%s/.conkycolors", path);
| ^~~~~~~~~~~~~
src/finddir.c:37:9: note: ‘snprintf’ output between 14 and 269 bytes into a destination of size 256
37 | snprintf(info.datadir[FINDDIR_LOCAL], FINDDIR_CHAR_LEN, "%s/.conkycolors", path);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from src/options.c:2:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
src/options.c: In function ‘options’:
src/options.c:228:25: warning: format not a string literal and no format arguments [-Wformat-security]
228 | snprintf(player, 31, key+2);
| ^~~~~~~~
src/themes.c: In function ‘themes’:
src/themes.c:141:46: warning: format not a string literal and no format arguments [-Wformat-security]
141 | snprintf(color3, 31, color1);
| ^~~~~~
src/translations.c: In function ‘translation’:
src/translations.c:364:54: warning: ‘Мережа недосту�...’ directive output truncated writing 33 bytes into a region of size 31 [-Wformat-truncation=]
364 | snprintf(nonet, 31, "Мережа недоступна");
| ~~~~~~~~~~~~~~~~^
src/translations.c:364:17: note: ‘snprintf’ output 34 bytes into a destination of size 31
364 | snprintf(nonet, 31, "Мережа недоступна");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/translations.c:366:58: warning: ‘Інформация про ...’ directive output truncated writing 61 bytes into a region of size 31 [-Wformat-truncation=]
366 | snprintf(noweather, 31, "Інформация про погоду недоступна");
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
src/translations.c:366:17: note: ‘snprintf’ output 62 bytes into a destination of size 31
366 | snprintf(noweather, 31, "Інформация про погоду недоступна");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/translations.c:327:54: warning: ‘Мрежата е недос...’ directive output truncated writing 38 bytes into a region of size 31 [-Wformat-truncation=]
327 | snprintf(nonet, 31, "Мрежата е недостъпна");
| ~~~~~~~~~~~~~~~~^~~~
src/translations.c:327:17: note: ‘snprintf’ output 39 bytes into a destination of size 31
327 | snprintf(nonet, 31, "Мрежата е недостъпна");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/translations.c:329:58: warning: ‘Няма информаци�...’ directive output truncated writing 49 bytes into a region of size 31 [-Wformat-truncation=]
329 | snprintf(noweather, 31, "Няма информация за времето");
| ~~~~~~~~~~~~~~~~^~~~~~~~~~
src/translations.c:329:17: note: ‘snprintf’ output 50 bytes into a destination of size 31
329 | snprintf(noweather, 31, "Няма информация за времето");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/translations.c:339:61: warning: ‘Pidgin не е старти�...’ directive output truncated writing 33 bytes into a region of size 31 [-Wformat-truncation=]
339 | snprintf(nopidgin, 31, "Pidgin не е стартиран");
| ~~~~~~~~~~~~~~~~~~~~^
src/translations.c:339:17: note: ‘snprintf’ output 34 bytes into a destination of size 31
339 | snprintf(nopidgin, 31, "Pidgin не е стартиран");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/translations.c:292:58: warning: ‘Информация о по...’ directive output truncated writing 57 bytes into a region of size 31 [-Wformat-truncation=]
292 | snprintf(noweather, 31, "Информация о погоде недоступна");
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
src/translations.c:292:17: note: ‘snprintf’ output 58 bytes into a destination of size 31
292 | snprintf(noweather, 31, "Информация о погоде недоступна");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from src/utils.c:2:
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
/usr/bin/ld: /tmp/cc2uRl4F.o:(.bss+0x0): multiple definition of `i'; /tmp/cc2vVisy.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [<内置>:conky-colors] 错误 1