Bug 161851 - Kdesupport from svn - 63 errors
Summary: Kdesupport from svn - 63 errors
Status: RESOLVED WORKSFORME
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-09 17:12 UTC by Piotr Krzysztof Soboń
Modified: 2008-06-02 16:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Krzysztof Soboń 2008-05-09 17:12:17 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          make 3.81-4 
OS:                Linux

When type cmakekde for compile kdesupport i have 63 errors.

Linking CXX executable peranalyzerxml
[ 83%] Built target peranalyzerxml
Scanning dependencies of target perfieldxml
----------
1. ERROR in xsdparser/xsdparser.java (at line 81)
        List<Class> classes = new ArrayList<Class>();
        ^^^^
The type List is not generic; it cannot be parameterized with arguments <Class>
----------
2. ERROR in xsdparser/xsdparser.java (at line 81)
        List<Class> classes = new ArrayList<Class>();
             ^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
3. ERROR in xsdparser/xsdparser.java (at line 81)
        List<Class> classes = new ArrayList<Class>();
                                  ^^^^^^^^^
The type ArrayList is not generic; it cannot be parameterized with arguments <Class>
----------
4. ERROR in xsdparser/xsdparser.java (at line 81)
        List<Class> classes = new ArrayList<Class>();
                                            ^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
5. ERROR in xsdparser/xsdparser.java (at line 86)
        classes.addAll(c.getClasses());
                         ^^^^^^^^^^
The method getClasses() is undefined for the type Class
----------
6. ERROR in xsdparser/xsdparser.java (at line 115)
        for (Class c : classes) {
             ^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
7. ERROR in xsdparser/xsdparser.java (at line 183)
        c.atts.put(aname, atype);
        ^^^^^^
c.atts cannot be resolved or is not a field
----------
8. ERROR in xsdparser/xsdparser.java (at line 225)
        part.seqtype = (min == 1 && max == 1) ? SequencePart.Type.SINGLE
        ^^^^^^^^^^^^
part.seqtype cannot be resolved or is not a field
----------
9. ERROR in xsdparser/xsdparser.java (at line 225)
        part.seqtype = (min == 1 && max == 1) ? SequencePart.Type.SINGLE
                                                ^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
10. ERROR in xsdparser/xsdparser.java (at line 226)
        : SequencePart.Type.LIST;
          ^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
11. ERROR in xsdparser/xsdparser.java (at line 230)
        c.sequence.add(part);
        ^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
12. ERROR in xsdparser/xsdparser.java (at line 238)
        c.sequence.add(part);
        ^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
13. ERROR in xsdparser/xsdparser.java (at line 271)
        for (Entry<String, String> e : c.atts.entrySet()) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
14. ERROR in xsdparser/xsdparser.java (at line 271)
        for (Entry<String, String> e : c.atts.entrySet()) {
             ^^^^^
The type Map.Entry is not generic; it cannot be parameterized with arguments <String, String>
----------
15. ERROR in xsdparser/xsdparser.java (at line 271)
        for (Entry<String, String> e : c.atts.entrySet()) {
                   ^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
16. ERROR in xsdparser/xsdparser.java (at line 271)
        for (Entry<String, String> e : c.atts.entrySet()) {
                                       ^^^^^^
c.atts cannot be resolved or is not a field
----------
17. ERROR in xsdparser/xsdparser.java (at line 274)
        for (SequencePart part : c.sequence) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
18. ERROR in xsdparser/xsdparser.java (at line 274)
        for (SequencePart part : c.sequence) {
                                 ^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
19. ERROR in xsdparser/xsdparser.java (at line 275)
        if (part.seqtype == SequencePart.Type.SINGLE) {
            ^^^^^^^^^^^^
part.seqtype cannot be resolved or is not a field
----------
20. ERROR in xsdparser/xsdparser.java (at line 275)
        if (part.seqtype == SequencePart.Type.SINGLE) {
                            ^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
21. ERROR in xsdparser/xsdparser.java (at line 288)
        for (SequencePart part : c.sequence) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
22. ERROR in xsdparser/xsdparser.java (at line 288)
        for (SequencePart part : c.sequence) {
                                 ^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
23. ERROR in xsdparser/xsdparser.java (at line 296)
        for (String name : c.atts.keySet()) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
24. ERROR in xsdparser/xsdparser.java (at line 296)
        for (String name : c.atts.keySet()) {
                           ^^^^^^
c.atts cannot be resolved or is not a field
----------
25. ERROR in xsdparser/xsdparser.java (at line 300)
        if (c.sequence.size() > 0) {
            ^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
26. ERROR in xsdparser/xsdparser.java (at line 304)
        for (SequencePart part : c.sequence) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
27. ERROR in xsdparser/xsdparser.java (at line 304)
        for (SequencePart part : c.sequence) {
                                 ^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
28. ERROR in xsdparser/xsdparser.java (at line 305)
        if (part.seqtype == SequencePart.Type.SINGLE) {
            ^^^^^^^^^^^^
part.seqtype cannot be resolved or is not a field
----------
29. ERROR in xsdparser/xsdparser.java (at line 305)
        if (part.seqtype == SequencePart.Type.SINGLE) {
                            ^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
30. ERROR in xsdparser/xsdparser.java (at line 319)
        if (c.sequence.size() > 0) {
            ^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
31. ERROR in xsdparser/xsdparser.java (at line 327)
        for (Entry<String, String> e : c.atts.entrySet()) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
32. ERROR in xsdparser/xsdparser.java (at line 327)
        for (Entry<String, String> e : c.atts.entrySet()) {
             ^^^^^
The type Map.Entry is not generic; it cannot be parameterized with arguments <String, String>
----------
33. ERROR in xsdparser/xsdparser.java (at line 327)
        for (Entry<String, String> e : c.atts.entrySet()) {
                   ^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
34. ERROR in xsdparser/xsdparser.java (at line 327)
        for (Entry<String, String> e : c.atts.entrySet()) {
                                       ^^^^^^
c.atts cannot be resolved or is not a field
----------
35. ERROR in xsdparser/xsdparser.java (at line 345)
        for (String name : c.atts.keySet()) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
36. ERROR in xsdparser/xsdparser.java (at line 345)
        for (String name : c.atts.keySet()) {
                           ^^^^^^
c.atts cannot be resolved or is not a field
----------
37. ERROR in xsdparser/xsdparser.java (at line 350)
        for (SequencePart part : c.sequence) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
38. ERROR in xsdparser/xsdparser.java (at line 350)
        for (SequencePart part : c.sequence) {
                                 ^^^^^^^^^^
c.sequence cannot be resolved or is not a field
----------
39. ERROR in xsdparser/xsdparser.java (at line 351)
        if (part.seqtype == SequencePart.Type.SINGLE) {
            ^^^^^^^^^^^^
part.seqtype cannot be resolved or is not a field
----------
40. ERROR in xsdparser/xsdparser.java (at line 351)
        if (part.seqtype == SequencePart.Type.SINGLE) {
                            ^^^^^^^^^^^^^^^^^
SequencePart.Type cannot be resolved
----------
41. ERROR in xsdparser/xsdparser.java (at line 374)
        List<SequencePart> sequence = new ArrayList<SequencePart>();
        ^^^^
The type List is not generic; it cannot be parameterized with arguments <SequencePart>
----------
42. ERROR in xsdparser/xsdparser.java (at line 374)
        List<SequencePart> sequence = new ArrayList<SequencePart>();
             ^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
43. ERROR in xsdparser/xsdparser.java (at line 374)
        List<SequencePart> sequence = new ArrayList<SequencePart>();
                                          ^^^^^^^^^
The type ArrayList is not generic; it cannot be parameterized with arguments <SequencePart>
----------
44. ERROR in xsdparser/xsdparser.java (at line 374)
        List<SequencePart> sequence = new ArrayList<SequencePart>();
                                                    ^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
45. ERROR in xsdparser/xsdparser.java (at line 376)
        Map<String, String> atts = new HashMap<String, String>();
        ^^^
The type Map is not generic; it cannot be parameterized with arguments <String, String>
----------
46. ERROR in xsdparser/xsdparser.java (at line 376)
        Map<String, String> atts = new HashMap<String, String>();
            ^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
47. ERROR in xsdparser/xsdparser.java (at line 376)
        Map<String, String> atts = new HashMap<String, String>();
                                       ^^^^^^^
The type HashMap is not generic; it cannot be parameterized with arguments <String, String>
----------
48. ERROR in xsdparser/xsdparser.java (at line 376)
        Map<String, String> atts = new HashMap<String, String>();
                                               ^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
49. ERROR in xsdparser/xsdparser.java (at line 378)
        List<Class> getClasses() {
        ^^^^
The type List is not generic; it cannot be parameterized with arguments <Class>
----------
50. ERROR in xsdparser/xsdparser.java (at line 378)
        List<Class> getClasses() {
             ^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
51. ERROR in xsdparser/xsdparser.java (at line 379)
        List<Class> classes = new ArrayList<Class>();
        ^^^^
The type List is not generic; it cannot be parameterized with arguments <Class>
----------
52. ERROR in xsdparser/xsdparser.java (at line 379)
        List<Class> classes = new ArrayList<Class>();
             ^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
53. ERROR in xsdparser/xsdparser.java (at line 379)
        List<Class> classes = new ArrayList<Class>();
                                  ^^^^^^^^^
The type ArrayList is not generic; it cannot be parameterized with arguments <Class>
----------
54. ERROR in xsdparser/xsdparser.java (at line 379)
        List<Class> classes = new ArrayList<Class>();
                                            ^^^^^
Syntax error, parameterized types are only available if source level is 5.0
----------
55. ERROR in xsdparser/xsdparser.java (at line 380)
        for (SequencePart part : sequence) {
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error, 'for each' statements are only available if source level is 5.0
----------
56. ERROR in xsdparser/xsdparser.java (at line 380)
        for (SequencePart part : sequence) {
                                 ^^^^^^^^
sequence cannot be resolved
----------
57. ERROR in xsdparser/xsdparser.java (at line 383)
        classes.addAll(part.element.getClasses());
                                    ^^^^^^^^^^
The method getClasses() is undefined for the type Class
----------
58. WARNING in xsdparser/xsdparser.java (at line 395)
        enum Type {
        ^^^^
'enum' should not be used as an identifier, since it is a reserved keyword from source level 5.0 on
----------
59. ERROR in xsdparser/xsdparser.java (at line 395)
        enum Type {
        ^^^^
enum cannot be resolved to a type
----------
60. ERROR in xsdparser/xsdparser.java (at line 395)
        enum Type {
             ^^^^
Syntax error, insert ";" to complete FieldDeclaration
----------
61. ERROR in xsdparser/xsdparser.java (at line 396)
        SINGLE, LIST, SET
              ^
Syntax error on token ",", delete this token
----------
62. ERROR in xsdparser/xsdparser.java (at line 396)
        SINGLE, LIST, SET
                      ^^^
Syntax error, insert ";" to complete BlockStatements
----------
63. ERROR in xsdparser/xsdparser.java (at line 399)
        Type seqtype;
        ^^^^
Type cannot be resolved to a type
----------
63 problems (62 errors, 1 warning)make[2]: *** [strigi/src/xsd/metadataproperties.cpp] Błąd 255
make[1]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/all] Błąd 2
make[1]: *** Oczekiwanie na niezakończone zadania....
[ 83%] Building CXX object strigi/src/xmlindexer/CMakeFiles/perfieldxml.dir/perfieldxml.o
[ 83%] Building CXX object strigi/src/xmlindexer/CMakeFiles/perfieldxml.dir/xmlindexwriter.o
[ 83%] Building CXX object strigi/src/xmlindexer/CMakeFiles/perfieldxml.dir/tagmapping.o
Linking CXX executable perfieldxml
[ 83%] Built target perfieldxml
make: *** [all] Błąd 2

And this is my configuration:

-- Found Qt-Version 4.4.0 (using /home/kde-devel/qt-copy/bin/qmake)
-- Found Automoc4: /home/kde-devel/kde/build/KDE/kdesupport/automoc/automoc4
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ xsltproc
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ MySQL Server: Database server <http://www.mysql.com>
Akonadi server requires the mysqld binary
-----------------------------------------------------------------------------

-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found Qt-Version 4.4.0
-- Could not find Java JNI
-- Looking for doxygen...
-- Looking for doxygen... - found /usr/bin/doxygen
-- Looking for dot tool...
-- Looking for dot tool... - found /usr/bin/dot
---------------------------------------------------------------------------------------
-- Soprano Components that will be built:

-- Soprano Components that will NOT be built:
   * Redland storage backend
   * Sesame2 storage backend (java-based)
   * Raptor RDF parser
   * Raptor RDF serializer
   * The CLucene-based full-text search index library
---------------------------------------------------------------------------------------
** Expat is disabled. No support for XML via Expat
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
** CLucene not found. Support for CLucene backend is disabled
** HyperEstraier is disabled. No support for HyperEstraier backend
** SQLite is disabled. No support for SQLite backend
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Cannot find Exiv2 library!
** Exiv2 not found. Support for indexing of EXIF/IPTC metadata is disabled
-- Found Qt-Version 4.4.0
** Qt4 is found. Support for Qt4 GUI client is enabled
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found dbus-1 release >= 1.0
** DBus-1 is found. Support for DBus interface in Strigi daemon is enabled
** Log4cxx is disabled. No support for advanced logging
** FAM is disabled. No support for efficient file change monitoring system
-- Ensure you cppunit installed version is at least 1.12.0
** CppUnit not found. Support for Strigi unit tests is disabled
** No CLucene libraries were found, so Strigi cannot use indexes.
** It is recommended to install CLucene >= 0.9.16a.
** You will still be able to use deepfind, deepgrep and xmlindexer.
** Java is found. Support for generating xsd parser from *.xsd files is enabled
-- dbus support enabled
-- Found Qt-Version 4.4.0 (using /home/kde-devel/qt-copy/bin/qmake)
-- Configuring done
CMake Warning (dev) at akonadi/libs/CMakeLists.txt:16 (add_library):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "akonadiprotocolinternals" links to some libraries for which
  the linker must search:

    -lpthread

  and other libraries with known full path:

    /home/kde-devel/qt-copy/lib/libQtCore.so

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/kde-devel/kde/build/KDE/kdesupport
Comment 1 FiNeX 2008-05-12 10:54:45 UTC
Could you try to update your local copy and re-compile kdesupport? Sources could have been updated.
Comment 2 Piotr Krzysztof Soboń 2008-05-12 13:23:12 UTC
I configure qt-copy with default options and nothing help. :{

configure -qt-gif -debug -fast -no-exceptions -no-separate-debug-info -system-libpng -system-libjpeg -system-zlib -dbus -webkit -no-phonon -nomake examples -nomake demos -prefix $QTDIR

Update to the newest version from svn nothing help too.
Comment 3 FiNeX 2008-05-12 13:55:09 UTC
Sometimes you also need to clean your build directory.
Comment 4 Piotr Krzysztof Soboń 2008-05-14 07:43:31 UTC
I delete my kde-devel user and recompile it again and... this 63 errors is stil exist. :/

I think that this is the problem:
-- Could not find Java JNI
Comment 5 George Goldberg 2008-06-02 16:50:28 UTC
Are you still getting this issue with current SVN?
Comment 6 Piotr Krzysztof Soboń 2008-06-02 16:55:28 UTC
I delete kde-devel build, and then compile it again and everything is OK (Java JNI is stil unavailble, but 63 errors disapeard).

Comment 7 Piotr Krzysztof Soboń 2008-06-02 16:57:20 UTC
Problem resolved.