[Vpn-help] trouble compiling beta3 on ubunutu 6.0.6 lts

Matthew Grooms mgrooms at shrew.net
Fri Sep 7 00:57:45 CDT 2007


Harondel J. Sibble wrote:
> 
> On 6 Sep 2007 at 8:29, Harondel J. Sibble wrote:
> 
>>> find / -name evp.h
>> /usr/include/openssl.evp.h
> 
> Whoops, typo, that should have been  /usr/include/openssl/evp.h

Hmmm, if the header exists in /usr/include/opensssl/evp.h I am a bit 
confounded as to why the configure check failed. This is the exact 
location of the header file in both the Fedora Core 6 and Ubuntu 7.04 
distributions which work fine on my end. Here is the check included in 
the CMakeLists.txt file included with the distribution ...

set(
         SEARCH_INC
         /usr/include
         /usr/local/include )

find_path(
         PATH_INC_CRYPTO
         NAMES "openssl/evp.h"
         PATHS ${SEARCH_INC} )

... which means to locate the openssl/evp.h in the /usr/include or the 
/usr/local/include path. Why it wouldn't be able to find it and pass the 
configure check is beyond my comprehension. Can you try and edit the 
CMakeLists.txt file and comment out ( by placing a # before the line ) 
the following statements ...

-- start ---

find_path(
         PATH_INC_CRYPTO
         NAMES "openssl/evp.h"
         PATHS ${SEARCH_INC} )

if( NOT PATH_INC_CRYPTO )

         message(
                 FATAL_ERROR
                 "Unable to locate openssl crypto include files" )

endif( NOT PATH_INC_CRYPTO )

find_library(
         PATH_LIB_CRYPTO
         NAMES "crypto"
         PATHS ${SEARCH_LIB} )

if( NOT PATH_LIB_CRYPTO )

         message(
                 FATAL_ERROR
                 "Unable to locate openssl crypto library file" )

endif( NOT PATH_LIB_CRYPTO )

--- end ---

... delete the CMakeCache.txt, retry the cmake configure step and let me 
know if that helps.

Thanks,

-Matthew



More information about the vpn-help mailing list