Bug 277792 - build failure in krossjava
Summary: build failure in krossjava
Status: RESOLVED FIXED
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-14 21:18 UTC by tropikhajma
Modified: 2011-07-26 12:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.7.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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