On 10/26/16 12:29, marius adrian popa wrote:
Any ideas ?This happens only on Android build with master (3.0 branch builds ok) make yvalve make[4]: Entering directory '/home/mariuz/Work/firebird/firebird/gen' /home/mariuz/android-ndk-r13/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/x86_64-linux-android-g++ -I/home/mariuz/Work/firebird/firebird/src/include/gen -I/home/mariuz/Work/firebird/firebird/src/include -ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DANDROID -DAMD64 -pipe -MMD -fPIC -fmessage-length=0 -I/home/mariuz/Work/firebird/firebird/extern/libtommath --sysroot=/home/mariuz/android-ndk-r13/platforms/android-24/arch-x86_64 -I/home/mariuz/android-ndk-r13/platforms/android-24/arch-x86_64/usr/include -I/home/mariuz/Work/firebird/firebird/gen/cross -fno-omit-frame-pointer -pthread -fno-rtti -pthread -std=c++11 -c /home/mariuz/Work/firebird/firebird/src/yvalve/gds.cpp -o /home/mariuz/Work/firebird/firebird/temp/Release/yvalve/gds.o In file included from /home/mariuz/Work/firebird/firebird/src/yvalve/gds.cpp:52:0: /home/mariuz/Work/firebird/firebird/src/yvalve/../common/os/os_utils.h: In function 'int os_utils::lockf(int, int, off_t)': /home/mariuz/Work/firebird/firebird/src/yvalve/../common/os/os_utils.h:185:9: error: '::lockf' has not been declared rc = ::lockf(fd, cmd, len); ^ /home/mariuz/Work/firebird/firebird/src/yvalve/../common/os/os_utils.h:185:9: note: suggested alternative: /home/mariuz/Work/firebird/firebird/src/yvalve/../common/os/os_utils.h:176:13: note: 'os_utils::lockf' inline int lockf(int fd, int cmd, off_t len) ^
This patch should help.
diff --git a/src/common/os/os_utils.h b/src/common/os/os_utils.h index 00d4933..c4c7085 100644 --- a/src/common/os/os_utils.h +++ b/src/common/os/os_utils.h @@ -173,6 +173,8 @@ namespace os_utils } #ifndef WIN_NT + +#ifndef HAVE_FLOCK inline int lockf(int fd, int cmd, off_t len) { int rc; @@ -188,6 +190,7 @@ namespace os_utils return rc; } +#endif inline int mkstemp(char* templ) {
------------------------------------------------------------------------------ The Command Line: Reinvented for Modern Developers Did the resurgence of CLI tooling catch you by surprise? Reconnect with the command line and become more productive. Learn the new .NET and ASP.NET CLI. Get your free copy! http://sdm.link/telerik
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel