diff --git a/indra/CMakeLists.txt b/indra/CMakeLists.txt index dc0294c777..1bfcb3fca2 100644 --- a/indra/CMakeLists.txt +++ b/indra/CMakeLists.txt @@ -89,10 +89,10 @@ add_subdirectory(${LIBS_OPEN_PREFIX}llplugin) add_subdirectory(${LIBS_OPEN_PREFIX}llui) add_subdirectory(${LIBS_OPEN_PREFIX}viewer_components) -if (LL_TESTS OR NOT STANDALONE) +#if (LL_TESTS OR NOT STANDALONE) # Legacy C++ tests. Build always, run if LL_TESTS is true. -add_subdirectory(${VIEWER_PREFIX}test) -endif (LL_TESTS OR NOT STANDALONE) +#add_subdirectory(${VIEWER_PREFIX}test) +#endif (LL_TESTS OR NOT STANDALONE) # viewer media plugins add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins) diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake index f03eebc0dc..b475a1c7d8 100755 --- a/indra/cmake/00-Common.cmake +++ b/indra/cmake/00-Common.cmake @@ -159,7 +159,7 @@ if (LINUX) OUTPUT_STRIP_TRAILING_WHITESPACE) if (${GXX_VERSION} STREQUAL ${CXX_VERSION}) - add_definitions(-D_FORTIFY_SOURCE=2) +# add_definitions(-D_FORTIFY_SOURCE=2) else (${GXX_VERSION} STREQUAL ${CXX_VERSION}) if (NOT ${GXX_VERSION} MATCHES " 4.1.*Red Hat") add_definitions(-D_FORTIFY_SOURCE=2) diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 7346629e26..e6f42efe6d 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -4827,7 +4827,12 @@ void LLAgent::dumpSentAppearance(const std::string& dump_prefix) LLAPRFile outfile; std::string fullpath = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,outfilename); outfile.open(fullpath, LL_APR_WB ); - apr_file_t* file = outfile.getFileHandle(); + + // Remove LLVolatileAPRPool/apr_file_t and use FILE* instead + // apr_file_t* file = outfile.getFileHandle(); + LLAPRFile::tFiletype* file = outfile.getFileHandle(); + // + if (!file) { return; diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 68f0305d85..79955f171d 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -7112,7 +7112,10 @@ bool LLVOAvatar::visualParamWeightsAreDefault() return rtn; } -void dump_visual_param(apr_file_t* file, LLVisualParam* viewer_param, F32 value) +// Remove LLVolatileAPRPool/apr_file_t and use FILE* instead +//void dump_visual_param(apr_file_t* file, LLVisualParam* viewer_param, F32 value) +void dump_visual_param(LLAPRFile::tFiletype* file, LLVisualParam* viewer_param, F32 value) +// { std::string type_string = "unknown"; if (dynamic_cast(viewer_param)) @@ -7150,7 +7153,12 @@ void LLVOAvatar::dumpAppearanceMsgParams( const std::string& dump_prefix, LLAPRFile outfile; std::string fullpath = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,outfilename); outfile.open(fullpath, LL_APR_WB ); - apr_file_t* file = outfile.getFileHandle(); + + // Remove LLVolatileAPRPool/apr_file_t and use FILE* instead + // apr_file_t* file = outfile.getFileHandle(); + LLAPRFile::tFiletype* file = outfile.getFileHandle(); + // + if (!file) { return;