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

moc mangles some function names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 5.7.0
    • Build System
    • None
    • 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

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

        Activity

          People

            buddenha Oswald Buddenhagen
            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