timerdclient.cpp

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
rasta12
Interessierter
Interessierter
Beiträge: 54
Registriert: Donnerstag 10. Januar 2002, 09:06

timerdclient.cpp

Beitrag von rasta12 »

@all
Entweder bin ich blind, aber ich seh den Fehler in der timerdclient.cpp nicht. Für mich ist da alles in Ordnung, aber ich bin eh nicht der C++-Kenner, deshalb frage ich ja hier.
Siehe Listing unten.
/bin/sh ../../../libtool --mode=compile powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/home/tuxbox/tuxbox-cvs/driver/include -I../../../mczap/libevent -I../../../zapit -O2 -g3 -mcpu=823 -c timerdclient.cpp
powerpc-tuxbox-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/home/tuxbox/tuxbox-cvs/driver/include -I../../../mczap/libevent -I../../../zapit -O2 -g3 -mcpu=823 -Wp,-MD,.deps/timerdclient.pp -c timerdclient.cpp -fPIC -DPIC -o timerdclient.lo
In file included from timerdclient.h:46,
from timerdclient.cpp:26:
timerdMsg.h:56: parse error before `;' token
timerdMsg.h:57: ISO C++ forbids declaration of `CMD_VCR_START' with no type
timerdMsg.h:57: ISO C++ forbids initialization of member `CMD_VCR_START'
timerdMsg.h:57: making `CMD_VCR_START' static
timerdMsg.h:57: ISO C++ forbids in-class initialization of non-const static
member `CMD_VCR_START'
timerdMsg.h:58: ISO C++ forbids declaration of `CMD_VCR_STOP' with no type
timerdMsg.h:58: ISO C++ forbids initialization of member `CMD_VCR_STOP'
timerdMsg.h:58: making `CMD_VCR_STOP' static
timerdMsg.h:58: ISO C++ forbids in-class initialization of non-const static
member `CMD_VCR_STOP'
timerdMsg.h:59: ISO C++ forbids declaration of `CMD_VCR_PAUSE' with no type
timerdMsg.h:59: ISO C++ forbids initialization of member `CMD_VCR_PAUSE'
timerdMsg.h:59: making `CMD_VCR_PAUSE' static
timerdMsg.h:59: ISO C++ forbids in-class initialization of non-const static
member `CMD_VCR_PAUSE'
timerdMsg.h:60: ISO C++ forbids declaration of `CMD_VCR_RESUME' with no type
timerdMsg.h:60: ISO C++ forbids initialization of member `CMD_VCR_RESUME'
timerdMsg.h:60: making `CMD_VCR_RESUME' static
timerdMsg.h:60: ISO C++ forbids in-class initialization of non-const static
member `CMD_VCR_RESUME'
timerdMsg.h:160: parse error before `}' token
In file included from timerdclient.cpp:26:
timerdclient.h:93: `TimerList' is not a member of type `CTimerd'
timerdclient.h:93: `timerlist' was not declared in this scope
timerdclient.h:93: invalid data member initialization
timerdclient.h:93: (use `=' to initialize static data members)
timerdclient.h:93: variable or field `getTimerList' declared void
timerdclient.h:94: `responseGetTimer' is not a member of type `CTimerd'
timerdclient.h:94: `timer' was not declared in this scope
timerdclient.h:94: parse error before `)' token
timerdclient.h: In member function `int
CTimerdClient::addStandbyTimerEvent(bool, int, int, int, int)':
timerdclient.h:141: `commandSetStandby' is not a member of type `CTimerd'
timerdclient.h:141: parse error before `;' token
timerdclient.h:142: `standby' undeclared (first use this function)
timerdclient.h:142: (Each undeclared identifier is reported only once for each
function it appears in.)
timerdclient.cpp: In member function `void
CTimerdClient::registerEvent(unsigned int, unsigned int,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
timerdclient.cpp:83: `commandHead' is not a member of type `CTimerd'
timerdclient.cpp:83: parse error before `;' token
timerdclient.cpp:86: `msg' undeclared (first use this function)
timerdclient.cpp:87: `CMD_REGISTEREVENT' is not a member of type `CTimerd'
timerdclient.cpp: In member function `void
CTimerdClient::unRegisterEvent(unsigned int, unsigned int)':
timerdclient.cpp:101: `commandHead' is not a member of type `CTimerd'
timerdclient.cpp:101: parse error before `;' token
timerdclient.cpp:105: `CMD_UNREGISTEREVENT' is not a member of type `CTimerd'
timerdclient.cpp: In member function `int CTimerdClient::getSleeptimerID()':
timerdclient.cpp:135: `commandHead' is not a member of type `CTimerd'
timerdclient.cpp:135: parse error before `;' token
timerdclient.cpp:137: `CMD_GETSLEEPTIMER' is not a member of type `CTimerd'
timerdclient.cpp:140: `responseGetSleeptimer' is not a member of type `CTimerd'
timerdclient.cpp:140: parse error before `;' token
timerdclient.cpp:141: `response' undeclared (first use this function)
timerdclient.cpp:141: `responseGetSleeptimer' is not a member of type `CTimerd'
timerdclient.cpp: In member function `int
CTimerdClient::getSleepTimerRemaining()':
timerdclient.cpp:151: `responseGetTimer' is not a member of type `CTimerd'
timerdclient.cpp:151: parse error before `;' token
timerdclient.cpp:152: `timer' undeclared (first use this function)
timerdclient.cpp: At global scope:
timerdclient.cpp:160: `TimerList' is not a member of type `CTimerd'
timerdclient.cpp:160: `timerlist' was not declared in this scope
timerdclient.cpp:161: `void CTimerdClient::getTimerList' is not a static member
of `class CTimerdClient'
timerdclient.cpp:161: variable `void CTimerdClient::getTimerList' has
initializer but incomplete type
timerdclient.cpp:161: syntax error before `{' token
timerdclient.cpp:163: syntax error before `;' token
timerdclient.cpp:164: syntax error before `.' token
timerdclient.cpp:165: syntax error before `.' token
timerdclient.cpp:167: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:168: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:168: `int send' redeclared as different kind of symbol
/dbox2/cdk/powerpc-tuxbox-linux-gnu/include/sys/socket.h:132: previous
declaration of `ssize_t send(int, const void*, unsigned int, int)'
timerdclient.cpp:168: initializer list being treated as compound expression
timerdclient.cpp:169: syntax error before `.' token
timerdclient.cpp:170: syntax error before `;' token
timerdclient.cpp:174: syntax error before `.' token
timerdclient.cpp:176: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:177: parse error before `}' token
timerdclient.cpp:179: `responseGetTimer' is not a member of type `CTimerd'
timerdclient.cpp:179: parse error before `)' token
timerdclient.cpp:180: cannot declare member function `CTimerdClient::getTimer'
within `CTimerd'
timerdclient.cpp:180: syntax error before `{' token
timerdclient.cpp:182: syntax error before `.' token
timerdclient.cpp:183: syntax error before `.' token
timerdclient.cpp:185: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:186: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:186: redefinition of `int send'
timerdclient.cpp:168: `int send' previously defined here
timerdclient.cpp:186: initializer list being treated as compound expression
timerdclient.cpp:187: `timerID' was not declared in this scope
timerdclient.cpp:187: `timerID' was not declared in this scope
timerdclient.cpp:187: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:187: redefinition of `int send'
timerdclient.cpp:186: `int send' previously defined here
timerdclient.cpp:187: initializer list being treated as compound expression
timerdclient.cpp:189: syntax error before `;' token
timerdclient.cpp:190: `responseGetTimer' is not a member of type `CTimerd'
timerdclient.cpp:190: ISO C++ forbids declaration of `receive' with no type
timerdclient.cpp:190: initializer list being treated as compound expression
timerdclient.cpp:191: ISO C++ forbids declaration of `timer' with no type
timerdclient.cpp:191: `int timer' used prior to declaration
timerdclient.cpp:192: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:193: parse error before `}' token
timerdclient.cpp:197: cannot declare member function `CTimerdClient::
modifyTimerEvent' within `CTimerd'
timerdclient.cpp:197: syntax error before `{' token
timerdclient.cpp:200: syntax error before `.' token
timerdclient.cpp:201: syntax error before `.' token
timerdclient.cpp:203: syntax error before `;' token
timerdclient.cpp:204: syntax error before `.' token
timerdclient.cpp:205: syntax error before `.' token
timerdclient.cpp:206: syntax error before `.' token
timerdclient.cpp:207: syntax error before `.' token
timerdclient.cpp:209: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:210: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:210: redefinition of `int send'
timerdclient.cpp:187: `int send' previously defined here
timerdclient.cpp:210: initializer list being treated as compound expression
timerdclient.cpp:211: `msgModifyTimer' was not declared in this scope
timerdclient.cpp:211: `msgModifyTimer' was not declared in this scope
timerdclient.cpp:211: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:211: redefinition of `int send'
timerdclient.cpp:210: `int send' previously defined here
timerdclient.cpp:211: initializer list being treated as compound expression
timerdclient.cpp:213: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:215: parse error before `}' token
timerdclient.cpp:218: cannot declare member function `CTimerdClient::
rescheduleTimerEvent' within `CTimerd'
timerdclient.cpp:218: syntax error before `{' token
timerdclient.cpp:223: cannot declare member function `CTimerdClient::
rescheduleTimerEvent' within `CTimerd'
timerdclient.cpp:223: syntax error before `{' token
timerdclient.cpp:225: syntax error before `.' token
timerdclient.cpp:226: syntax error before `.' token
timerdclient.cpp:228: syntax error before `;' token
timerdclient.cpp:229: syntax error before `.' token
timerdclient.cpp:230: syntax error before `.' token
timerdclient.cpp:231: syntax error before `.' token
timerdclient.cpp:232: syntax error before `.' token
timerdclient.cpp:234: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:235: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:235: redefinition of `int send'
timerdclient.cpp:211: `int send' previously defined here
timerdclient.cpp:235: initializer list being treated as compound expression
timerdclient.cpp:236: `msgModifyTimer' was not declared in this scope
timerdclient.cpp:236: `msgModifyTimer' was not declared in this scope
timerdclient.cpp:236: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:236: redefinition of `int send'
timerdclient.cpp:235: `int send' previously defined here
timerdclient.cpp:236: initializer list being treated as compound expression
timerdclient.cpp:238: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:240: parse error before `}' token
timerdclient.cpp:243: cannot declare member function `CTimerdClient::
addTimerEvent' within `CTimerd'
timerdclient.cpp:243: syntax error before `{' token
timerdclient.cpp:246: ISO C++ forbids declaration of `time' with no type
timerdclient.cpp:246: `int time' redeclared as different kind of symbol
/dbox2/cdk/powerpc-tuxbox-linux-gnu/include/time.h:166: previous declaration of
`time_t time(time_t*)'
timerdclient.cpp:246: invalid conversion from `time_t*' to `int'
timerdclient.cpp:249: syntax error before `->' token
timerdclient.cpp:250: syntax error before `->' token
timerdclient.cpp:257: `evType' was not declared in this scope
timerdclient.cpp:257: `data' was not declared in this scope
timerdclient.cpp:257: ISO C++ forbids declaration of `addTimerEvent' with no
type
timerdclient.cpp:257: initializer list being treated as compound expression
timerdclient.cpp:258: parse error before `}' token
timerdclient.cpp:261: cannot declare member function `CTimerdClient::
addTimerEvent' within `CTimerd'
timerdclient.cpp:261: syntax error before `{' token
timerdclient.cpp:263: syntax error before `;' token
timerdclient.cpp:264: syntax error before `.' token
timerdclient.cpp:265: syntax error before `.' token
timerdclient.cpp:268: syntax error before `;' token
timerdclient.cpp:269: syntax error before `.' token
timerdclient.cpp:270: syntax error before `.' token
timerdclient.cpp:271: syntax error before `.' token
timerdclient.cpp:272: syntax error before `.' token
timerdclient.cpp:273: syntax error before `.' token
timerdclient.cpp:276: parse error before `if'
timerdclient.cpp:293: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:294: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:294: redefinition of `int send'
timerdclient.cpp:236: `int send' previously defined here
timerdclient.cpp:294: initializer list being treated as compound expression
timerdclient.cpp:295: `msgAddTimer' was not declared in this scope
timerdclient.cpp:295: `msgAddTimer' was not declared in this scope
timerdclient.cpp:295: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:295: redefinition of `int send'
timerdclient.cpp:294: `int send' previously defined here
timerdclient.cpp:295: initializer list being treated as compound expression
timerdclient.cpp:296: parse error before `if'
timerdclient.cpp:299: syntax error before `;' token
timerdclient.cpp:300: ISO C++ forbids declaration of `receive' with no type
timerdclient.cpp:300: redefinition of `int receive'
timerdclient.cpp:190: `int receive' previously defined here
timerdclient.cpp:300: initializer list being treated as compound expression
timerdclient.cpp:301: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:303: parse error before `return'
timerdclient.cpp:307: cannot declare member function `CTimerdClient::
removeTimerEvent' within `CTimerd'
timerdclient.cpp:307: syntax error before `{' token
timerdclient.cpp:309: syntax error before `.' token
timerdclient.cpp:310: syntax error before `.' token
timerdclient.cpp:311: syntax error before `;' token
timerdclient.cpp:312: syntax error before `.' token
timerdclient.cpp:314: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:315: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:315: redefinition of `int send'
timerdclient.cpp:295: `int send' previously defined here
timerdclient.cpp:315: initializer list being treated as compound expression
timerdclient.cpp:316: `msgRemoveTimer' was not declared in this scope
timerdclient.cpp:316: `msgRemoveTimer' was not declared in this scope
timerdclient.cpp:316: ISO C++ forbids declaration of `send' with no type
timerdclient.cpp:316: redefinition of `int send'
timerdclient.cpp:315: `int send' previously defined here
timerdclient.cpp:316: initializer list being treated as compound expression
timerdclient.cpp:318: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:319: parse error before `{' token
timerdclient.cpp:324: cannot declare member function `CTimerdClient::
isTimerdAvailable' within `CTimerd'
timerdclient.cpp:324: syntax error before `{' token
timerdclient.cpp:326: syntax error before `.' token
timerdclient.cpp:327: syntax error before `.' token
timerdclient.cpp:328: ISO C++ forbids declaration of `timerd_connect' with no
type
timerdclient.cpp:329: parse error before `try'
timerdclient.cpp:332: syntax error before `;' token
timerdclient.cpp:340: ISO C++ forbids declaration of `timerd_close' with no
type
timerdclient.cpp:341: parse error before `}' token
make[4]: *** [timerdclient.lo] Error 1
make[4]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/mczap/timerd/clientlib'
make[3]: *** [../mczap/timerd/clientlib/libtimerdclient.la] Error 2
make[3]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/sections'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/sections'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps'
make: *** [all-recursive-am] Error 2
tuxbox@linux:~/tuxbox-cvs/apps>
Wo soll ich den Fehler in der Datei ausmerzen ???
Entschuldigung, aber jetzt musste ich auch mal das komplette Listing zeigen. Ist ein bischen lang :D
CU
Rasta12
rasta12
Interessierter
Interessierter
Beiträge: 54
Registriert: Donnerstag 10. Januar 2002, 09:06

