Archived
This forum has been archived. Please start a new discussion on GitHub.
build of Ice-3.4.2 fails with rmdir has not been declared
Hi.
I've run into the following issue ( all of a sudden for me just because I've built Ice several times successfully in the past ) :
Please advise.
I've run into the following issue ( all of a sudden for me just because I've built Ice several times successfully in the past ) :
Please advise.
root@hdp:/tmp/Ice-3.4.2/cpp# make making all in config make[1]: Entering directory `/tmp/Ice-3.4.2/cpp/config' echo "" make[1]: Leaving directory `/tmp/Ice-3.4.2/cpp/config' making all in src make[1]: Entering directory `/tmp/Ice-3.4.2/cpp/src' making all in IceUtil make[2]: Entering directory `/tmp/Ice-3.4.2/cpp/src/IceUtil' c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I.. -m64 -Wall -D_REENTRANT -fPIC -g ArgVector.cpp c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I.. -m64 -Wall -D_REENTRANT -fPIC -g Cond.cpp c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I.. -m64 -Wall -D_REENTRANT -fPIC -g ConvertUTF.cpp c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I.. -m64 -Wall -D_REENTRANT -fPIC -g CountDownLatch.cpp c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I.. -m64 -Wall -D_REENTRANT -fPIC -g CtrlCHandler.cpp c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I.. -m64 -Wall -D_REENTRANT -fPIC -g Exception.cpp c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I.. -m64 -Wall -D_REENTRANT -fPIC -g FileUtil.cpp FileUtil.cpp: In function ‘int IceUtilInternal::rmdir(const string&)’: FileUtil.cpp:401:12: error: ‘::rmdir’ has not been declared FileUtil.cpp:401:12: note: suggested alternative: FileUtil.cpp:399:1: note: ‘IceUtilInternal::rmdir’ FileUtil.cpp: In function ‘int IceUtilInternal::getcwd(std::string&)’: FileUtil.cpp:434:8: error: ‘::getcwd’ has not been declared FileUtil.cpp:434:8: note: suggested alternative: FileUtil.cpp:431:1: note: ‘IceUtilInternal::getcwd’ FileUtil.cpp: In function ‘int IceUtilInternal::unlink(const string&)’: FileUtil.cpp:445:12: error: ‘::unlink’ has not been declared FileUtil.cpp:445:12: note: suggested alternative: FileUtil.cpp:443:1: note: ‘IceUtilInternal::unlink’ FileUtil.cpp: In function ‘int IceUtilInternal::close(int)’: FileUtil.cpp:451:12: error: ‘::close’ has not been declared FileUtil.cpp:451:12: note: suggested alternative: FileUtil.cpp:449:1: note: ‘IceUtilInternal::close’ FileUtil.cpp: In constructor ‘IceUtilInternal::FileLock::FileLock(const string&)’: FileUtil.cpp:492:18: error: ‘getpid’ was not declared in this scope FileUtil.cpp:494:52: error: ‘write’ was not declared in this scope FileUtil.cpp: In function ‘int IceUtilInternal::close(int)’: FileUtil.cpp:452:1: warning: control reaches end of non-void function [-Wreturn-type] FileUtil.cpp: In function ‘int IceUtilInternal::unlink(const string&)’: FileUtil.cpp:446:1: warning: control reaches end of non-void function [-Wreturn-type] FileUtil.cpp: In function ‘int IceUtilInternal::rmdir(const string&)’: FileUtil.cpp:402:1: warning: control reaches end of non-void function [-Wreturn-type] make[2]: *** [FileUtil.o] Error 1 make[2]: Leaving directory `/tmp/Ice-3.4.2/cpp/src/IceUtil' make[1]: *** [all] Error 1 make[1]: Leaving directory `/tmp/Ice-3.4.2/cpp/src' make: *** [all] Error 1
0
Comments
-
Try to add include unistd.h in FileUtil.cpp, that used to work with older GCC versions. Maybe is time to update to 3.50
-