Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1132

Build failing on MSYS/MinGW due to missing struct iovec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.1
    • 1.9.0
    • c++
    • Windows XP Professional 32-bit SP3, MSYS, MinGW GCC 4.5.1

    • build, msys, mingw

    Description

      Avro C++ fails to build on MSYS with MinGW GCC due to references to undeclared struct iovec:
      In file included from C:/workspace/avro-cpp/api/buffer/BufferReader.hh:22:0,
      from C:/workspace/avro-cpp/api/Reader.hh:30,
      from C:/workspace/avro-cpp/api/ResolverSchema.hh:28,
      from c:/workspace/avro-cpp/impl/ResolverSchema.cc:20:
      C:/workspace/avro-cpp/api/buffer/Buffer.hh: In function 'void avro::toIovec(BufferType&, std::vector<avro::iovec>&)':
      C:/workspace/avro-cpp/api/buffer/Buffer.hh:517:15: error: invalid use of incomplete type 'struct avro::iovec'
      C:/workspace/avro-cpp/api/buffer/Buffer.hh:511:57: error: forward declaration of 'struct avro::iovec'
      C:/workspace/avro-cpp/api/buffer/Buffer.hh:518:15: error: invalid use of incomplete type 'struct avro::iovec'
      C:/workspace/avro-cpp/api/buffer/Buffer.hh:511:57: error: forward declaration of 'struct avro::iovec'
      make[2]: *** [CMakeFiles/avrocpp_s.dir/impl/ResolverSchema.cc.obj] Error 1
      make[1]: *** [CMakeFiles/avrocpp_s.dir/all] Error 2
      make: *** [all] Error 2

      Attachments

        1. AVRO-1132.diff
          0.5 kB
          Laurent Moss

        Activity

          People

            lmoss Laurent Moss
            lmoss Laurent Moss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: