#446 conky fails to build with ncurses if ncurses itself is built with the terminfo option

1.7.1
open
nobody
None
5
2015-02-24
2014-01-13
No
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include        -I/usr/include/freetype2  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/libxml2  -Wall -W -march=native -O2 -pipe -fomit-frame-pointer -lpthread -lm -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu -o conky  conky-conf_cookie.o conky-audacious.o      conky-linux.o conky-users.o conky-sony.o conky-i8k.o   conky-libtcp-portmon.o conky-tcp-portmon.o conky-x11.o conky-fonts.o   conky-ccurl_thread.o conky-rss.o conky-prss.o  conky-llua.o  conky-imlib2.o  conky-iconv_tools.o conky-colours.o conky-combine.o conky-common.o conky-conky.o conky-core.o conky-diskio.o conky-entropy.o conky-exec.o conky-fs.o conky-mail.o conky-mixer.o conky-net_stat.o conky-template.o conky-timed_thread.o conky-mboxscan.o conky-read_tcp.o conky-scroll.o conky-specials.o conky-tailhead.o conky-temphelper.o conky-text_object.o conky-timeinfo.o conky-algebra.o conky-proc.o conky-user.o conky-top.o  -lncurses -laudcore -laudgui -laudclient -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0  -lm -lX11  -lImlib2  -llua -lm   -ltolua++   -lXext  -lXdamage -lXfixes  -lXft  -lglib-2.0  -lcurl  -lxml2  -lasound -ltolua++ 
libtool: link: x86_64-pc-linux-gnu-gcc -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -Wall -W -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -o conky conky-conf_cookie.o conky-audacious.o conky-linux.o conky-users.o conky-sony.o conky-i8k.o conky-libtcp-portmon.o conky-tcp-portmon.o conky-x11.o conky-fonts.o conky-ccurl_thread.o conky-rss.o conky-prss.o conky-llua.o conky-imlib2.o conky-iconv_tools.o conky-colours.o conky-combine.o conky-common.o conky-conky.o conky-core.o conky-diskio.o conky-entropy.o conky-exec.o conky-fs.o conky-mail.o conky-mixer.o conky-net_stat.o conky-template.o conky-timed_thread.o conky-mboxscan.o conky-read_tcp.o conky-scroll.o conky-specials.o conky-tailhead.o conky-temphelper.o conky-text_object.o conky-timeinfo.o conky-algebra.o conky-proc.o conky-user.o conky-top.o  -lpthread -Wl,--as-needed -lncurses -laudcore -laudgui -laudclient -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lX11 -lImlib2 /usr/lib64//liblua.so -lm -lXext -lXdamage -lXfixes -lXft -lglib-2.0 -lcurl -lxml2 -lasound -ltolua++ -Wl,-rpath -Wl,/usr/lib64/ -Wl,-rpath -Wl,/usr/lib64/
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: conky-conky.o: undefined reference to symbol 'stdscr'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'stdscr' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [conky] Error 1
make[2]: Leaving directory `/var/portage/tmp/portage/app-admin/conky-1.9.0-r3/work/conky-1.9.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/portage/tmp/portage/app-admin/conky-1.9.0-r3/work/conky-1.9.0/src'
make: *** [all-recursive] Error 1

This is because if ncurses is built with the terminfo option the curses library (libncurses) is built separately from the low-level terminfo library (libtinfo) and stdscr is defined in libtinfo but conky does not link against it.

This applies to conky 1.7.0 and the git version.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks