Murmur 0.9.3 doesn´t compile

Help
2006-09-26
2012-10-30
  • Matthias Fleischer

    Hi,

    I have a problem with 0.9.3

    murmur_pch.h is missing (mumble_pch.h also)
    I took the one from svn.

    but...

    make release
    make -f Makefile.Release
    make[1]: Entering directory /root/mumble-0.9.3x' g++ -x c++-header -c -pipe -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.1.1/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.1/include/QtNetwork -I/usr/local/Trolltech/Qt-4.1.1/include/QtSql -I/usr/local/Trolltech/Qt-4.1.1/include -Irelease -I. murmur_pch.h -o release/murmur.gch/c++ g++: language c++-header not recognized g++: murmur_pch.h: linker input file unused because linking not done g++ -c -include release/murmur -pipe -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.1.1/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.1/include/QtNetwork -I/usr/local/Trolltech/Qt-4.1.1/include/QtSql -I/usr/local/Trolltech/Qt-4.1.1/include -Irelease -I. -o release/ACL.o ACL.cpp <command line>:139017039:15256: release/murmur: No such file or directory In file included from ACL.cpp:31: ACL.h:37: error: parse error before{' token
    ACL.h:55: error: Permissions' was not declared in this scope ACL.h:55: error:Perm' was not declared in this scope
    ACL.h:57: error: ISO C++ forbids declaration of Q_DECLARE_FLAGS' with no type ACL.h:57: error: initializer list being treated as compound expression ACL.h:57: error: syntax error beforestatic'
    ACL.h:64: error: 'QString' is used as a type, but is not defined as a type.
    ACL.h:65: error: 'Permissions' is used as a type, but is not defined as a type.
    ACL.h:66: error: 'Permissions' is used as a type, but is not defined as a type.
    ACL.h:68: error: parse error before *' token ACL.h:69: error: type specifier omitted for parameterPerm'
    ACL.h:69: error: parse error before ,' token ACL.h:70: error: syntax error before(' token
    ACL.h:71: error: syntax error before (' token ACL.h:72: error: syntax error before(' token
    ACL.h:75: error: parse error before }' token ACL.h:77: error: incomplete typeChanACL' does not have member Permissions' In file included from ACL.cpp:32: Channel.h:34: error: ISO C++ forbids declaration of
    Q_DECLARE_OPERATORS_FOR_FLAGS' with no type
    Channel.h:34: error: syntax error before ;' token Channel.h:38: error: parse error before{' token
    Channel.h:45: error: 'QString' is used as a type, but is not defined as a type.
    Channel.h:46: error: 'QList' is used as a type, but is not defined as a type.
    Channel.h:47: error: 'QList' is used as a type, but is not defined as a type.
    Channel.h:48: error: QString' was not declared in this scope Channel.h:48: error: 'QHash' is used as a type, but is not defined as a type. Channel.h:49: error: 'QList' is used as a type, but is not defined as a type. Channel.h:51: error: 'QSet' is used as a type, but is not defined as a type. Channel.h:52: error: 'QHash' is used as a type, but is not defined as a type. Channel.h:54: error: syntax error before;' token
    Channel.h:55: error: qpPlayerLink' was not declared in this scope Channel.h:55: error: 'QSet' is used as a type, but is not defined as a type. Channel.h:59: error: syntax error before;' token
    Channel.h:60: error: syntax error before ;' token Channel.h:62: error: parse error beforeint'
    Channel.h:63: error: destructors must be member functions
    Channel.h:63: warning: void Channel()' hides constructor forclass Channel'
    Channel.h:65: error: syntax error before *' token Channel.h:66: error: syntax error before' token
    Channel.h:67: error: parse error before )' token Channel.h:69: error: invalid operands of typesvoid ()()' and Channel*' to binaryoperator
    '
    Channel.h:69: error: variable or field addChannel' declared void Channel.h:70: error: invalid operands of typesvoid ()()' and Channel*' to binaryoperator'
    Channel.h:70: error: variable or field removeChannel' declared void Channel.h:74: error: invalid operands of typesvoid ()()' and Channel*' to binaryoperator
    '
    Channel.h:75: error: invalid operands of types void ()()' andChannel' to
    binary operator*' Channel.h:75: error: variable or fieldlink' declared void
    Channel.h:76: error: invalid operands of types void ()()' andChannel
    ' to
    binary operator*' Channel.h:76: error: variable or fieldunlink' declared void
    Channel.h:78: error: invalid operands of types void ()()' andChannel' to
    binary operator*' Channel.h:78: error: parse error before
    ' token
    Channel.h:79: error: invalid operands of types void ()()' andChannel' to
    binary operator*' Channel.h:79: error: parse error before
    ' token
    Channel.h:81: error: parse error before >' token In file included from ACL.cpp:33: Group.h:39: error: syntax error before' token
    Group.h:40: error: 'QString' is used as a type, but is not defined as a type.
    Group.h:43: error: 'QSet' is used as a type, but is not defined as a type.
    Group.h:44: error: 'QSet' is used as a type, but is not defined as a type.
    Group.h:45: error: parse error before )' token Group.h:46: error: parse error before
    ' token
    Group.h:48: error: QString' was not declared in this scope Group.h:48: error: ISO C++ forbids declaration ofQSet' with no type
    Group.h:48: error: template-id QSet<<expression error> >' used as a declarator Group.h:48: error: parse error before(' token
    Group.h:49: error: invalid operands of types void ()()' andChannel' to
    binary operator*' Group.h:49: error:QString' was not declared in this scope
    Group.h:49: error: parse error before )' token Group.h:51: error: invalid operands of typesvoid ()()' and Channel*' to binaryoperator
    '
    Group.h:51: error: aclChan' was not declared in this scope Group.h:51: error:QString' was not declared in this scope
    Group.h:51: error: parse error before ,' token In file included from ACL.cpp:34: Player.h:36: error: parse error before{' token
    Player.h:40: error: 'State' is used as a type, but is not defined as a type.
    Player.h:43: error: 'QString' is used as a type, but is not defined as a type.
    Player.h:48: error: syntax error before *' token Player.h:50: error: syntax error before;' token
    Player.h:51: error: syntax error before ;' token Player.h:53: error: parse error before' token
    Player.h:55: error: type specifier omitted for parameter QObject' Player.h:55: error: parse error before
    ' token
    Player.h:59: error: parse error before public' Player.h:65: error: syntax error before:' token
    Player.h:68: error: parse error before }' token ACL.cpp:36: error: parse error before,' token
    ACL.cpp:38: error: chan' was not declared in this scope ACL.cpp:38: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:38: error: invalid declarator ACL.cpp:38: error: syntax error before{' token
    ACL.cpp:40: error: ISO C++ forbids declaration of bApplySubs' with no type ACL.cpp:40: error: conflicting types forint bApplySubs'
    ACL.h:61: error: previous declaration as bool bApplySubs' ACL.cpp:42: error: ISO C++ forbids declaration ofiPlayerId' with no type
    ACL.cpp:42: error: redefinition of int iPlayerId' ACL.h:63: error:int iPlayerId' previously declared here
    ACL.cpp:44: error: ISO C++ forbids declaration of c' with no type ACL.cpp:44: error: conflicting types forint c'
    ACL.h:59: error: previous declaration as Channel*c' ACL.cpp:44: error:chan' was not declared in this scope
    ACL.cpp:45: error: syntax error before ->' token ACL.cpp:53: error: type specifier omitted for parameterChannel'
    ACL.cpp:53: error: parse error before *' token ACL.cpp:53: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp: In member functionbool ChanACL::hasPermission(...)':
    ACL.cpp:54: error: QStack' undeclared (first use this function) ACL.cpp:54: error: (Each undeclared identifier is reported only once for each function it appears in.) ACL.cpp:54: error: parse error before>' token
    ACL.cpp:55: error: ch' undeclared (first use this function) ACL.cpp:59: error:p' undeclared (first use this function)
    ACL.cpp:62: error: Permissions' undeclared (first use this function) ACL.cpp:62: error: parse error before;' token
    ACL.cpp:64: error: granted' undeclared (first use this function) ACL.cpp:64: error:c_qhACLCache' undeclared (first use this function)
    ACL.cpp:64: error: chan' undeclared (first use this function) ACL.cpp:65: error:Cached' undeclared (first use this function)
    ACL.cpp:66: error: perm' undeclared (first use this function) ACL.cpp:66: error:Speak' undeclared (first use this function)
    ACL.cpp:66: error: AltSpeak' undeclared (first use this function) ACL.cpp:67: error:Write' undeclared (first use this function)
    ACL.cpp:67: error: None' undeclared (first use this function) ACL.cpp:72: error:cacheonly' undeclared (first use this function)
    ACL.cpp:77: error: chanstack' undeclared (first use this function) ACL.cpp:82: error: parse error before=' token
    ACL.cpp:84: error: def' undeclared (first use this function) ACL.cpp:94: error:foreach' undeclared (first use this function)
    ACL.cpp:94: error: parse error before {' token ACL.cpp:96: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:97: error:matchPlayer' undeclared (first use this function)
    ACL.cpp:98: error: invalid use of undefined type class ChanACL' ACL.h:37: error: forward declaration ofclass ChanACL'
    ACL.cpp:98: error: Traverse' undeclared (first use this function) ACL.cpp:100: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:102: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:104: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:106: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:106: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:107: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:108: error: invalid use of undefined typeclass ChanACL'
    ACL.h:37: error: forward declaration of class ChanACL' ACL.cpp:114: error: break statement not within loop or switch ACL.cpp: At global scope: ACL.cpp:118: error: ISO C++ forbids declaration ofc_qhACLCache' with no type
    ACL.cpp:118: error: assignment (not initialization) in declaration
    ACL.cpp:120: error: parse error before if' ACL.cpp:126: error: syntax error before::' token
    ACL.cpp:152: error: syntax error before ::' token ACL.cpp:180: error: syntax error before::' token
    ACL.cpp:223: error: invalid use of undefined type class ChanACL' ACL.h:37: error: forward declaration ofclass ChanACL'
    ACL.cpp: In function void __static_initialization_and_destruction_0(int, int) ': ACL.cpp:40: warning: statement with no effect ACL.cpp: At top level: ACL.h:69: warning:bool hasPermission(...)' declared static' but never defined ACL.h:74: warning:void clearCache()' declared static' but never defined Channel.h:67: warning:void remove(...)' declared static' but never defined Player.h:54: warning:Player get(short int)' declared static' but never defined Player.h:55: warning:Player add(...)' declared static' but never defined Player.h:56: warning:Player match(const Player, bool)' declared static' but never defined Player.h:57: warning:void remove(short int)' declared static' but never defined Player.h:58: warning:void remove(Player*)' declared static' but never defined {standard input}: Assembler messages: {standard input}:134: Error: symboliPlayerId' is already defined
    make[1]: [release/ACL.o] Error 1
    make[1]: Leaving directory `/root/mumble-0.9.3x'
    make:
    [release] Error 2

    Any ideas?
    0.9.2 compiles under this system without problems.
    QT is 4.1.1

    Tnx
    Matt

     
    • M^3

      M^3 - 2006-10-05

      actually, looking again, I have GCC 4.0.2, so I have no idea why it isn't compiling, I must be doing something wrong.
      I type "qmake murmur.pro" and I get
      mumble.pri:8 Unknown test function: CONFIG
      mumble.pri:13 Unknown test function: CONFIG
      mumble.pri:20 Unknown test function: CONFIG
      this is from the subversion files from yesterday.

       
      • Thorvald Natvig

        Thorvald Natvig - 2006-10-05

        That's actually covered in the FAQ. You're using qmake from QT 3.x

         
    • Thorvald Natvig

      Thorvald Natvig - 2006-09-28

      That's precompiled headers failing to compile.. This has been part of GCC since gcc3.4. Which version of gcc are you using?

       
    • Matthias Fleischer

      3.3.5

      with 3.4 it´s working....

      Tnx!!

       
    • M^3

      M^3 - 2006-10-01

      i'm usin older too, but I'm not sure I have it in me to upgrade the compiler on my server.

       
      • Thorvald Natvig

        Thorvald Natvig - 2006-10-01

        I'll see if I can make 0.9.4 have precompiled headers as an optional dependency, at least for murmur.

         
    • M^3

      M^3 - 2006-10-02

      At some point I will probably install the most up-to-date CentOS over the Fedora Core 4 I have on my server now, but I am not sure when that will be. having it compile w/ the older compiler I have would be nice, but obviously don't waste too much time on it, at least not on my account.

       
    • M^3

      M^3 - 2006-10-06

      oh, so I must still have QT 3 installed even though I installed the newest release last week, and I had some version of QT 4 on there before or I would not have been able to compile mmurmur 0.9.2 early this summer. Oy, I guess this is what happens when a windows guy plays with a linux server, huh? I will have to check my paths maybe?

       
      • M^3

        M^3 - 2006-10-09

        Fixed my path so that the correct version of qmake runs and it compiled ok. Now I find that the precompiled win32 binary mumble 0.9.3 won't talk to the subversion murmur 0.9.3 due to a protocol verson problem. Oh well, maybe I should just wait until the next version is released?

         

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks