Menu

#853 gethostname not declared in this scope

closed-fixed
None
5
2012-09-14
2012-06-23
No

An AUR user reported the following earlier this June on the tora package on the AUR:
/tmp/packerbuild-0/tora/tora/src/tora-2.1.3/src/toextract.cpp: In member function ‘QString toExtract::generateHeading(const QString&, std::list<QString, std::allocator<QString> >&)’:
/tmp/packerbuild-0/tora/tora/src/tora-2.1.3/src/toextract.cpp:690:27: error: ‘gethostname’ was not declared in this scope
make[2]: *** [src/CMakeFiles/tora.dir/toextract.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/tora.dir/all] Error 2

unistd.h needs to be included in the header for toextract.h for it to compile

Discussion

  • Sapphira Armageddos

    Patch to include missing header

     
  • Ivan Brezina

    Ivan Brezina - 2012-09-14

    It's fixed in trunk already.

     
  • Ivan Brezina

    Ivan Brezina - 2012-09-14
    • assigned_to: nobody --> ibre5041
    • labels: 717684 -->
    • status: open --> closed-fixed
     
  • Ivan Brezina

    Ivan Brezina - 2012-09-14

    Works for me. Try again with the SVN version and reopen if it's still a problem.

     

Log in to post a comment.