SF items 1951604 and 1953551
[1951604] POCO refuses to compile with g++ 4.3.0 [1953551] Solaris Sun Studio 12 Apache stdcxx 64 bit Warning: compile with target platforms not done yet!
This commit is contained in:
Родитель
2a93c3e84f
Коммит
e1c7bc55dd
|
@ -42,6 +42,7 @@
|
|||
|
||||
#include "Poco/Data/ODBC/ODBC.h"
|
||||
#include <vector>
|
||||
#include <cstring>
|
||||
#ifdef POCO_OS_FAMILY_WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#include <vector>
|
||||
#include <map>
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
|
@ -79,7 +80,7 @@ public:
|
|||
/// Creates the HashTable.
|
||||
{
|
||||
_entries = new HashEntryMap*[initialSize];
|
||||
memset(_entries, '\0', sizeof(HashEntryMap*)*initialSize);
|
||||
std::memset(_entries, '\0', sizeof(HashEntryMap*)*initialSize);
|
||||
}
|
||||
|
||||
HashTable(const HashTable& ht):
|
||||
|
@ -314,7 +315,7 @@ public:
|
|||
UInt32 oldSize = _maxCapacity;
|
||||
_maxCapacity = newSize;
|
||||
_entries = new HashEntryMap*[_maxCapacity];
|
||||
memset(_entries, '\0', sizeof(HashEntryMap*)*_maxCapacity);
|
||||
std::memset(_entries, '\0', sizeof(HashEntryMap*)*_maxCapacity);
|
||||
|
||||
if (_size == 0)
|
||||
{
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include "Poco/BinaryWriter.h"
|
||||
#include "Poco/ByteOrder.h"
|
||||
#include <cstring>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include "Poco/Buffer.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
|
||||
#include "Poco/Format.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include <ios>
|
||||
#include <sstream>
|
||||
#include <cctype>
|
||||
#include <cstddef>
|
||||
|
|
|
@ -38,6 +38,11 @@
|
|||
#include "Poco/Exception.h"
|
||||
#include "Poco/ErrorHandler.h"
|
||||
#include <signal.h>
|
||||
#if defined(__sun) && defined(__SVR4)
|
||||
#define __EXTENSIONS__
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// Block SIGPIPE in main thread.
|
||||
|
|
|
@ -38,6 +38,11 @@
|
|||
#include "Poco/ThreadTarget.h"
|
||||
#include "Poco/Event.h"
|
||||
#include <iostream>
|
||||
#if defined(__sun) && defined(__SVR4)
|
||||
#define __EXTENSIONS__
|
||||
#include <limits.h>
|
||||
#endif
|
||||
|
||||
|
||||
using Poco::Thread;
|
||||
using Poco::Runnable;
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
#
|
||||
# $Id: //poco/1.3/build/config/SunOS-stdcxx-x86_64#1 $
|
||||
#
|
||||
# SunOS
|
||||
#
|
||||
# Build settings for SunOS 5.10/Sun Studio 12 C++ 5.9/Apache stdcxx/AMD Opteron 64 bit
|
||||
#
|
||||
|
||||
#
|
||||
# General Settings
|
||||
#
|
||||
LINKMODE = SHARED
|
||||
|
||||
#
|
||||
# Tools
|
||||
#
|
||||
CC = cc -xtarget=opteron -m64
|
||||
CXX = CC -xtarget=opteron -m64 -library=no%Cstd
|
||||
LINK = $(CXX)
|
||||
LIB = $(CXX) -xar -o $@
|
||||
RANLIB = ranlib
|
||||
SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@)
|
||||
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
||||
STRIP =
|
||||
DEP = $(POCO_BASE)/build/script/makedepend.SunCC
|
||||
SHELL = sh
|
||||
RM = rm -rf
|
||||
CP = cp
|
||||
MKDIR = mkdir -p
|
||||
|
||||
#
|
||||
# Extension for Shared Libraries
|
||||
#
|
||||
SHAREDLIBEXT = .so.$(target_version)
|
||||
SHAREDLIBLINKEXT = .so
|
||||
|
||||
#
|
||||
# Compiler and Linker Flags
|
||||
#
|
||||
CFLAGS = -mt -Isrc
|
||||
CFLAGS32 =
|
||||
CFLAGS64 =
|
||||
CXXFLAGS = -mt -features=tmplife
|
||||
CXXFLAGS32 =
|
||||
CXXFLAGS64 =
|
||||
LINKFLAGS = -mt
|
||||
LINKFLAGS32 =
|
||||
LINKFLAGS64 =
|
||||
STATICOPT_CC =
|
||||
STATICOPT_CXX =
|
||||
STATICOPT_LINK = -Bstatic
|
||||
SHAREDOPT_CC = -KPIC
|
||||
SHAREDOPT_CXX = -KPIC
|
||||
SHAREDOPT_LINK = -Bdynamic
|
||||
DEBUGOPT_CC = -g -xdebugformat=stabs -xs -D_DEBUG=$(DEBUGLEVEL)
|
||||
DEBUGOPT_CXX = -g -xdebugformat=stabs -xs -D_DEBUG=$(DEBUGLEVEL)
|
||||
DEBUGOPT_LINK = -g -xdebugformat=stabs -xs
|
||||
RELEASEOPT_CC = -xO3 -g0 -xregs=no%frameptr -xdebugformat=stabs -xs -DNDEBUG -library=no%Cstd
|
||||
RELEASEOPT_CXX = -xO3 -g0 -xregs=no%frameptr -xdebugformat=stabs -xs -DNDEBUG -library=no%Cstd
|
||||
RELEASEOPT_LINK =
|
||||
|
||||
#
|
||||
# System Specific Flags
|
||||
#
|
||||
SYSFLAGS = -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER
|
||||
|
||||
#
|
||||
# System Specific Libraries
|
||||
#
|
||||
SYSLIBS = -lstd15D -lpthread -lrt -lxnet -lsocket -lnsl -lresolv -ldl
|
Загрузка…
Ссылка в новой задаче