Results 1 to 3 of 3

Thread: Mysterious QSslSocket error causes installation to fail on Ubuntu 64-bit.

  1. #1
    Join Date
    Mar 2010
    Posts
    3
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Mysterious QSslSocket error causes installation to fail on Ubuntu 64-bit.

    Qt Code:
    1. make[1]: Entering directory `/opt/qtsdk-2010.02/qt/src/network'
    2. rm -f libQtNetwork.so.4.6.2 libQtNetwork.so libQtNetwork.so.4 libQtNetwork.so.4.6
    3. g++ -m64 -Wl,-rpath-link,/opt/qtsdk-2010.02/qt/lib -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.6.2/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.6.2/lib -shared -Wl,-soname,libQtNetwork.so.4 -o libQtNetwork.so.4.6.2 .obj/release-shared/qftp.o .obj/release-shared/qhttp.o .obj/release-shared/qhttpnetworkheader.o .obj/release-shared/qhttpnetworkrequest.o .obj/release-shared/qhttpnetworkreply.o .obj/release-shared/qhttpnetworkconnection.o .obj/release-shared/qhttpnetworkconnectionchannel.o .obj/release-shared/qfilenetworkreply.o .obj/release-shared/qnetworkaccessmanager.o .obj/release-shared/qnetworkaccesscache.o .obj/release-shared/qnetworkaccessbackend.o .obj/release-shared/qnetworkaccessdatabackend.o .obj/release-shared/qnetworkaccessdebugpipebackend.o .obj/release-shared/qnetworkaccessfilebackend.o .obj/release-shared/qnetworkaccesscachebackend.o .obj/release-shared/qnetworkaccessftpbackend.o .obj/release-shared/qnetworkaccesshttpbackend.o .obj/release-shared/qnetworkcookie.o .obj/release-shared/qnetworkcookiejar.o .obj/release-shared/qnetworkrequest.o .obj/release-shared/qnetworkreply.o .obj/release-shared/qnetworkreplyimpl.o .obj/release-shared/qabstractnetworkcache.o .obj/release-shared/qnetworkdiskcache.o .obj/release-shared/qauthenticator.o .obj/release-shared/qhostaddress.o .obj/release-shared/qhostinfo.o .obj/release-shared/qurlinfo.o .obj/release-shared/qnetworkproxy.o .obj/release-shared/qnetworkinterface.o .obj/release-shared/qhostinfo_unix.o .obj/release-shared/qnetworkinterface_unix.o .obj/release-shared/qnetworkproxy_generic.o .obj/release-shared/qabstractsocketengine.o .obj/release-shared/qnativesocketengine.o .obj/release-shared/qhttpsocketengine.o .obj/release-shared/qsocks5socketengine.o .obj/release-shared/qabstractsocket.o .obj/release-shared/qtcpsocket.o .obj/release-shared/qudpsocket.o .obj/release-shared/qtcpserver.o .obj/release-shared/qlocalsocket.o .obj/release-shared/qlocalserver.o .obj/release-shared/qnativesocketengine_unix.o .obj/release-shared/qlocalsocket_unix.o .obj/release-shared/qlocalserver_unix.o .obj/release-shared/moc_qhttpnetworkreply_p.o .obj/release-shared/moc_qnetworkaccesscache_p.o .obj/release-shared/moc_qnetworkaccessbackend_p.o .obj/release-shared/moc_qnetworkaccessdebugpipebackend_p.o .obj/release-shared/moc_qnetworkaccesshttpbackend_p.o .obj/release-shared/moc_qnetworkaccessfilebackend_p.o .obj/release-shared/moc_qnetworkaccessftpbackend_p.o .obj/release-shared/moc_qnetworkcookiejar.o .obj/release-shared/moc_qnetworkreply.o .obj/release-shared/moc_qabstractnetworkcache.o .obj/release-shared/moc_qnetworkdiskcache.o .obj/release-shared/moc_qhostinfo_p.o .obj/release-shared/moc_qabstractsocketengine_p.o .obj/release-shared/moc_qnativesocketengine_p.o .obj/release-shared/moc_qhttpsocketengine_p.o .obj/release-shared/moc_qsocks5socketengine_p.o .obj/release-shared/moc_qtcpsocket.o .obj/release-shared/moc_qudpsocket.o -L/opt/qtsdk-2010.02/qt/lib -lQtCore -L/opt/qtsdk-2010.02/qt/lib -lpthread -lz
    4. .obj/release-shared/qhttp.o: In function `qobject_cast<QSslSocket*>':
    5. /opt/qtsdk-2010.02/qt/src/network/../../include/QtCore/qobject.h:455: undefined reference to `QSslSocket::staticMetaObject'
    6. /opt/qtsdk-2010.02/qt/src/network/../../include/QtCore/qobject.h:455: undefined reference to `QSslSocket::staticMetaObject'
    7. .obj/release-shared/qhttp.o: In function `QHttpPrivate::setSock(QTcpSocket*)':
    8. /opt/qtsdk-2010.02/qt/src/network/access/qhttp.cpp:3103: undefined reference to `QSslSocket::supportsSsl()'
    9. /opt/qtsdk-2010.02/qt/src/network/access/qhttp.cpp:3104: undefined reference to `QSslSocket::QSslSocket(QObject*)'
    10. .obj/release-shared/qhttp.o: In function `qobject_cast<QSslSocket*>':
    11. /opt/qtsdk-2010.02/qt/src/network/../../include/QtCore/qobject.h:455: undefined reference to `QSslSocket::staticMetaObject'
    12. .obj/release-shared/qhttp.o: In function `QHttpPrivate::postMoreData()':
    13. /opt/qtsdk-2010.02/qt/src/network/access/qhttp.cpp:2697: undefined reference to `QSslSocket::encryptedBytesToWrite() const'
    14. .obj/release-shared/qhttp.o: In function `qobject_cast<QSslSocket*>':
    15. /opt/qtsdk-2010.02/qt/src/network/../../include/QtCore/qobject.h:455: undefined reference to `QSslSocket::staticMetaObject'
    16. .obj/release-shared/qhttp.o: In function `QHttpPrivate::_q_slotSendRequest()':
    17. /opt/qtsdk-2010.02/qt/src/network/access/qhttp.cpp:2424: undefined reference to `QSslSocket::isEncrypted() const'
    18. /opt/qtsdk-2010.02/qt/src/network/access/qhttp.cpp:2492: undefined reference to `QSslSocket::isEncrypted() const'
    19. /opt/qtsdk-2010.02/qt/src/network/access/qhttp.cpp:2505: undefined reference to `QSslSocket::connectToHostEncrypted(QString const&, unsigned short, QFlags<QIODevice::OpenModeFlag>)'
    20. .obj/release-shared/qhttp.o: In function `QHttp::ignoreSslErrors()':
    21. /opt/qtsdk-2010.02/qt/src/network/access/qhttp.cpp:3147: undefined reference to `QSslSocket::ignoreSslErrors()'
    22. .obj/release-shared/qhttpnetworkreply.o: In function `QHttpNetworkReply::sslConfiguration() const':
    23. /opt/qtsdk-2010.02/qt/src/network/access/qhttpnetworkreply.cpp:780: undefined reference to `QSslConfiguration::QSslConfiguration()'
    24. .obj/release-shared/qhttpnetworkconnection.o: In function `QHttpNetworkConnection::ignoreSslErrors(int)':
    25. /opt/qtsdk-2010.02/qt/src/network/access/qhttpnetworkconnection.cpp:893: undefined reference to `QSslSocket::ignoreSslErrors()'
    26. /opt/qtsdk-2010.02/qt/src/network/access/qhttpnetworkconnection.cpp:888: undefined reference to `QSslSocket::ignoreSslErrors()'
    27. .obj/release-shared/qhttpnetworkconnection.o: In function `QHttpNetworkConnection::setSslConfiguration(QSslConfiguration const&)':
    28. /opt/qtsdk-2010.02/qt/src/network/access/qhttpnetworkconnection.cpp:877: undefined reference to `QSslSocket::setSslConfiguration(QSslConfiguration const&)'
    29. .obj/release-shared/qhttpnetworkconnection.o: In function `QHttpNetworkConnectionPrivate::sslConfiguration(QHttpNetworkReply const&) const':
    30. /opt/qtsdk-2010.02/qt/src/network/access/qhttpnetworkconnection.cpp:866: undefined reference to `QSslConfiguration::QSslConfiguration()'
    31. /opt/qtsdk-2010.02/qt/src/network/access/qhttpnetworkconnection.cpp:865: undefined reference to `QSslSocket::sslConfiguration() const'
    32.  
    33. ...
    34.  
    35. .obj/release-shared/qabstractsocket.o: In function `QAbstractSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlags<QIODevice::OpenModeFlag>)':
    36. /opt/qtsdk-2010.02/qt/src/network/socket/qabstractsocket.cpp:1546: undefined reference to `QSslSocket::setSocketDescriptor(int, QAbstractSocket::SocketState, QFlags<QIODevice::OpenModeFlag>)'
    37. .obj/release-shared/qabstractsocket.o: In function `qobject_cast<QSslSocket*>':
    38. /opt/qtsdk-2010.02/qt/src/network/../../include/QtCore/qobject.h:455: undefined reference to `QSslSocket::staticMetaObject'
    39. .obj/release-shared/qabstractsocket.o: In function `QAbstractSocket::waitForConnected(int)':
    40. /opt/qtsdk-2010.02/qt/src/network/socket/qabstractsocket.cpp:1708: undefined reference to `QSslSocket::waitForConnected(int)'
    41. .obj/release-shared/qabstractsocket.o: In function `qobject_cast<QSslSocket*>':
    42. /opt/qtsdk-2010.02/qt/src/network/../../include/QtCore/qobject.h:455: undefined reference to `QSslSocket::staticMetaObject'
    43. /opt/qtsdk-2010.02/qt/src/network/../../include/QtCore/qobject.h:455: undefined reference to `QSslSocket::staticMetaObject'
    44. /opt/qtsdk-2010.02/qt/src/network/../../include/QtCore/qobject.h:455: undefined reference to `QSslSocket::staticMetaObject'
    45. .obj/release-shared/qabstractsocket.o: In function `QAbstractSocket::waitForDisconnected(int)':
    46. /opt/qtsdk-2010.02/qt/src/network/socket/qabstractsocket.cpp:1926: undefined reference to `QSslSocket::waitForDisconnected(int)'
    47. .obj/release-shared/qabstractsocket.o: In function `QAbstractSocket::setReadBufferSize(long long)':
    48. /opt/qtsdk-2010.02/qt/src/network/socket/qabstractsocket.cpp:2478: undefined reference to `QSslSocket::setReadBufferSize(long long)'
    49. .obj/release-shared/qabstractsocket.o: In function `QAbstractSocket::setSocketOption(QAbstractSocket::SocketOption, QVariant const&)':
    50. /opt/qtsdk-2010.02/qt/src/network/socket/qabstractsocket.cpp:1605: undefined reference to `QSslSocket::setSocketOption(QAbstractSocket::SocketOption, QVariant const&)'
    51. .obj/release-shared/qabstractsocket.o: In function `QAbstractSocket::abort()':
    52. /opt/qtsdk-2010.02/qt/src/network/socket/qabstractsocket.cpp:1992: undefined reference to `QSslSocket::abort()'
    53. .obj/release-shared/qabstractsocket.o: In function `QAbstractSocket::flush()':
    54. /opt/qtsdk-2010.02/qt/src/network/socket/qabstractsocket.cpp:2053: undefined reference to `QSslSocket::flush()'
    55. collect2: ld returned 1 exit status
    56. make[1]: *** [../../lib/libQtNetwork.so.4.6.2] Error 1
    57. make[1]: Leaving directory `/opt/qtsdk-2010.02/qt/src/network'
    58. make: *** [sub-network-make_default-ordered] Error 2
    To copy to clipboard, switch view to plain text mode 

    Been trying to get around this error for a while now. I did some heavy digging and some sources said it involves having a conflicting version of Qt already on board the system. Since I'd been fooling around with Qt installations for a while, I did the next quickest thing and deleted my Ubuntu partition for a fresh installation. Did the first round of updates on SPM, restarted and attempted the Qt installation again and, lo and behold, error is back. There's no reason to suspect I have a Qt version lying around anymore so now I'm completely out of ideas.

    Error happens during "sudo make". "sudo ./configure" works quickly and properly. I am following these instructions http://qt.nokia.com/doc/4.6/install-x11.html.

  2. #2
    Join Date
    Mar 2010
    Posts
    3
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mysterious QSslSocket error causes installation to fail on Ubuntu 64-bit.

    Fixed the issue. Turns out this error and all subsequent errors are due to missing libraries that prevent elements of the program from compiling. In this case, QSslSocket relies on the OpenSSL library, which can be installed with:

    sudo apt-get install libssl-dev

    If relaunching the make process immediately after doesn't get rid of the error, you have to reconfigure the installation.

    make confclean
    ./configure

    I've encountered several errors like this afterwards that I've also gotten rid of by installing dev libraries. I will post the list of all dev libraries necessary when I complete the installation.
    Last edited by spitfirejunky; 31st March 2010 at 08:09.

  3. The following user says thank you to spitfirejunky for this useful post:

    Momergil (10th December 2015)

  4. #3
    Join Date
    Mar 2010
    Posts
    3
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mysterious QSslSocket error causes installation to fail on Ubuntu 64-bit.

    I finally completed the library. For those of you with a clean Ubuntu partition, installing the following libraries will allow this installation to work flawlessly.

    build-essential
    libglib2.0-dev (you might have to create symlinks for headers)
    libgtk2.0-dev
    libgnomeui-dev (not sure about this one but I was so far into the compilation that I put it in for safety)
    libSM-dev
    libxrender-dev
    libfontconfig1-dev
    libxext-dev
    libgl-dev (this is a virtual library, the libglu-dev installation takes care of this one automatically - if not, just install the relevant ones)
    libglu-dev
    libssl-dev
    xorg-dev
    libgst-dev (you might have to create symlinks for headers)
    libgstreamer0.10-dev (you might have to create symlinks for headers)
    libgstreamer-plugins-base0.10-dev

    Depending on your luck you may or may not have to create symlinks to get rid of errors involving header files not being found. I used the following:

    sudo ln -s /usr/include/gstreamer-0.10/gst /usr/include/gst

    sudo ln -s /usr/include/glib-2.0/* /usr/include/

    sudo ln -s /usr/lib/glib-2.0/include/* /usr/include/

    sudo ln -s /usr/include/libxml2/libxml /usr/include/libxml

    The idea is to allow the make file to find the header files in the erroneous locations. You can fix the errors by modifying the make file but this is a lot less stressful and easy to reverse.

    All the best.

  5. The following 2 users say thank you to spitfirejunky for this useful post:

    canislupax (23rd September 2010), Momergil (10th December 2015)

Similar Threads

  1. Install opencv on ubuntu error, please help
    By cooper in forum General Programming
    Replies: 2
    Last Post: 16th July 2009, 12:46
  2. Replies: 6
    Last Post: 30th August 2008, 13:01
  3. Qt3 Installation on Ubuntu 7.04
    By jflowers in forum Installation and Deployment
    Replies: 1
    Last Post: 16th January 2008, 19:20
  4. Error after trying to run project in UBUNTU
    By sincnarf in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2007, 05:29
  5. Unsolved ubuntu installation of qt problem
    By sincnarf in forum Installation and Deployment
    Replies: 1
    Last Post: 30th September 2007, 09:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.