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

Qt OpcUA fails to build against latest Qt5.git in '5.12'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 5.12.5
    • 5.12.5
    • OpcUA
    • None
    • Linux/X11

    Description

      From build log:

      /install/mkspecs/linux-g++ ../../src/3rdparty/open62541/open62541.c -o .obj/open62541.o
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c: In function ‘UA_findDataType’:
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:5663:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
      agent:2019/08/19 08:50:35 build.go:215: for(size_t i = 0; i < UA_TYPES_COUNT; ++i) {
      agent:2019/08/19 08:50:35 build.go:215: ^
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:5663:5: note: use option -std=c99 or -std=gnu99 to compile your code
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c: In function ‘printNumber’:
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:5776:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
      agent:2019/08/19 08:50:35 build.go:215: for(size_t i = digits; i > 0; --i) {
      agent:2019/08/19 08:50:35 build.go:215: ^
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c: In function ‘fnv32’:
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:5944:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
      agent:2019/08/19 08:50:35 build.go:215: for(size_t i = 0; i < size; ++i) {
      agent:2019/08/19 08:50:35 build.go:215: ^
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c: In function ‘computeStrides’:
      agent:2019/08/19 08:50:35 build.go:215: ../../src/3rdparty/open62541/open62541.c:6137:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
      agent:2019/08/19 08:50:35 build.go:215: for(size_t i = 0; i < dims_count; ++i)

      Issue seems to be in recently added Linux SLES_12 (gcc-x86_64)

      Attachments

        Activity

          People

            fmeerkoetter Frank Meerkötter
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: