LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2017, 12:30 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 770

Rep: Reputation: Disabled
Determining libssl-dev version


I have two Raspberry Pi's with what I thought identical configuration. Only one of them complains, however, when compiling some software, so I guess they are not identical.

Code:
/home/client/gateway.cpp: In member function ‘void Gateway::initSslContext()’:
/home/client/gateway.cpp:327:14: warning: ‘const SSL_METHOD* TLSv1_2_client_method()’ is deprecated [-Wdeprecated-declarations]
     method = TLSv1_2_client_method();
              ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from /home/client/gateway.h:11,
                 from /home/client/gateway.cpp:1:
/usr/include/openssl/ssl.h:1610:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */
 ^
/home/client/gateway.cpp:327:36: warning: ‘const SSL_METHOD* TLSv1_2_client_method()’ is deprecated [-Wdeprecated-declarations]
     method = TLSv1_2_client_method();
                                    ^
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from /home/client/gateway.h:11,
                 from /home/client/gateway.cpp:1:
/usr/include/openssl/ssl.h:1610:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */
 ^

This one is the problem child:
Code:
michael@pi1:~/michaelclient/build $ sshd -V
unknown option -- V
OpenSSH_6.7p1 Raspbian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016
usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-c host_cert_file]
            [-E log_file] [-f config_file] [-g login_grace_time]
            [-h host_key_file] [-k key_gen_time] [-o option] [-p port]
            [-u len]
michael@pi1:~/michaelclient/build $ ssh -V
OpenSSH_6.7p1 Raspbian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016
michael@pi1:~/michaelclient/build $ sudo apt-get -y install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version (1.1.0e-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
michael@pi1:~/michaelclient/build $
And this one works fine:
Code:
michael@pi2:~/michaelclient/build $ sshd -V
unknown option -- V
OpenSSH_6.7p1 Raspbian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016
usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-c host_cert_file]
            [-E log_file] [-f config_file] [-g login_grace_time]
            [-h host_key_file] [-k key_gen_time] [-o option] [-p port]
            [-u len]
michael@pi2:~/michaelclient/build $ ssh -V
OpenSSH_6.7p1 Raspbian-5+deb8u3, OpenSSL 1.0.1t  3 May 2016
michael@pi2:~/michaelclient/build $ sudo apt-get -y install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
michael@pi2:~/michaelclient/build $
The only difference is the first one says it is at the newest libssl-dev version (1.1.0e-2) while the second doesn't include the (1.1.0e-2).

How can I tell the version of libssl-dev on both machines, and see if I can update it on the first pi?

Thanks
 
Old 06-28-2017, 01:00 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,354
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
If you have it, you can use the dkpg(1) command with the -l option and pipe that to a grep command searching for libssl-dev.

However ... Raspberry Pi's are booted from SD cards. Why not dd the image from the one you consider to be your master and put it onto the other one? And then you know for sure they are identical.
 
Old 06-28-2017, 01:19 PM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 770

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
If you have it, you can use the dkpg(1) command with the -l option and pipe that to a grep command searching for libssl-dev.

However ... Raspberry Pi's are booted from SD cards. Why not dd the image from the one you consider to be your master and put it onto the other one? And then you know for sure they are identical.
It is difficult to gain physical access to the device.

Also, I don't have dpkg. Can aptitude be used?

Thanks
 
Old 06-28-2017, 01:52 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,354
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
Quote:
Originally Posted by NotionCommotion View Post
It is difficult to gain physical access to the device.

Also, I don't have dpkg. Can aptitude be used?

Thanks
A general web search tells me that the package manager for Raspbian is aptitude. Therefore yes. Try apt-show-versions for that package name, however you may wish to double check my memory by performing a web search on how to determine library versions on linux using aptitude.
 
Old 06-28-2017, 02:14 PM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 770

Original Poster
Rep: Reputation: Disabled
Thanks, I had been messing around with aptitude for the first time. I will continue.

I did remove libssl-dev, and reinstall it on the problem machine, and I no longer get the warning. I don't have apt-show-versions, but found a different means, and it shows it at the same version. Funny, though, sudo apt-get -y install libssl-dev still shows slighly different results. One is a Pi2b and the other a Pi3. Maybe the issue?

Code:
michael@pi1:~ $ apt-cache policy libssl-dev
libssl-dev:
  Installed: 1.0.1t-1+deb8u6
  Candidate: 1.0.1t-1+deb8u6
  Version table:
 *** 1.0.1t-1+deb8u6 500
        500 http://mirrordirector.raspbian.org/raspbian jessie/main armhf Packages
        100 /var/lib/dpkg/status
michael@pi1:~ $ sudo apt-get -y install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version (1.0.1t-1+deb8u6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
michael@pi1:~ $

Code:
michael@pi2:~ $ apt-cache policy libssl-dev
libssl-dev:
  Installed: 1.0.1t-1+deb8u6
  Candidate: 1.0.1t-1+deb8u6
  Version table:
 *** 1.0.1t-1+deb8u6 0
        500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
        100 /var/lib/dpkg/status
michael@pi2:~ $ sudo apt-get -y install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
michael@pi2:~ $
How I got here is with the following. I likely on one of the machines installed libssl-dev before using stretch. Maybe the culprit?

Code:
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install git cmake libsqlite3-dev    #libssl-dev
#sudo apt-get -y remove libssl-dev
# Don't know if the following is required?
sudo apt-get -y install software-properties-common python-software-properties build-essential
sudo apt-get -y remove gcc && sudo apt-get -y autoremove gcc
sudo vi /etc/apt/sources.list    #Replace "jessie" with "stretch"

sudo apt-get -y install gcc-6 g++-6
sudo vi /etc/apt/sources.list    #Replace "stretch" with "jessie" and exit
sudo apt-get -y update
sudo apt-get -y install libssl-dev    #After gcc is installed!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libssl-dev. How can I fix this error rg83rg Linux - Newbie 6 12-14-2016 10:03 AM
[SOLVED] OpenSSL version and libssl.so/libcrypto.so version mismatch pbidwell Linux - Software 3 08-11-2012 11:34 AM
package libssl-dev Prisca Ubuntu 1 08-05-2011 12:08 PM
how to install libssl-dev in ubuntu 8.04.1 twinscomp Linux - Newbie 1 08-15-2008 10:12 AM
libssl version for RHEL 4.4 dinhn Linux - General 1 06-13-2007 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration