# HG changeset patch # User Sebastien Decugis # Date 1268027521 -32400 # Node ID 62eaf631eb61b92673f61903b79efc3da0ae7656 # Parent 5ba7a37a67329a4d7569097ede1fd5b0f1a2a6ef Fix compilation issue when gnutls is not in standard directory diff -r 5ba7a37a6732 -r 62eaf631eb61 INSTALL.FreeBSD --- a/INSTALL.FreeBSD Mon Mar 08 14:23:28 2010 +0900 +++ b/INSTALL.FreeBSD Mon Mar 08 14:52:01 2010 +0900 @@ -32,7 +32,7 @@ 3) Install mercurial (optional) (replace "cmake" by "mercurial" in the previous command) -4) Install flex and bison. +4) Install flex and bison, same way. 5) Retrieve freeDiameter source code: # cd ~ @@ -43,6 +43,15 @@ # cd fD-build 7) Run cmake for freeDiameter (add other flags as you see fit, see INSTALL for more details) - # cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex ../freeDiameter + # /usr/local/bin/cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex ../freeDiameter 8) make, run, enjoy :) + +------ +STATUS +------ +*) clock_nanosleep: + This function will prevent the build of the tests, it needs to be fixed (TODO) + Workaround: use -DSKIP_TESTS:BOOL=ON + +*) diff -r 5ba7a37a6732 -r 62eaf631eb61 extensions/CMakeLists.txt --- a/extensions/CMakeLists.txt Mon Mar 08 14:23:28 2010 +0900 +++ b/extensions/CMakeLists.txt Mon Mar 08 14:52:01 2010 +0900 @@ -12,6 +12,15 @@ SET_TARGET_PROPERTIES(${EXTNAME} PROPERTIES SUFFIX ".fdx" ) ENDMACRO(FD_ADD_EXTENSION) +# The extensions include the headers of freeDiameter that contains gnutls objects +FIND_PACKAGE(GNUTLS REQUIRED) +INCLUDE_DIRECTORIES(${GNUTLS_INCLUDE_DIRS}) +find_path(GCRYPT_INCLUDE_DIR NAMES gcrypt.h) +If ( NOT GCRYPT_INCLUDE_DIR ) + MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent") +Endif ( NOT GCRYPT_INCLUDE_DIR ) +INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR}) + ########################### # Extensions section