Compiling fails when using qesteidutil-svn and libdigidocpp-svn packages from
AUR with following messages:
...
[ 8%] Building CXX object
qtsingleapplication/CMakeFiles/qtsingleapplication.dir/src/qtlocalpeer.cpp.o
/tmp/yaourt-tmp-peeter/aur-qesteidutil-svn/src/qesteidutil-build/qtsingleapplica
tion/src/qtlocalpeer.cpp: In constructor ‘QtLocalPeer::QtLocalPeer(QObject*,
const QString&)’:
/tmp/yaourt-tmp-peeter/aur-qesteidutil-svn/src/qesteidutil-build/qtsingleapplica
tion/src/qtlocalpeer.cpp:104:54: error: ‘::getuid’ has not been declared
/tmp/yaourt-tmp-peeter/aur-qesteidutil-svn/src/qesteidutil-build/qtsingleapplica
tion/src/qtlocalpeer.cpp:104:54: note: suggested alternative:
In file included from
/tmp/yaourt-tmp-peeter/aur-qesteidutil-svn/src/qesteidutil-build/qtsingleapplica
tion/src/qtlockedfile_unix.cpp:49:0,
from /tmp/yaourt-tmp-peeter/aur-qesteidutil-svn/src/qesteidutil-build/qtsingleapplication/src/qtlocalpeer.cpp:68:
/usr/include/unistd.h:698:16: note: ‘QtLP_Private::getuid’
make[2]: ***
[qtsingleapplication/CMakeFiles/qtsingleapplication.dir/src/qtlocalpeer.cpp.o]
Error 1
make[1]: *** [qtsingleapplication/CMakeFiles/qtsingleapplication.dir/all] Error
2
make: *** [all] Error 2
and
...
[ 22%] Building CXX object src/CMakeFiles/digidocpp.dir/XmlConf.cpp.o
/tmp/yaourt-tmp-peeter/aur-libdigidocpp-svn/src/libdigidocpp-build/src/XmlConf.c
pp: In static member function ‘static std::string
digidoc::XmlConf::getDefaultConfDir()’:
/tmp/yaourt-tmp-peeter/aur-libdigidocpp-svn/src/libdigidocpp-build/src/XmlConf.c
pp:140:34: error: ‘getcwd’ was not declared in this scope
make[2]: *** [src/CMakeFiles/digidocpp.dir/XmlConf.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/digidocpp.dir/all] Error 2
make: *** [all] Error 2
I was able to compile them after adding "#include <unistd.h>" to
libdigidocpp-build/src/XmlConf.cpp and
qesteidutil-build/qtsingleapplication/src/qtlocalpeer.cpp respectively
Original issue reported on code.google.com by piks...@gmail.com on 28 Apr 2012 at 9:34
Original issue reported on code.google.com by
piks...@gmail.com
on 28 Apr 2012 at 9:34