Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Undefined reference to `xxxxx@GLIBC_2.0'
Forum Updated to NodeBB v4.3 + New Features

Undefined reference to `xxxxx@GLIBC_2.0'

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
20 Posts 3 Posters 7.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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    What symbol is it ?

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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kashif
      wrote on last edited by
      #3

      Hi SGiast,

      Following are the symbols/references giving me exception:

      undefined reference to `fseek@GLIBC_2.0'
      undefined reference to `strcat@GLIBC_2.0'
      undefined reference to `malloc@GLIBC_2.0'
      undefined reference to `memset@GLIBC_2.0'
      undefined reference to `fopen@GLIBC_2.1'
      undefined reference to `memmove@GLIBC_2.0'
      undefined reference to `memcpy@GLIBC_2.0'
      undefined reference to `strcpy@GLIBC_2.0'
      undefined reference to `memcmp@GLIBC_2.0'
      undefined reference to `fwrite@GLIBC_2.0'
      undefined reference to `fclose@GLIBC_2.1'
      undefined reference to `pthread_mutex_lock@GLIBC_2.0'
      undefined reference to `pthread_self@GLIBC_2.0'
      undefined reference to `strncpy@GLIBC_2.0'
      undefined reference to `free@GLIBC_2.0'
      undefined reference to `pthread_mutex_init@GLIBC_2.0'
      undefined reference to `strchr@GLIBC_2.0'
      undefined reference to `remove@GLIBC_2.0'
      undefined reference to `pthread_mutex_destroy@GLIBC_2.0'
      undefined reference to `strlen@GLIBC_2.0'
      undefined reference to `strncat@GLIBC_2.0'
      undefined reference to `pthread_mutex_unlock@GLIBC_2.0'
      undefined reference to `fread@GLIBC_2.0'
      undefined reference to `ftell@GLIBC_2.0'
      

      Thanks

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

        Can you share your .pro file ?

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

        K 1 Reply Last reply
        0
        • SGaistS SGaist

          Can you share your .pro file ?

          K Offline
          K Offline
          Kashif
          wrote on last edited by
          #5

          Hi @SGaist ,

          I am unable to upload the file, giving me not enough privileges for this action.
          Alternately here are the contents of the file:

          TEMPLATE = app 
          #This is the (name+version) for final product
          #version date : 20171103
          TARGET = QR_EFT_01.00
          CONFIG += qtopia
          #CONFIG += qtopia debug
          CONFIG += gcc
          
          #LIBS += -lOemDecode -lrpc -lbluetooth -lytprinter -lcurl -lgps -lytlibs
          LIBS += -lrpc
          
          MODULES *= qtopiacomm
          # These are the source files that get built to create the application
          FORMS = 
          # These are the defines to control functionality in application during compilation
          #DEFINES += MAKE_CTLS += MAKE_TOPUP
          DEFINES += MAKE_EMV MAKE_SPDH DBGTRACE
          
          #QT += xml
          
          HEADERS = \
              gprs_connect.h \
              Sources/Common/Data/struct.h \
              Sources/Isc_OS/basictyp.h \
              Sources/Common/Txn_flow/transdef.h \
              Sources/Common/Data/appdata.h \
              Sources/Common/Data/defines.h \
              Sources/Common/Txn_flow/function.h \
              Sources/Common/Host/SPDH.H \
              Sources/IscSDK/utllib.h \
              Sources/IscSDK/stdint.h \
              Sources/Common/Host/host.h \
              Sources/Common/Txn_flow/validexp.h \
              Sources/IscSDK/skd.h \
              Sources/Common/Texts/msg.h \
              Sources/NucleusInterface/Profile/persistence.h \
              Sources/NucleusInterface/Profile/fileinit.h \
              Sources/Common/Data/comdata.h \
              Sources/Common/Data/TERMtab.h \
              Sources/Common/Data/tabutil.h \
              Sources/Common/Data/battab.h \
              Sources/Common/Txn_flow/app1.h \
              Sources/Common/Txn_flow/TxnFuncs.h \
              Sources/Common/Txn_flow/cvv2proc.h \
              Sources/Common/Data/tftab.h \
              Sources/Common/Utils/util2.h \
              Sources/Common/Txn_flow/MS_Flow/readCard.h \
              Sources/Common/Txn_flow/ICC_Flow/emvl3.h \
              Sources/Common/Host/hstmsg.h \
              Sources/Common/Texts/msgfunc.h \
              Sources/IscSDK/LibJrn/jrn.h
          
          SOURCES = \
              gprs_connect.cpp \
              main.cpp \
              Sources/Common/Txn_flow/funct2.cpp \
              Sources/Common/Data/appdata.c \
              Sources/IscSDK/utllib.c \
              Sources/Common/Txn_flow/validexp.c \
              Sources/Common/Host/spdh.cpp \
              Sources/Common/Host/reqspdh.c \
              Sources/Common/Host/rspspdh.c \
              Sources/Common/Data/comdata.c \
              Sources/NucleusInterface/Profile/persistence.c \
              Sources/Common/Data/TERMtab.c \
              Sources/Common/Data/tabutil.c \
              Sources/Common/Data/battab.c \
              Sources/Common/Txn_flow/app1.c \
              Sources/Common/Txn_flow/TxnFuncs.c \
              Sources/Common/Txn_flow/cvv2proc.c \
              Sources/Common/Data/tftab.c \
              Sources/Common/Txn_flow/MS_Flow/readCard.c \
              Sources/Common/Utils/util2.c \
              Sources/Common/Txn_flow/ICC_Flow/emvl3.c \
              Sources/Common/Host/hstmsg.c \
              Sources/Common/Texts/msgfunc.c \
              Sources/IscSDK/LibJrn/jrn.c
          
          LIBS += -L$$PWD/Sources/IscSDK/JrnLib -ljrn
          
          INCLUDEPATH += $$PWD/Sources/IscSDK/JrnLib
          DEPENDPATH += $$PWD/Sources/IscSDK/JrnLib
          
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Qtopia ?

            What distribution are you running on your target ?
            What version of Qt are you using ?

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

            K 1 Reply Last reply
            0
            • SGaistS SGaist

              Qtopia ?

              What distribution are you running on your target ?
              What version of Qt are you using ?

              K Offline
              K Offline
              Kashif
              wrote on last edited by Kashif
              #7

              Hi @SGaist
              Sorry for late reply due to bad health.
              The target is Debian Linux (Ver 7.8) and QT 4.6 / QT Extended 4.4

              Thanks

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

                Serious question: are you locked to those old and really outdated software ?

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

                K 1 Reply Last reply
                0
                • SGaistS SGaist

                  Serious question: are you locked to those old and really outdated software ?

                  K Offline
                  K Offline
                  Kashif
                  wrote on last edited by
                  #9

                  Hi @SGaist,
                  The answer is yes, bcoz the end target is a debit card processing hardware.

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

                    How did you setup the cross-compiler on Windows ?

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

                    K 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      How did you setup the cross-compiler on Windows ?

                      K Offline
                      K Offline
                      Kashif
                      wrote on last edited by Kashif
                      #11

                      Hi @SGaist,
                      The cross compiler is auto configured with the licensed SDK+IDE by the hardware vendor we just need to run the setup file and produce activation key.
                      Please note that the hardware (SDK configured on windows) is different then the one whose SDK is configured on Debian Linux and formally known as Hypercom T42 series, I am unable attaching data sheet for your reference, but you can find it with this name:
                      "Equinox T4220 Data Sheet.pdf"

                      Thanks

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

                        What version of Debian are you using ?

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

                        K 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          What version of Debian are you using ?

                          K Offline
                          K Offline
                          Kashif
                          wrote on last edited by
                          #13

                          Hi @SGaist,
                          I have already replied, regardless please here is the information again.

                          The target is Debian Linux (Ver 7.8) and QT 4.6 / QT Extended 4.4

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

                            Sorry, I wanted to check if it was what is running on your target device.

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

                            K 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Sorry, I wanted to check if it was what is running on your target device.

                              K Offline
                              K Offline
                              Kashif
                              wrote on last edited by
                              #15

                              Hi @SGaist,

                              Target device technical specifications have only following information:

                              Linux Kernel 2.6.32
                              QT 4.8
                              QT Extended 4.4
                              

                              Thanks

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

                                Just realised, did you add LIBS += -lglib-2.0 to your project file ?

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

                                K 1 Reply Last reply
                                1
                                • SGaistS SGaist

                                  Just realised, did you add LIBS += -lglib-2.0 to your project file ?

                                  K Offline
                                  K Offline
                                  Kashif
                                  wrote on last edited by
                                  #17

                                  Hi @SGaist,

                                  No I didn't, let me add and check if it solves the issue. Will let you know the results shortly.

                                  Thanks

                                  K 1 Reply Last reply
                                  0
                                  • K Kashif

                                    Hi @SGaist,

                                    No I didn't, let me add and check if it solves the issue. Will let you know the results shortly.

                                    Thanks

                                    K Offline
                                    K Offline
                                    Kashif
                                    wrote on last edited by
                                    #18

                                    Hi @SGaist,

                                    I added glib-2.0 but still having same issue. Below is the link of file contains compile results as I am unable to upload the file here.
                                    https://drive.google.com/open?id=18Tw9m4tZiTMbyklIvWHll8H724gGRWel

                                    Thanks

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • K Kashif

                                      Hi @SGaist,

                                      I added glib-2.0 but still having same issue. Below is the link of file contains compile results as I am unable to upload the file here.
                                      https://drive.google.com/open?id=18Tw9m4tZiTMbyklIvWHll8H724gGRWel

                                      Thanks

                                      jsulmJ Offline
                                      jsulmJ Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #19

                                      @Kashif Did you rerun qmake and rebuild?

                                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      K 1 Reply Last reply
                                      1
                                      • jsulmJ jsulm

                                        @Kashif Did you rerun qmake and rebuild?

                                        K Offline
                                        K Offline
                                        Kashif
                                        wrote on last edited by
                                        #20

                                        Hi @jsulm,
                                        As i am using cross compiler, so I am using the build script provided by the device vendor. The build script did not actually rebuild the complete project until there is a change in the pro file or the main header file referenced everywhere. You can review the build and make scripts from following link:
                                        https://drive.google.com/open?id=10MT8eTF7SFAR3zoSqFLbtKZGzOghfH4I

                                        Thanks

                                        1 Reply Last reply
                                        0

                                        • Login

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