From 61a49ccb98ceac75be2913f18e63ff6ad58793b9 Mon Sep 17 00:00:00 2001 From: Dooeui Date: Sat, 10 Aug 2019 21:27:42 +0900 Subject: [PATCH 1/2] Fix build error for QNX SDP7.0 - Use statvfs instead of statfs --- Foundation/src/File_UNIX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/src/File_UNIX.cpp b/Foundation/src/File_UNIX.cpp index 8fd20b357..f345eb88b 100644 --- a/Foundation/src/File_UNIX.cpp +++ b/Foundation/src/File_UNIX.cpp @@ -35,7 +35,7 @@ #include #include -#if (POCO_OS == POCO_OS_SOLARIS) +#if (POCO_OS == POCO_OS_SOLARIS) || (POCO_OS == POCO_OS_QNX) #define STATFSFN statvfs #define STATFSSTRUCT statvfs #else From e251479ddee3c80e072cb8566d34194f3987f75f Mon Sep 17 00:00:00 2001 From: Dooeui Date: Sun, 11 Aug 2019 16:58:47 +0900 Subject: [PATCH 2/2] Fix build errors in QNX SDP7 Because QNX SDP7 doesn't have separate "dl" library but it's include din "C" library. Therefore, -ldl option should not be used to build programs for QNX SDP7. --- Crypto/samples/genrsakey/Makefile | 4 ++++ Crypto/testsuite/Makefile | 4 ++++ NetSSL_OpenSSL/samples/HTTPSTimeServer/Makefile | 4 ++++ NetSSL_OpenSSL/samples/Mail/Makefile | 4 ++++ NetSSL_OpenSSL/samples/TwitterClient/Makefile | 4 ++++ NetSSL_OpenSSL/samples/download/Makefile | 4 ++++ NetSSL_OpenSSL/testsuite/Makefile | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/Crypto/samples/genrsakey/Makefile b/Crypto/samples/genrsakey/Makefile index 450781577..b891a960f 100644 --- a/Crypto/samples/genrsakey/Makefile +++ b/Crypto/samples/genrsakey/Makefile @@ -10,8 +10,12 @@ include $(POCO_BASE)/build/rules/global ifeq ($(POCO_CONFIG),FreeBSD) SYSLIBS += -lssl -lcrypto -lz else +ifeq ($(POCO_CONFIG),QNX) +SYSLIBS += -lssl -lcrypto -lz +else SYSLIBS += -lssl -lcrypto -lz -ldl endif +endif objects = genrsakey target = genrsakey diff --git a/Crypto/testsuite/Makefile b/Crypto/testsuite/Makefile index 4bd251e08..df050ecf7 100644 --- a/Crypto/testsuite/Makefile +++ b/Crypto/testsuite/Makefile @@ -10,8 +10,12 @@ include $(POCO_BASE)/build/rules/global ifeq ($(POCO_CONFIG),FreeBSD) SYSLIBS += -lssl -lcrypto -lz else +ifeq ($(POCO_CONFIG),QNX) +SYSLIBS += -lssl -lcrypto -lz +else SYSLIBS += -lssl -lcrypto -lz -ldl endif +endif objects = CryptoTestSuite Driver \ CryptoTest DigestEngineTest ECTest \ diff --git a/NetSSL_OpenSSL/samples/HTTPSTimeServer/Makefile b/NetSSL_OpenSSL/samples/HTTPSTimeServer/Makefile index c1b483ce0..41db06f54 100644 --- a/NetSSL_OpenSSL/samples/HTTPSTimeServer/Makefile +++ b/NetSSL_OpenSSL/samples/HTTPSTimeServer/Makefile @@ -10,8 +10,12 @@ include $(POCO_BASE)/build/rules/global ifeq ($(POCO_CONFIG),FreeBSD) SYSLIBS += -lssl -lcrypto -lz else +ifeq ($(POCO_CONFIG),QNX) +SYSLIBS += -lssl -lcrypto -lz +else SYSLIBS += -lssl -lcrypto -lz -ldl endif +endif objects = HTTPSTimeServer diff --git a/NetSSL_OpenSSL/samples/Mail/Makefile b/NetSSL_OpenSSL/samples/Mail/Makefile index 460039900..d1201f434 100644 --- a/NetSSL_OpenSSL/samples/Mail/Makefile +++ b/NetSSL_OpenSSL/samples/Mail/Makefile @@ -10,8 +10,12 @@ include $(POCO_BASE)/build/rules/global ifeq ($(POCO_CONFIG),FreeBSD) SYSLIBS += -lssl -lcrypto -lz else +ifeq ($(POCO_CONFIG),QNX) +SYSLIBS += -lssl -lcrypto -lz +else SYSLIBS += -lssl -lcrypto -lz -ldl endif +endif objects = Mail diff --git a/NetSSL_OpenSSL/samples/TwitterClient/Makefile b/NetSSL_OpenSSL/samples/TwitterClient/Makefile index 9170f8e6e..86523cfd2 100644 --- a/NetSSL_OpenSSL/samples/TwitterClient/Makefile +++ b/NetSSL_OpenSSL/samples/TwitterClient/Makefile @@ -10,8 +10,12 @@ include $(POCO_BASE)/build/rules/global ifeq ($(POCO_CONFIG),FreeBSD) SYSLIBS += -lssl -lcrypto -lz else +ifeq ($(POCO_CONFIG),QNX) +SYSLIBS += -lssl -lcrypto -lz +else SYSLIBS += -lssl -lcrypto -lz -ldl endif +endif objects = Twitter TweetApp diff --git a/NetSSL_OpenSSL/samples/download/Makefile b/NetSSL_OpenSSL/samples/download/Makefile index 428456eaf..c4631aad0 100644 --- a/NetSSL_OpenSSL/samples/download/Makefile +++ b/NetSSL_OpenSSL/samples/download/Makefile @@ -10,8 +10,12 @@ include $(POCO_BASE)/build/rules/global ifeq ($(POCO_CONFIG),FreeBSD) SYSLIBS += -lssl -lcrypto -lz else +ifeq ($(POCO_CONFIG),QNX) +SYSLIBS += -lssl -lcrypto -lz +else SYSLIBS += -lssl -lcrypto -lz -ldl endif +endif objects = download diff --git a/NetSSL_OpenSSL/testsuite/Makefile b/NetSSL_OpenSSL/testsuite/Makefile index 5913d7045..bd64186fb 100644 --- a/NetSSL_OpenSSL/testsuite/Makefile +++ b/NetSSL_OpenSSL/testsuite/Makefile @@ -10,8 +10,12 @@ include $(POCO_BASE)/build/rules/global ifeq ($(POCO_CONFIG),FreeBSD) SYSLIBS += -lssl -lcrypto -lz else +ifeq ($(POCO_CONFIG),QNX) +SYSLIBS += -lssl -lcrypto -lz +else SYSLIBS += -lssl -lcrypto -lz -ldl endif +endif objects = NetSSLTestSuite Driver \ HTTPSClientSessionTest HTTPSClientTestSuite HTTPSServerTest HTTPSServerTestSuite \