Bug 277792

Summary: build failure in krossjava
Product: [Developer tools] bindings Reporter: tropikhajma <tropikhajma>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In: 4.7.1

Description tropikhajma 2011-07-14 21:18:27 UTC
Version:           unspecified (using Devel) 
OS:                Solaris

building kross-interpreters 4.6.90 with the Sun Studio12u1 compiler fails with the below error.
This is because the variable length arrays are not part of the C++ standard and are not supported by this compiler.

...
pkgbuild: "/home/test/packages/BUILD/kross-interpreters-4.6.90/java/krossjava/jvmvariant.h", line 125: Error: An integer constant expression is required within the array subscript operator.
pkgbuild: "/home/test/packages/BUILD/kross-interpreters-4.6.90/java/krossjava/jvmvariant.h", line 135: Error: An integer constant expression is required within the array subscript operator.
pkgbuild: 2 Error(s) detected.

I do not have a patch ATM

Reproducible: Always

Steps to Reproduce:
try to build it


Expected Results:  
builds ok
Comment 1 Pino Toscano 2011-07-26 12:39:25 UTC
Git commit 87916416852158b554d94d9f5ad86e513e892f7d by Pino Toscano.
Committed on 26/07/2011 at 14:34.
Pushed by pino into branch 'KDE/4.7'.

use QVarLengthArray instead of C99's variable length arrays

BUG: 277792
FIXED-IN: 4.7.1

M  +4    -2    java/krossjava/jvminterpreter.cpp
M  +6    -5    java/krossjava/jvmvariant.h

http://commits.kde.org/kross-interpreters/87916416852158b554d94d9f5ad86e513e892f7d