Ticket #2063: osgeolive.patch
File osgeolive.patch, 6.8 KB (added by , 6 years ago) |
---|
-
caching.c
40 40 * @warning make sure to free resources returned by this function 41 41 */ 42 42 char* getMd5(char* url){ 43 EVP_MD_CTX md5ctx;43 EVP_MD_CTX *md5ctx=EVP_MD_CTX_create(); 44 44 char* fresult=(char*)malloc((EVP_MAX_MD_SIZE+1)*sizeof(char)); 45 45 unsigned char result[EVP_MAX_MD_SIZE]; 46 46 unsigned int len; 47 EVP_DigestInit( &md5ctx, EVP_md5());48 EVP_DigestUpdate( &md5ctx, url, strlen(url));49 EVP_DigestFinal_ex( &md5ctx,result,&len);50 EVP_MD_CTX_ cleanup(&md5ctx);47 EVP_DigestInit(md5ctx, EVP_md5()); 48 EVP_DigestUpdate(md5ctx, url, strlen(url)); 49 EVP_DigestFinal_ex(md5ctx,result,&len); 50 EVP_MD_CTX_destroy(md5ctx); 51 51 int i; 52 52 for(i = 0; i < len; i++){ 53 53 if(i>0){ -
configure.ac
830 830 if test "$IVERS" == "$ITKVERS"; then 831 831 ITK_LDFLAGS="-lITKBiasCorrection-$ITKVERS -lITKCommon-$ITKVERS -lITKIOImageBase-$ITKVERS -lITKKLMRegionGrowing-$ITKVERS -lITKLabelMap-$ITKVERS -lITKMesh-$ITKVERS -lITKMetaIO-$ITKVERS -lITKOptimizers-$ITKVERS -lITKPath-$ITKVERS -lITKPolynomials-$ITKVERS -lITKQuadEdgeMesh-$ITKVERS -lITKSpatialObjects-$ITKVERS -lITKStatistics-$ITKVERS -lITKVNLInstantiation-$ITKVERS -lITKWatersheds-$ITKVERS -litkNetlibSlatec-$ITKVERS -litksys-$ITKVERS -litkv3p_netlib-$ITKVERS -litkvcl-$ITKVERS -litkvnl-$ITKVERS" 832 832 else 833 ITK_LDFLAGS="-lITKBiasCorrection-$ITKVERS -lITKCommon-$ITKVERS -lITKIOImageBase-$ITKVERS -lITKKLMRegionGrowing-$ITKVERS -lITKLabelMap-$ITKVERS -lITKMesh-$ITKVERS -lITKMetaIO-$ITKVERS -lITKOptimizers-$ITKVERS -lITKPath-$ITKVERS -lITKPolynomials-$ITKVERS -lITKQuadEdgeMesh-$ITKVERS -lITKSpatialObjects-$ITKVERS -lITKStatistics-$ITKVERS -lITKVNLInstantiation-$ITKVERS -lITKWatersheds-$ITKVERS -litkNetlibSlatec-$ITKVERS -litksys-$ITKVERS -litkv3p_ lsqr-$ITKVERS -litkv3p_netlib-$ITKVERS -litkvcl-$ITKVERS -litkvnl-$ITKVERS -litkvnl_algo-$ITKVERS"833 ITK_LDFLAGS="-lITKBiasCorrection-$ITKVERS -lITKCommon-$ITKVERS -lITKIOImageBase-$ITKVERS -lITKKLMRegionGrowing-$ITKVERS -lITKLabelMap-$ITKVERS -lITKMesh-$ITKVERS -lITKMetaIO-$ITKVERS -lITKOptimizers-$ITKVERS -lITKPath-$ITKVERS -lITKPolynomials-$ITKVERS -lITKQuadEdgeMesh-$ITKVERS -lITKSpatialObjects-$ITKVERS -lITKStatistics-$ITKVERS -lITKVNLInstantiation-$ITKVERS -lITKWatersheds-$ITKVERS -litkNetlibSlatec-$ITKVERS -litksys-$ITKVERS -litkv3p_netlib-$ITKVERS -litkvcl-$ITKVERS -litkvnl-$ITKVERS -litkvnl_algo-$ITKVERS" 834 834 fi 835 835 836 836 if test -a "${OTBPATH}/include/OTB-${OTBVERS}" ; then … … 858 858 #echo $OTB_LDFLAGS 859 859 #UVERS="$(echo -e '5.8\n$OTBVERS' | sort -r | head -n1)" 860 860 #if test "$OTBVERS" == "$UVERS" ; then 861 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "otbWrapperApplicationRegistry.h"]],[[std::vector<std::string> list = otb::Wrapper::ApplicationRegistry::GetAvailableApplications();]])],862 [AC_MSG_RESULT([checking for GetAvailableApplications... yes])],[AC_MSG_ERROR([checking for GetAvailableApplications... failed])])861 #AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "otbWrapperApplicationRegistry.h"]],[[std::vector<std::string> list = otb::Wrapper::ApplicationRegistry::GetAvailableApplications();]])], 862 # [AC_MSG_RESULT([checking for GetAvailableApplications... yes])],[AC_MSG_ERROR([checking for GetAvailableApplications... failed])]) 863 863 #else 864 864 # AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "otbWrapperApplication.h"]],[[std::vector<std::string> list = otb::Wrapper::ApplicationRegistry::GetAvailableApplication();]])], 865 865 # [AC_MSG_RESULT([checking for GetAvailableApplication... yes])],[AC_MSG_ERROR([checking for GetAvailableApplication... failed])]) -
otbZooWatcher.cxx
51 51 ZooWatcher 52 52 ::StartFilter() 53 53 { 54 m_TimeProbe.Start();54 // m_TimeProbe.Start(); 55 55 } 56 56 57 57 void … … 58 58 ZooWatcher 59 59 ::EndFilter() 60 60 { 61 m_TimeProbe.Stop();61 /* m_TimeProbe.Stop(); 62 62 std::ostringstream elapsedTime; 63 63 elapsedTime.precision(1); 64 64 elapsedTime << m_TimeProbe.GetMean(); … … 67 67 << elapsedTime.str() 68 68 << " seconds)" 69 69 << std::endl; 70 */ 70 71 } -
response_print.c
22 22 * THE SOFTWARE. 23 23 */ 24 24 25 #include "response_print.h"26 #include "request_parser.h"27 #include "server_internal.h"28 #include "service_internal.h"29 25 #ifdef USE_MS 30 26 #include "service_internal_ms.h" 31 27 #else 32 28 #include "cpl_vsi.h" 33 29 #endif 30 #include "response_print.h" 31 #include "request_parser.h" 32 #include "server_internal.h" 33 #include "service_internal.h" 34 34 35 #ifndef TRUE36 #define TRUE 137 #endif38 #ifndef FALSE39 #define FALSE -140 #endif41 35 42 36 #ifndef WIN32 43 37 #include <dlfcn.h> -
response_print.h
79 79 #endif 80 80 #endif 81 81 #ifndef WIN32 82 #include < xlocale.h>82 #include <locale.h> 83 83 #endif 84 84 #include "ulinet.h" 85 85 -
service_internal.h
81 81 #include <unistd.h> 82 82 #endif 83 83 #ifndef WIN32 84 #include < xlocale.h>84 #include <locale.h> 85 85 #endif 86 86 87 87 #include "service.h" -
service_internal_ms.h
25 25 #define ZOO_SERVICE_INTERNAL_MS_H 1 26 26 27 27 #include <sys/stat.h> 28 #include "service_internal.h"29 #include "service.h"30 28 #include "cpl_conv.h" 31 29 #include "cpl_multiproc.h" 32 30 #include "ogr_api.h" 33 31 #include "gdal.h" 34 32 #include "ogr_srs_api.h" 33 #include "service_internal.h" 34 #include "service.h" 35 35 #include "ulinet.h" 36 36 #ifdef WIN32 37 37 #include <unistd.h> -
service_internal_python.h
27 27 28 28 #pragma once 29 29 30 #include <Python.h> 30 31 #include "service_internal.h" 31 32 #include "response_print.h" 32 #include <Python.h>33 33 #include "cgic.h" 34 34 #ifdef WIN32 35 35 #include <windows.h> -
ulinet.h
42 42 #endif 43 43 #include "jsapi.h" 44 44 #endif 45 #ifndef bool45 #ifndef __cplusplus 46 46 #define bool int 47 #endif48 #ifndef true49 47 #define true 1 50 48 #define false 0 51 49 #endif