Beitrag von rasta12 »

Weiss wirklich niemand was da falsch ist.
Ich habe den Kernel 2.4.18 mit 2.4.19-pre8 gepatcht. Um nicht alles umändern zu müssen habe ich das Ganze linux-2.4.2.tar.bz2 genannt und nicht linux-2.4.19-pre8.tar.bz2 und dann nach Archive kopiert. Ausserdem habe ich die diff's von pre8 anstelle der von 2.4.2 nach Patches kopiert und auch 2.4.2 genannt.
Wenn ich es einzeln mache, dann kommt
Nur letzte Fehler:
In file included from ../../../../mczap/timerd/clientlib/timerdclient.h:46,
from ../../../../mczap/neutrinoNG/global.h:39,
from window.cpp:25:
../../../../mczap/timerd/clientlib/timerdMsg.h:56: parse error before `;' token
../../../../mczap/timerd/clientlib/timerdMsg.h:57: ISO C++ forbids declaration
of `CMD_VCR_START' with no type
../../../../mczap/timerd/clientlib/timerdMsg.h:57: ISO C++ forbids
initialization of member `CMD_VCR_START'
../../../../mczap/timerd/clientlib/timerdMsg.h:57: making `CMD_VCR_START'
static
../../../../mczap/timerd/clientlib/timerdMsg.h:57: ISO C++ forbids in-class
initialization of non-const static member `CMD_VCR_START'
../../../../mczap/timerd/clientlib/timerdMsg.h:58: ISO C++ forbids declaration
of `CMD_VCR_STOP' with no type
../../../../mczap/timerd/clientlib/timerdMsg.h:58: ISO C++ forbids
initialization of member `CMD_VCR_STOP'
../../../../mczap/timerd/clientlib/timerdMsg.h:58: making `CMD_VCR_STOP' static
../../../../mczap/timerd/clientlib/timerdMsg.h:58: ISO C++ forbids in-class
initialization of non-const static member `CMD_VCR_STOP'
../../../../mczap/timerd/clientlib/timerdMsg.h:59: ISO C++ forbids declaration
of `CMD_VCR_PAUSE' with no type
../../../../mczap/timerd/clientlib/timerdMsg.h:59: ISO C++ forbids
initialization of member `CMD_VCR_PAUSE'
../../../../mczap/timerd/clientlib/timerdMsg.h:59: making `CMD_VCR_PAUSE'
static
../../../../mczap/timerd/clientlib/timerdMsg.h:59: ISO C++ forbids in-class
initialization of non-const static member `CMD_VCR_PAUSE'
../../../../mczap/timerd/clientlib/timerdMsg.h:60: ISO C++ forbids declaration
of `CMD_VCR_RESUME' with no type
../../../../mczap/timerd/clientlib/timerdMsg.h:60: ISO C++ forbids
initialization of member `CMD_VCR_RESUME'
../../../../mczap/timerd/clientlib/timerdMsg.h:60: making `CMD_VCR_RESUME'
static
../../../../mczap/timerd/clientlib/timerdMsg.h:60: ISO C++ forbids in-class
initialization of non-const static member `CMD_VCR_RESUME'
../../../../mczap/timerd/clientlib/timerdMsg.h:160: parse error before `}'
token
In file included from ../../../../mczap/neutrinoNG/global.h:39,
from window.cpp:25:
../../../../mczap/timerd/clientlib/timerdclient.h:93: `TimerList' is not a
member of type `CTimerd'
../../../../mczap/timerd/clientlib/timerdclient.h:93: `timerlist' was not
declared in this scope
../../../../mczap/timerd/clientlib/timerdclient.h:93: invalid data member
initialization
../../../../mczap/timerd/clientlib/timerdclient.h:93: (use `=' to initialize
static data members)
../../../../mczap/timerd/clientlib/timerdclient.h:93: variable or field `
getTimerList' declared void
../../../../mczap/timerd/clientlib/timerdclient.h:94: `responseGetTimer' is not
a member of type `CTimerd'
../../../../mczap/timerd/clientlib/timerdclient.h:94: `timer' was not declared
in this scope
../../../../mczap/timerd/clientlib/timerdclient.h:94: parse error before `)'
token
../../../../mczap/timerd/clientlib/timerdclient.h: In member function `int
CTimerdClient::addStandbyTimerEvent(bool, int, int, int, int)':
../../../../mczap/timerd/clientlib/timerdclient.h:141: `commandSetStandby' is
not a member of type `CTimerd'
../../../../mczap/timerd/clientlib/timerdclient.h:141: parse error before `;'
token
../../../../mczap/timerd/clientlib/timerdclient.h:142: `standby' undeclared
(first use this function)
../../../../mczap/timerd/clientlib/timerdclient.h:142: (Each undeclared
identifier is reported only once for each function it appears in.)
make[3]: *** [window.o] Error 1
make[3]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/mczap/neutrinoNG/gui/widget'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/mczap/neutrinoNG/gui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tuxbox/tuxbox-cvs/apps/mczap/neutrinoNG'
make: *** [all-recursive] Error 1
tuxbox@linux:~/tuxbox-cvs/apps/mczap>
Für Hilfe wäre ich dankbar.
CU
Rasta12
Homar
Senior Member
Beiträge: 1278
Registriert: Mittwoch 5. September 2001, 00:00

Beitrag von Homar »

Hi Folks,

@rasta: der Fehler ist seit heute mittag behoben. Versehentlich hat dirch semikolon anstelle von Komma es benutzt.

Wie gesagt, der Fehler ist weg

cvs update -dPA


MFG
Homar
rasta12
Interessierter
Interessierter
Beiträge: 54
Registriert: Donnerstag 10. Januar 2002, 09:06

Beitrag von rasta12 »

Vielen Dank.
Ich hab schon an mir gezweifelt und als dann hier niemand auf die Frage eingegangen ist, habe ich gedacht, dass diese wohl recht doof ist. So als C++ Anfänger war ich da aufgeschmissen. Gut dass es euch gibt.
CU
Rasta