[ntp:hackers] Should configure find openssl on debian by default?

Brian Utterback brian.utterback at oracle.com
Sun Mar 27 15:46:06 UTC 2016


On 3/26/2016 11:23 PM, Hal Murray wrote:
> brian.utterback at oracle.com said:
>> I am setting up a NTP dev environment on a Debian Linux distro for the
>> first time and it appears that configure fails to find libcrypto.so even
>> though it is installed. I know that I can specify the lib and inc
>> locations, but is that normal? The library is in  /usr/lib/x86_64-linux-gnu
>> which seems odd to me but I have never used  Debian before. Should the fact
>> that it isn't found be considered a bug?
> It works for me.  What version of Debian are you using?  What hardware?
>
> Do you have anything strange in your environment setup or search path?
>
>  From config.h:
> /* Use OpenSSL? */
> #define OPENSSL /**/
> /* Use OpenSSL's crypto random functions */
> #define USE_OPENSSL_CRYPTO_RAND 1
>
> ldd for ntpd ays:
>          linux-vdso.so.1 (0x00007fffd0129000)
>          libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f53eafd4000)
>          libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f53eacd3000)
>          libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
> (0x00007f53eaa73000)
>          libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> (0x00007f53ea677000)
>          libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007f53ea45a000)
>          libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f53ea0af000)
>          libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1
> (0x00007f53e9eaa000)
>          libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f53e9ca6000)
>          /lib64/ld-linux-x86-64.so.2 (0x00007f53eb1d9000)
>
>

I am running under Virtual Box. I downloaded the iso from Debian and it 
is called "debian-8.3.0-amd64-netinst.iso".

Did you pass anything on the command line to configure?

Here is what config.log says:


configure:34168: checking for openssl library directory
configure:34208: result: no
configure:34213: WARNING: libcrypto and libssl not found in any of 
/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib 
/lib
configure:34217: checking for openssl include directory
configure:34239: result: no
configure:34244: WARNING: did not find openssl/evp.h in any of 
/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include
configure:34283: checking if we will use crypto
configure:34285: result: no
configure:34515: checking if we want to use OpenSSL's crypto random (if 
available)
configure:34525: result: yes

I am using a repo cloned from the ntp-dev branch with bitkeeper on Thursday.
-- 
Oracle <http://www.oracle.com>
Brian Utterback | Principal Software Engineer
Phone: +1 6038973049 <tel:+1%206038973049>
Oracle Systems/RPE Solaris Network
1 Oracle Dr. | Nashua, NH 03062
------------------------------------------------------------------------
All working systems eventually show their own agendas.
------------------------------------------------------------------------
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
developing practices and products that help protect the environment


More information about the hackers mailing list