Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. first build on Linux: OpenSSL issue
Forum Updated to NodeBB v4.3 + New Features

first build on Linux: OpenSSL issue

Scheduled Pinned Locked Moved Solved Installation and Deployment
32 Posts 3 Posters 6.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mzimmersM mzimmers

    @JoeCFD said in first build on Linux: OpenSSL issue:

    Qt has a plugin libqopensslbackend.so in under gcc_64/plugins/tls. But I can see the direct link to libssl.

    And this plugin links to version 1.1 of OpenSSL? Or is this because of the link in my /usr/lib/x86_64-linux-gnu folder?

    I'd prefer to eliminate the error message, but not at the expense of breaking other applications in the system.

    JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by
    #15

    @mzimmers Which Qt modules are you using? I ran a few Qt 6.6 network examples and could not see your issue.

    mzimmersM 1 Reply Last reply
    0
    • JoeCFDJ JoeCFD

      @mzimmers Which Qt modules are you using? I ran a few Qt 6.6 network examples and could not see your issue.

      mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by mzimmers
      #16

      @JoeCFD

      Qt 6.5.3
      Desktop gcc 64-bit
      WebAssembly (single-threaded)
      Android
      Sources
      Qt HTTP Server (TP)
      Qt Virtual Keyboard
      Qt WebSockets

      Thanks...

      JoeCFDJ 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #17

        How come you have both OpenSSL 3 and 1.1 ?

        How did you install them ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        mzimmersM 1 Reply Last reply
        0
        • mzimmersM mzimmers

          @JoeCFD

          Qt 6.5.3
          Desktop gcc 64-bit
          WebAssembly (single-threaded)
          Android
          Sources
          Qt HTTP Server (TP)
          Qt Virtual Keyboard
          Qt WebSockets

          Thanks...

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #18

          @mzimmers I have two in my computer as well. But my libssl points to libssl.so.3 and openssl version shows OpenSSL 3.0.2.

          Maybe you can try to reinstall it.
          sudo apt-get reinstall openssl
          and then run
          openssl version
          to see if you have the right version

          mzimmersM 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            @mzimmers I have two in my computer as well. But my libssl points to libssl.so.3 and openssl version shows OpenSSL 3.0.2.

            Maybe you can try to reinstall it.
            sudo apt-get reinstall openssl
            and then run
            openssl version
            to see if you have the right version

            mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #19

            @JoeCFD still points to 1.1. shrug

            I suppose I could manually relink it, but I'm not sure about the side effects.

            1 Reply Last reply
            0
            • SGaistS SGaist

              How come you have both OpenSSL 3 and 1.1 ?

              How did you install them ?

              mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #20

              @SGaist I have no idea - this is how the system came to me. The only real change my IT department made was to install some anti-virus application; maybe that used the older version of openssl?

              JoeCFDJ 1 Reply Last reply
              0
              • mzimmersM mzimmers

                @SGaist I have no idea - this is how the system came to me. The only real change my IT department made was to install some anti-virus application; maybe that used the older version of openssl?

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #21

                @mzimmers anti-virus application in Linux? I do not have any. But I know Linux viruses indeed exist.

                I have libssl.so.3. You seem not having it.
                run
                sudo synaptic
                Search for libssl
                to see if you have installed libssl-dev
                If not, install it. This one has version 3.0.2.

                mzimmersM 1 Reply Last reply
                0
                • JoeCFDJ JoeCFD

                  @mzimmers anti-virus application in Linux? I do not have any. But I know Linux viruses indeed exist.

                  I have libssl.so.3. You seem not having it.
                  run
                  sudo synaptic
                  Search for libssl
                  to see if you have installed libssl-dev
                  If not, install it. This one has version 3.0.2.

                  mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by mzimmers
                  #22

                  @JoeCFD I believe I do have it:

                  mzimmers@LinuxBoxZimmers:~/Downloads$ whereis libssl
                  libssl: /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libssl3.so /usr/lib/x86_64-linux-gnu/libssl.a
                  mzimmers@LinuxBoxZimmers:~/Downloads$ cd /usr/lib/x86_64-linux-gnu/
                  mzimmers@LinuxBoxZimmers:/usr/lib/x86_64-linux-gnu$ ls -l libssl*
                  -rw-r--r-- 1 root root  382024 Feb 17  2023 libssl3.so
                  -rw-r--r-- 1 root root 1016494 Oct 10 02:03 libssl.a
                  lrwxrwxrwx 1 root root      13 Oct 10 02:03 libssl.so -> libssl.so.1.1
                  -rw-r--r-- 1 root root  598104 Oct 10 02:03 libssl.so.1.1
                  mzimmers@LinuxBoxZimmers:/usr/lib/x86_64-linux-gnu$ 
                  

                  The link just happens to be pointing to my older version. I don't know why.

                  JoeCFDJ 1 Reply Last reply
                  0
                  • mzimmersM mzimmers

                    @JoeCFD I believe I do have it:

                    mzimmers@LinuxBoxZimmers:~/Downloads$ whereis libssl
                    libssl: /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libssl3.so /usr/lib/x86_64-linux-gnu/libssl.a
                    mzimmers@LinuxBoxZimmers:~/Downloads$ cd /usr/lib/x86_64-linux-gnu/
                    mzimmers@LinuxBoxZimmers:/usr/lib/x86_64-linux-gnu$ ls -l libssl*
                    -rw-r--r-- 1 root root  382024 Feb 17  2023 libssl3.so
                    -rw-r--r-- 1 root root 1016494 Oct 10 02:03 libssl.a
                    lrwxrwxrwx 1 root root      13 Oct 10 02:03 libssl.so -> libssl.so.1.1
                    -rw-r--r-- 1 root root  598104 Oct 10 02:03 libssl.so.1.1
                    mzimmers@LinuxBoxZimmers:/usr/lib/x86_64-linux-gnu$ 
                    

                    The link just happens to be pointing to my older version. I don't know why.

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by
                    #23

                    @mzimmers you do not have libssl.so.3 while you have libssl3.so.

                    mzimmersM 1 Reply Last reply
                    1
                    • JoeCFDJ JoeCFD

                      @mzimmers you do not have libssl.so.3 while you have libssl3.so.

                      mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #24

                      @JoeCFD oops...good catch.Screenshot from 2023-12-08 14-57-17.png

                      JoeCFDJ 1 Reply Last reply
                      0
                      • mzimmersM mzimmers

                        @JoeCFD oops...good catch.Screenshot from 2023-12-08 14-57-17.png

                        JoeCFDJ Offline
                        JoeCFDJ Offline
                        JoeCFD
                        wrote on last edited by JoeCFD
                        #25

                        @mzimmers
                        the latest ssl version is 3.0.2 in Jammy 22.04
                        https://launchpad.net/ubuntu/jammy/+source/openssl
                        I guess you need to upgrade your Ubuntu.

                        mzimmersM 1 Reply Last reply
                        0
                        • JoeCFDJ JoeCFD

                          @mzimmers
                          the latest ssl version is 3.0.2 in Jammy 22.04
                          https://launchpad.net/ubuntu/jammy/+source/openssl
                          I guess you need to upgrade your Ubuntu.

                          mzimmersM Offline
                          mzimmersM Offline
                          mzimmers
                          wrote on last edited by
                          #26

                          @JoeCFD what output do you get when you run this command:

                          ls -l /usr/lib/x86_64-linux-gnu/libssl*
                          

                          And, since it appears that I have an older version of openssl, how do I go about removing the old version without disrupting the rest of my system?

                          JoeCFDJ 1 Reply Last reply
                          0
                          • mzimmersM mzimmers

                            @JoeCFD what output do you get when you run this command:

                            ls -l /usr/lib/x86_64-linux-gnu/libssl*
                            

                            And, since it appears that I have an older version of openssl, how do I go about removing the old version without disrupting the rest of my system?

                            JoeCFDJ Offline
                            JoeCFDJ Offline
                            JoeCFD
                            wrote on last edited by JoeCFD
                            #27

                            @mzimmers

                            -rw-r--r-- 1 root root  418464 Feb 17  2023 /usr/lib/x86_64-linux-gnu/libssl3.so
                            -rw-r--r-- 1 root root 1231268 Feb  6  2023 /usr/lib/x86_64-linux-gnu/libssl.a
                            lrwxrwxrwx 1 root root      11 Feb  6  2023 /usr/lib/x86_64-linux-gnu/libssl.so -> libssl.so.3
                            -rw-r--r-- 1 root root  598104 Feb  6  2023 /usr/lib/x86_64-linux-gnu/libssl.so.1.1
                            -rw-r--r-- 1 root root  667864 Feb  6  2023 /usr/lib/x86_64-linux-gnu/libssl.so.3
                            

                            my libssl.so is linked to libssl.so.3. Maybe try to upgrade your Ubuntu. I have the old version as well. If you can not get the new version with Ubuntu upgrade, try to install openssl with Qt installation tool. There you can install openssl 3.0.

                            mzimmersM 1 Reply Last reply
                            0
                            • JoeCFDJ JoeCFD

                              @mzimmers

                              -rw-r--r-- 1 root root  418464 Feb 17  2023 /usr/lib/x86_64-linux-gnu/libssl3.so
                              -rw-r--r-- 1 root root 1231268 Feb  6  2023 /usr/lib/x86_64-linux-gnu/libssl.a
                              lrwxrwxrwx 1 root root      11 Feb  6  2023 /usr/lib/x86_64-linux-gnu/libssl.so -> libssl.so.3
                              -rw-r--r-- 1 root root  598104 Feb  6  2023 /usr/lib/x86_64-linux-gnu/libssl.so.1.1
                              -rw-r--r-- 1 root root  667864 Feb  6  2023 /usr/lib/x86_64-linux-gnu/libssl.so.3
                              

                              my libssl.so is linked to libssl.so.3. Maybe try to upgrade your Ubuntu. I have the old version as well. If you can not get the new version with Ubuntu upgrade, try to install openssl with Qt installation tool. There you can install openssl 3.0.

                              mzimmersM Offline
                              mzimmersM Offline
                              mzimmers
                              wrote on last edited by
                              #28

                              @JoeCFD said in first build on Linux: OpenSSL issue:

                              Maybe try to upgrade your Ubuntu.

                              I'm currently running 22.04. I think I must have messed this up with one of my apt installs. That's why I was asking about uninstalling the old version. Removing openssl completely appears to be rather intrusive:

                              he following packages will be REMOVED:
                                apport apport-gtk apturl awscli bluez-cups ca-certificates cups cups-browsed
                                cups-core-drivers cups-daemon gnome-control-center gnome-online-accounts
                                google-chrome-stable hplip liblwp-protocol-https-perl libnet-dbus-perl
                                libwww-perl libxml-parser-perl libxml-twig-perl nautilus-share openssl
                                printer-driver-hpcups printer-driver-splix python3-apport python3-botocore
                                python3-certifi python3-cupshelpers python3-httplib2 python3-launchpadlib
                                python3-lazr.restfulclient python3-macaroonbakery python3-requests
                                python3-requests-unixsocket python3-s3transfer snapd
                                software-properties-common software-properties-gtk ssl-cert
                                system-config-printer system-config-printer-common
                                system-config-printer-udev ubuntu-desktop ubuntu-desktop-minimal
                                ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk update-manager
                                update-manager-core update-notifier update-notifier-common xorg xserver-xorg
                              0 upgraded, 0 newly installed, 51 to remove and 25 not upgraded.
                              After this operation, 590 MB disk space will be freed.
                              

                              So I don't want to do that.

                              JoeCFDJ 1 Reply Last reply
                              0
                              • mzimmersM mzimmers

                                @JoeCFD said in first build on Linux: OpenSSL issue:

                                Maybe try to upgrade your Ubuntu.

                                I'm currently running 22.04. I think I must have messed this up with one of my apt installs. That's why I was asking about uninstalling the old version. Removing openssl completely appears to be rather intrusive:

                                he following packages will be REMOVED:
                                  apport apport-gtk apturl awscli bluez-cups ca-certificates cups cups-browsed
                                  cups-core-drivers cups-daemon gnome-control-center gnome-online-accounts
                                  google-chrome-stable hplip liblwp-protocol-https-perl libnet-dbus-perl
                                  libwww-perl libxml-parser-perl libxml-twig-perl nautilus-share openssl
                                  printer-driver-hpcups printer-driver-splix python3-apport python3-botocore
                                  python3-certifi python3-cupshelpers python3-httplib2 python3-launchpadlib
                                  python3-lazr.restfulclient python3-macaroonbakery python3-requests
                                  python3-requests-unixsocket python3-s3transfer snapd
                                  software-properties-common software-properties-gtk ssl-cert
                                  system-config-printer system-config-printer-common
                                  system-config-printer-udev ubuntu-desktop ubuntu-desktop-minimal
                                  ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk update-manager
                                  update-manager-core update-notifier update-notifier-common xorg xserver-xorg
                                0 upgraded, 0 newly installed, 51 to remove and 25 not upgraded.
                                After this operation, 590 MB disk space will be freed.
                                

                                So I don't want to do that.

                                JoeCFDJ Offline
                                JoeCFDJ Offline
                                JoeCFD
                                wrote on last edited by JoeCFD
                                #29

                                @mzimmers Understand. It is weird that you can not upgrade libssl. The latest version in 22.04 is 3.0.2.
                                What is the output?
                                apt list openssl

                                mzimmersM 1 Reply Last reply
                                0
                                • JoeCFDJ JoeCFD

                                  @mzimmers Understand. It is weird that you can not upgrade libssl. The latest version in 22.04 is 3.0.2.
                                  What is the output?
                                  apt list openssl

                                  mzimmersM Offline
                                  mzimmersM Offline
                                  mzimmers
                                  wrote on last edited by
                                  #30

                                  @JoeCFD

                                  mzimmers@LinuxBoxZimmers:/usr/lib/x86_64-linux-gnu$ sudo apt list openssl
                                  Listing... Done
                                  openssl/focal-updates,focal-security,now 1.1.1f-1ubuntu2.20 amd64 [installed]
                                  openssl/focal-updates,focal-security 1.1.1f-1ubuntu2.20 i386
                                  mzimmers@LinuxBoxZimmers:/usr/lib/x86_64-linux-gnu$ 
                                  
                                  JoeCFDJ 1 Reply Last reply
                                  0
                                  • mzimmersM mzimmers

                                    @JoeCFD

                                    mzimmers@LinuxBoxZimmers:/usr/lib/x86_64-linux-gnu$ sudo apt list openssl
                                    Listing... Done
                                    openssl/focal-updates,focal-security,now 1.1.1f-1ubuntu2.20 amd64 [installed]
                                    openssl/focal-updates,focal-security 1.1.1f-1ubuntu2.20 i386
                                    mzimmers@LinuxBoxZimmers:/usr/lib/x86_64-linux-gnu$ 
                                    
                                    JoeCFDJ Offline
                                    JoeCFDJ Offline
                                    JoeCFD
                                    wrote on last edited by JoeCFD
                                    #31

                                    @mzimmers said in first build on Linux: OpenSSL issue:

                                    focal

                                    sudo is not needed. Focal is 20.04, not 22.04. Are you sure you installed 22.04? Could be the case that libssl 1.1 points to focal.

                                    mzimmersM 1 Reply Last reply
                                    1
                                    • JoeCFDJ JoeCFD

                                      @mzimmers said in first build on Linux: OpenSSL issue:

                                      focal

                                      sudo is not needed. Focal is 20.04, not 22.04. Are you sure you installed 22.04? Could be the case that libssl 1.1 points to focal.

                                      mzimmersM Offline
                                      mzimmersM Offline
                                      mzimmers
                                      wrote on last edited by mzimmers
                                      #32

                                      @JoeCFD oh, would you look at that...I do have 20.04 installed. Aargh. OK, let me try to upgrade, and I'll report back.

                                      EDIT:

                                      22.04 installed, and the error went away. Thanks to all who looked at this.

                                      1 Reply Last reply
                                      0
                                      • mzimmersM mzimmers has marked this topic as solved on

                                      • Login

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups
                                      • Search
                                      • Get Qt Extensions
                                      • Unsolved