Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8279370

jdk.jpackage/share/native/applauncher/JvmLauncher.cpp fails to build with GCC 6.3.0

XMLWordPrintable

    • b06

        Happens after JDK-8274856, seems like a missing #include.

        * For target support_native_jdk.jpackage_libjpackageapplauncheraux_JvmLauncher.o:
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp: In member function 'int {anonymous}::JliLaunchData::initJvmlLauncherData(JvmlLauncherData*) const':
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:289:54: error: expected primary-expression before ',' token
                                     offsetof(JvmlLauncherData, jliLaunchArgv), curPtr);
                                                              ^
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:289:56: error: 'jliLaunchArgv' was not declared in this scope
                                     offsetof(JvmlLauncherData, jliLaunchArgv), curPtr);
                                                                ^~~~~~~~~~~~~
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:289:69: error: 'offsetof' was not declared in this scope
                                     offsetof(JvmlLauncherData, jliLaunchArgv), curPtr);
                                                                             ^
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:300:54: error: expected primary-expression before ',' token
                                     offsetof(JvmlLauncherData, envVarNames), curPtr);
                                                              ^
        src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp:310:54: error: expected primary-expression before ',' token
                                     offsetof(JvmlLauncherData, envVarValues), curPtr);
           ... (rest of output omitted)

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: