Build error: 'unlink' was not declared in this scope (ZIDCacheFile.cpp)

1,318 views
Skip to first unread message

Foong

unread,
Sep 6, 2012, 11:18:30 PM9/6/12
to csipsim...@googlegroups.com
Hi All,

I bump in to the following error during build and not sure how to move forward.

Think it's related to the zrtp library, somehow the unlink function cannot be found? I don't really know C++, is this likely to be configuration issue on my part or the code has problem? any suggestions are welcome. I followed the instruction exactly on http://code.google.com/p/csipsimple/wiki/HowToBuild

jni//zrtp4pj/android_toolchain/../sources/zsrtp/zrtp/zrtp/ZIDCacheFile.cpp: In member function 'void ZIDCacheFile::checkDoMigration(char*)':
jni//zrtp4pj/android_toolchain/../sources/zsrtp/zrtp/zrtp/ZIDCacheFile.cpp:98:13: error: 'unlink' was not declared in this scope
make[1]: *** [obj/local/armeabi/objs/zrtp4pj/zrtp/zrtp/ZIDCacheFile.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/Users/cheefoong/Projects/CSipSimple'
make: *** [libraries] Error 2


Thanks
Chee Foong

Régis Montoya

unread,
Sep 7, 2012, 3:17:37 AM9/7/12
to csipsim...@googlegroups.com
Yes it's a problem in zrtpcpp I've raised to Werner
Until he fixes it, add in the file
jni//zrtp4pj/android_
toolchain/../sources/zsrtp/zrtp/zrtp/ZIDCacheFile.cpp

#include <unistd.h>




2012/9/7 Foong <ch33...@gmail.com>

Chee Foong Chiew

unread,
Sep 9, 2012, 10:30:28 PM9/9/12
to csipsim...@googlegroups.com
Hi Régis,

Thanks a lot, it works after adding in the #include.

Thanks
Chee Foong
--
\Foong
Reply all
Reply to author
Forward
0 new messages