Menu

#5 Installation on Ubuntu 14.04.1

1.0
accepted
None
2014-12-15
2014-12-04
No

Hi,

I'm getting errors when installing icappfd on Ubuntu 14.04.1

make
[ 14%] Building CXX object CMakeFiles/icappfd.dir/src/main.cpp.o
/home/sysadmin/icappfd-0.6/src/main.cpp: In function ‘int main(int, char**)’:
/home/sysadmin/icappfd-0.6/src/main.cpp:206:13: error: ignoring return value of ‘int daemon(int, int)’, declared with attribute warn_unused_result [-Werror=unused-result]
daemon(0,0);
^
/home/sysadmin/icappfd-0.6/src/main.cpp:214:35: error: ignoring return value of ‘int setgid(__gid_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
if(s->setgid) { setgid(s->setgid); }
^
/home/sysadmin/icappfd-0.6/src/main.cpp:216:35: error: ignoring return value of ‘int setuid(__uid_t)’, declared with attribute warn_unused_result [-Werror=unused-result]
if(s->setuid) { setuid(s->setuid); }
^
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/icappfd.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/icappfd.dir/all] Error 2
make: *** [all] Error 2

Please help.

Christian

Discussion

  • Menne Kamminga

    Menne Kamminga - 2014-12-11

    Hi!

    Sorry for the late reaction, looks like your compiler is a bit more strict in checking certain things then mine, as a workaround:
    Open the file CMakeLists.txt and change the line:

    SET(GCC_11_COMPILE_FLAGS "-pipe -Wall -Wextra -Werror -Wno-unused-parameter -Os -std=c++11")

    change it to:

    SET(GCC_11_COMPILE_FLAGS "-pipe -Wall -Wextra -Wno-unused-parameter -Os -std=c++11")

     
  • Menne Kamminga

    Menne Kamminga - 2014-12-11
    • status: open --> accepted
    • assigned_to: Menne Kamminga
     
  • Chrstian Judilla

    Hi!

    Yup, that worked! Thanks! We are still in the testing phase of the deployment. We are hoping it can handle 300-400 users. I will let you know how it goes.

    Cheers!

     

Log in to post a comment.

MongoDB Logo MongoDB