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

moc mangles some function names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Out of scope
    • Affects Version/s: 5.7.0
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      openSUSE Tumbleweed i686, Qt 5.7.0

      Description

      When building a Qt application on i686, moc causes:

      moc_iconapplet_FERWDM656PUOUJ.cpp:128:21: error: 'class IconApplet' has no member named 'open64'; did you mean 'open'?

      This is due to moc not defining _GNUC_ >= 2, so it emits code that does not match the header.

      To reproduce, just run

      moc -I/usr/include -D_FILE_OFFSET_BITS=64 <attachment> | grep open64

      on a i686 system with glibc.

      It works with

      moc -I/usr/include -D _GNUC_=6 -D_FILE_OFFSET_BITS=64 <attachment> | grep open64

        Attachments

        1. test.h
          0.1 kB
          Fabian Vogt
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            buddenha Oswald Buddenhagen
            Reporter:
            vogtinator Fabian Vogt
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes