compile errors (gcc4)

Help
2006-01-18
2013-04-08
  • Quentin Denis
    Quentin Denis
    2006-01-18

    then mv -f ".deps/libkdeinit_kpowersave_la.all_cpp.Tpo" ".deps/libkdeinit_kpowersave_la.all_cpp.Plo"; else rm -f ".deps/libkdeinit_kpowersave_la.all_cpp.Tpo"; exit 1; fi
    /usr/lib/qt3/include/qdir.h:80: error: expected identifier before numeric constant
    /usr/lib/qt3/include/qdir.h:80: error: expected `}' before numeric constant
    /usr/lib/qt3/include/qdir.h:80: error: expected unqualified-id before numeric constant
    /usr/lib/qt3/include/qdir.h:88: error: expected unqualified-id before ')' token
    /usr/lib/qt3/include/qdir.h:89: error: expected unqualified-id before 'const'
    /usr/lib/qt3/include/qdir.h:89: error: expected `)' before 'const'
    /usr/lib/qt3/include/qdir.h:91: error: expected unqualified-id before 'const'
    /usr/lib/qt3/include/qdir.h:91: error: expected `)' before 'const'
    /usr/lib/qt3/include/qdir.h:93: error: declaration of '~QDir' as non-member
    /usr/lib/qt3/include/qdir.h:95: error: 'QDir& operator=(const QDir&)' must be a nonstatic member function
    /usr/lib/qt3/include/qdir.h:95: error: 'QDir& operator=(const QDir&)' must take exactly two arguments
    /usr/lib/qt3/include/qdir.h:96: error: 'QDir& operator=(const QString&)' must be a nonstatic member function
    /usr/lib/qt3/include/qdir.h:96: error: 'QDir& operator=(const QString&)' must take exactly two arguments
    /usr/lib/qt3/include/qdir.h:98: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:99: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:99: error: non-member function 'QString path()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:100: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:100: error: non-member function 'QString absPath()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:101: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:101: error: non-member function 'QString canonicalPath()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:103: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:103: error: non-member function 'QString dirName()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:105: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:105: error: non-member function 'QString filePath(const QString&, bool)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:107: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:107: error: non-member function 'QString absFilePath(const QString&, bool)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:111: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:112: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:114: error: non-member function 'QString nameFilter()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:115: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:116: error: 'FilterSpec' does not name a type
    /usr/lib/qt3/include/qdir.h:117: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:118: error: 'SortSpec' does not name a type
    /usr/lib/qt3/include/qdir.h:119: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:121: error: non-member function 'bool matchAllDirs()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:122: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:124: error: non-member function 'uint count()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:125: error: non-member function 'QString operator[](int)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:125: error: 'QString operator[](int)' must be a nonstatic member function
    /usr/lib/qt3/include/qdir.h:125: error: 'QString operator[](int)' must take exactly two arguments
    /usr/lib/qt3/include/qdir.h:127: error: 'DefaultFilter' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:128: error: 'DefaultSort' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:128: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:128: error: non-member function 'QStrList encodedEntryList(int, int)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:130: error: 'DefaultFilter' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:131: error: 'DefaultSort' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:131: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:131: error: non-member function 'QStrList encodedEntryList(const QString&, int, int)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:132: error: 'DefaultFilter' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:133: error: 'DefaultSort' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:133: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:133: error: non-member function 'QStringList entryList(int, int)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:135: error: 'DefaultFilter' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:136: error: 'DefaultSort' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:136: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:136: error: non-member function 'QStringList entryList(const QString&, int, int)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:138: error: 'DefaultFilter' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:139: error: 'DefaultSort' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:139: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:139: error: non-member function 'const QFileInfoList* entryInfoList(int, int)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:141: error: 'DefaultFilter' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:142: error: 'DefaultSort' was not declared in this scope
    /usr/lib/qt3/include/qdir.h:142: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:142: error: non-member function 'const QFileInfoList* entryInfoList(const QString&, int, int)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:147: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:147: error: non-member function 'bool mkdir(const QString&, bool)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:149: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:149: error: non-member function 'bool rmdir(const QString&, bool)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:151: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:151: error: non-member function 'bool isReadable()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:152: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:152: error: non-member function 'bool exists()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:153: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:153: error: non-member function 'bool isRoot()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:155: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:155: error: non-member function 'bool isRelative()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:156: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:158: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:158: error: non-member function 'bool operator==(const QDir&)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:158: error: 'bool operator==(const QDir&)' must take exactly two arguments
    /usr/lib/qt3/include/qdir.h:159: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:159: error: non-member function 'bool operator!=(const QDir&)' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:159: error: 'bool operator!=(const QDir&)' must take exactly two arguments
    /usr/lib/qt3/include/qdir.h:162: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:164: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:166: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:182: error: non-member function 'void refresh()' cannot have cv-qualifier
    /usr/lib/qt3/include/qdir.h:184: error: expected unqualified-id before 'private'
    /usr/lib/qt3/include/qdir.h:191: error: virtual outside class declaration
    /usr/lib/qt3/include/qdir.h:199: error: 'FilterSpec' does not name a type
    /usr/lib/qt3/include/qdir.h:200: error: 'SortSpec' does not name a type
    /usr/lib/qt3/include/qdir.h:201: error: invalid function declaration
    /usr/lib/qt3/include/qdir.h:202: error: invalid function declaration
    /usr/lib/qt3/include/qdir.h:205: error: 'friend' can only be specified inside a class
    /usr/lib/qt3/include/qdir.h:206: error: expected declaration before '}' token
    /usr/lib/qt3/include/qdir.h:109: warning: 'QString convertSeparators(const QString&)' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:144: warning: 'const QFileInfoList* drives()' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:168: warning: 'char separator()' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:170: warning: 'bool setCurrent(const QString&)' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:171: warning: 'QDir current()' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:172: warning: 'QDir home()' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:173: warning: 'QDir root()' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:174: warning: 'QString currentDirPath()' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:175: warning: 'QString homeDirPath()' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:176: warning: 'QString rootDirPath()' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:178: warning: 'bool match(const QStringList&, const QString&)' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:179: warning: 'bool match(const QString&, const QString&)' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:180: warning: 'QString cleanDirPath(const QString&)' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:181: warning: 'bool isRelativePath(const QString&)' declared 'static' but never defined
    /usr/lib/qt3/include/qdir.h:193: warning: 'void slashify(QString&)' declared 'static' but never defined
    make[3]: *** [libkdeinit_kpowersave_la.all_cpp.lo] Fehler 1
    make[3]: Leaving directory `/usr/src/packages/BUILD/kpowersave-0.5.3/src'
    make[2]: *** [all-recursive] Fehler 1
    make[2]: Leaving directory `/usr/src/packages/BUILD/kpowersave-0.5.3/src'
    make[1]: *** [all-recursive] Fehler 1

     
    • Danny Al-Gaaf
      Danny Al-Gaaf
      2006-01-19

      This is not really a useful information. Please provide more information: which distribution, which gcc/QT/KDE version, is powersave installed (also powersave-libs and powersave-devel), what did you to compile KPowersave ...

       
      • Quentin Denis
        Quentin Denis
        2006-01-19

        gcc-4.0.2_20050901
        qt3-devel-3.3.4
        kdelibs3-devel-3.4.2
        powersave-devel-0.11.5
        powersave-libs-0.11.5

        SUSE 10.0

        ...and as usual:

        . /etc/opt/kde3/common_options
        ./configure $configkde --enable-yast-entry

        %{__make}

         
    • Danny Al-Gaaf
      Danny Al-Gaaf
      2006-01-19

      I don't know what you make wrong, but I think there is a devel-package of KDE or QT missing. Maybe you should try to rebuild KPowersave with rpmbuild or build from the src rpm. You could take a look at the spec files and install all packages in BuildRequires.

      But why do you try to rebuild the package? There are already packages specially for SUSE 10.0 available (we build them on the SUSE abuild servers, they should work for 10.0). Try this packages.

       
    • Quentin Denis
      Quentin Denis
      2006-01-19

      i don't use your rpms because they're incompatible with suse. the binaries are build against a different expat and the srpms have wrong dependencies, too:
      error: Failed build dependencies:
              Mesa is needed by kpowersave-0.5.3-2
              Mesa-devel is needed by kpowersave-0.5.3-2
              dbus-1-qt3 is needed by kpowersave-0.5.3-2
              libdrm is needed by kpowersave-0.5.3-2
              libdrm-devel is needed by kpowersave-0.5.3-2

      they don't exist on suse 10.0!! instead:
      dbus-1-qt
      xorg-x11-Mesa-6.8.2-100
      xorg-x11-Mesa-devel-6.8.2-100

      libdrm is a fedora rpm, does not exist for suse!

      well, installed them and it still does not work!

      PS: you shouldn't provide rpms if there are incompatible with suse 10.0!

       
    • Danny Al-Gaaf
      Danny Al-Gaaf
      2006-01-19

      Upps ... we had some trouble with build this files in our buildsystem. Looks as this files are for a SUSE 10.1 Alpha instead of 10.0. (the failed dependencies are the result - this are new files from upcomming 10.1)

      We added a new (tested) release for SUSE 10.0. You need also update powersave and from the new 'Update requirements'-section: sysfsutils and cpufrequtils.

      I hope this help you.

      Danny

       
    • Quentin Denis
      Quentin Denis
      2006-01-20

      now i can use the binaries, nice! i suppose i still won't be able to compile myself, but now it's not necessary anymore. just strange because i don't know what fails or what is missing on my system.
      by the way, is the brightness feature hardware dependend? keyboard shortcuts can change the brightness on my laptop, but i suppose that's controlled technically by the hardware? hm, that's a pity, it would have been useful to set the brightness to the schemes!

       
      • Danny Al-Gaaf
        Danny Al-Gaaf
        2006-01-20

        Sounds good. As I sad, I think you did not install one of the needed packages. I should work if you select in YaST the development and KDE-development selection.

        Yes, set brightness via the scheme depends currently on the capabilities of your hardware. We work currently on integration of the generic ACPI video interface in powersave to set brightness on machine which support this. On all other machines we have currently no support. What kind of machine is your laptop?

         
    • Quentin Denis
      Quentin Denis
      2006-01-27

      an Acer TravelMate 2310!
      i use suse 10.0 and there are some differences:
      - i miss the cpu frequency policy
      - and the standby button, but that's not important at all!