Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19801

Compile error: __thread (gcc 3.4.6 on RedHat enterprise 4)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.7.3
    • Core: Threads
    • None
    • RedHat Enterprise 4 with gcc 3.4.6

    Description

      NOTE: This is 4.8 snapshot but I can't select 4.8 from the list.

      linking ../../lib/libQtCore.so.4.8.0
      .obj/release-shared/qthread_unix.o(.text+0x46): In function `set_thread_data(QThreadData*)':
      : undefined reference to `___tls_get_addr'
      .obj/release-shared/qthread_unix.o(.text+0x1520): In function `QThreadData::current()':
      : undefined reference to `___tls_get_addr'
      .obj/release-shared/qthread_unix.o(.text+0x1614): In function `QThreadData::current()':
      : undefined reference to `___tls_get_addr'
      collect2: ld returned 1 exit status
      make[1]: *** [../../lib/libQtCore.so.4.8.0] Error 1
      make[1]: Leaving directory `/home/hj/qtlib/qt-qt/src/corelib'
      make: *** [sub-corelib-make_default-ordered] Error 2

      seems that my system does not have the TLS. I if remove the '#define HAVE_TLS' then it compiles.

      Any suggestions or is the RedHat 4 enterprise not longer supported?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            hjpriester Henk Jan Priester
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes