Uploaded image for project: 'Qt License server'
  1. Qt License server
  2. QLS-1300

libqlicenseclient is not built with -fPIC on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 3.3
    • None
    • Asahi Fedora (arm64/aarch64), gcc 14.2.1, cip_api archive from 2024-09-19 5:20.
    • Linux/Other display system

    Description

      When trying to link libqlicenseclient.a into Squish's libsquishrunnerlib.so on arm64/aarch64 Linux, GCC is unhappy:

      Building /home/frosch/squish/8.0/qt5.15-qtlicd/lib/libsquishrunnerlib.so
      /usr/bin/ld: /home/frosch/squish/8.0/qt5.15-qtlicd/src/license//libsquishlicense.a(licenseproviderqls.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZN8SquishQt10QArrayData11shared_nullE@@Qt_5' which may bind externally can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: /home/frosch/squish/8.0/qt5.15-qtlicd/src/license//libsquishlicense.a(licenseproviderqls.o)(.text+0x116c): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `_ZN8SquishQt10QArrayData11shared_nullE@@Qt_5'
      /usr/bin/ld: final link failed: bad value
      collect2: error: ld returned 1 exit status
      

      (I cannot tell if this is specific to arm64.)

      Attachments

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

        Activity

          People

            arttu.tarkiainen Arttu Tarkiainen
            makummer Marcel Kummer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes