Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-568

Compilation issues trying to build from RPMs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JDG 7.1.0 GA
    • JDG 7.1.0 DR2
    • HotRod C++ client
    • None

      For the JDG 7.1.0 C++ client testing, I install the client RPM and the SRPM and then run the tests in the same manner as in JDG 7.0.0. With the DR1 build, this worked fine except for JDG-554. With DR2, I get compilation errors after making the fix needed in JDG-554.

      Updated: This is actually the initial compilation error I get after fixing JDG-554:

      [ 19%] Building CXX object CMakeFiles/events.dir/test/Events.cpp.o
      /usr/bin/c++   -DHR_PROTO_EXPORT=" " -I/usr/lib64/../include -I/artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/build/test/query_proto -I/artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/build -I/usr/lib/jvm/java-1.8.0/include -I/usr/lib/jvm/java-1.8.0/include/linux    -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11  -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -Wno-variadic-macros -Wno-error=shadow -Wno-error=unused-parameter -Wno-unused-parameter -o CMakeFiles/events.dir/test/Events.cpp.o -c /artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/test/Events.cpp
      In file included from /artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/test/Events.cpp:7:0:
      /usr/include/infinispan/hotrod/CacheClientListener.h:15:45: fatal error: hotrod/impl/transport/Transport.h: No such file or directory
       #include "hotrod/impl/transport/Transport.h"
                                                   ^
      compilation terminated.
      

      After seeing this error, I changed the the lines that added ${HOTROD_PREBUILT_LIB_DIR}/../include as an include directory to use ${CMAKE_CURRENT_SOURCE_DIR}/include, since the "impl" directory is in the source distribution and not the client distribution. (Is this correct?) This change fixed that issue, but then I ran into this error:

      [  5%] Building CXX object CMakeFiles/events.dir/test/Events.cpp.o
      /usr/bin/c++   -DHR_PROTO_EXPORT=" " -I/artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/include -I/artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/build/test/query_proto -I/artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/include/infinispan/hotrod -I/artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/build -I/artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/proto    -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11  -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -Wno-variadic-macros -Wno-error=shadow -Wno-error=unused-parameter -Wno-unused-parameter -o CMakeFiles/events.dir/test/Events.cpp.o -c /artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/test/Events.cpp
      In file included from /artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/include/infinispan/hotrod/RemoteCache.h:6:0,
                       from /artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/include/infinispan/hotrod/RemoteCacheManager.h:7,
                       from /artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/test/Events.cpp:2:
      /artifacts/jdg-cpp-client-JDG_7.1.0.DR2-BOTH/rhel7/include/infinispan/hotrod/RemoteCacheBase.h:16:22: fatal error: query.pb.h: No such file or directory
       #include "query.pb.h"
                            ^
      compilation terminated.
      

      This error is related to the machinery to compile protobuf files, but I haven't figured out what changed from DR1 to DR2. I have seen issues in the CMake file where the assumptions about locations are relative to HOTROD_PREBUILT_LIB_DIR which is probably no longer correct when the RPM installs to /usr/lib64. This also makes me question how this worked in DR1.

            vrigamon@redhat.com Vittorio Rigamonti
            rhn-support-afield Alan Field
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: