pixie16 / paass

Pixie Acquisition and Analysis Software Suite
https://pixie16.github.io/paassdoc/
GNU General Public License v3.0
10 stars 29 forks source link

ncurses compile issue #256

Closed ksmith0 closed 7 years ago

ksmith0 commented 7 years ago

An ncurses compile issue has appeared when using gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) and cmake version 2.8.12.2. As shown by the following error:

/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: ../../../Core/source/libPaassCoreStatic.a(CTerminal.cpp.o): undefined reference to symbol 'halfdelay'
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: note: 'halfdelay' 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]: *** [Acquisition/Poll/source/poll2] Error 1
make[1]: *** [Acquisition/Poll/source/CMakeFiles/poll2.dir/all] Error 2
make: *** [all] Error 2

This can be resolved by add the following line after find_package(Curses REQUIRED)

list(APPEND CURSES_LIBRARIES -ltinfo)
spaulaus commented 7 years ago

@ksmith0 :

I do not see this problem with gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 and CMAKE 3.7.1

ksmith0 commented 7 years ago

I've never seen it except on bill.

spaulaus commented 7 years ago

Another issue seen only on a single system.