#417 conky-1.9.0: failes to build with --disable-ncurses

closed-fixed
nobody
Code (277)
5
2012-07-13
2012-07-08
Daniel Pielmeier
No

Original bug: https://bugs.gentoo.org/show_bug.cgi?id=415215

If ncurses is disabled conky fails to build with the following log message:

conky.c: In function ‘generate_text_internal’:
conky.c:885:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘warned’
conky.c:885:19: error: ‘warned’ undeclared (first use in this function)
conky.c:885:19: note: each undeclared identifier is reported only once for each function it appears in
conky.c:885:28: error: ‘false’ undeclared (first use in this function)
conky.c:890:17: error: ‘true’ undeclared (first use in this function)
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib64/conky\" -I/usr/include/freetype2 -Wall -W -march=native -O2 -pipe -c -o conky-exec.o `test -f 'exec.c' || echo './'`exec.c
make[2]: *** [conky-conky.o] Error 1
make[2]: *** Waiting for unfinished jobs....
linux.c: In function ‘is_disk’:
linux.c:2289:24: warning: ‘dev_last’ may be used uninitialized in this function
exec.c: In function ‘pid_popen’:
exec.c:98:6: warning: ignoring return value of ‘dup’, declared with attribute warn_unused_result
make[2]: Leaving directory `/var/tmp/portage/app-admin/conky-1.9.0/work/conky-1.9.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-admin/conky-1.9.0/work/conky-1.9.0/src'
make: *** [all-recursive] Error 1

Discussion

  • pavelo
    pavelo
    2012-07-13

    Fixed in git, thanks for the heads-up.

     
  • pavelo
    pavelo
    2012-07-13

    • status: open --> closed-fixed