LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error compiling KDE Network 3.2.3 (Kopete) (https://www.linuxquestions.org/questions/linux-software-2/error-compiling-kde-network-3-2-3-kopete-217972/)

Guimauve2 08-15-2004 02:59 PM

Error compiling KDE Network 3.2.3 (Kopete)
 
Hello,

Last night I decided to compile KDE 3.2.3 over my 3.2.2 installation. In the beginning, all went well (QT, kdelibs, kdebase, etc.).

But now, I'm stuck with a compilation error in the KDE Network package, and this error I caused when compiling Kopete (which I do not use).

Here the error message :

Quote:

kopeteprefs.cpp:349: error: no `void
KopetePrefs::setReconnectOnDisconnect(bool)' member function declared in
class `KopetePrefs'
kopeteprefs.cpp: In member function `void
KopetePrefs::setReconnectOnDisconnect(bool)':
kopeteprefs.cpp:350: error: `mReconnectOnDisconnect' undeclared (first use this
function)
kopeteprefs.cpp:350: error: (Each undeclared identifier is reported only once
for each function it appears in.)
make[4]: *** [kopeteprefs.lo] Error 1
make[4]: Leaving directory `/home/guillaume/KDE-3.2.3/kdenetwork-3.2.3/kopete/libkopete/private'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/guillaume/KDE-3.2.3/kdenetwork-3.2.3/kopete/libkopete'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/guillaume/KDE-3.2.3/kdenetwork-3.2.3/kopete'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/guillaume/KDE-3.2.3/kdenetwork-3.2.3'
make: *** [all] Error 2
This is on a LFS distro. I found two patches on Google, one from 2004-05-21 and the other one from 2004-05-29, but when appliing them, it's not working!

My question : does anyone have a solution? If not, what do I need to do if I don't want to compile Kopete (I don't mind not having it)? Is it in the Makefile or something?

Thanks a lot,

Guimauve2

Guimauve2 08-15-2004 08:31 PM

Anyone?

foo_bar_foo 08-15-2004 09:52 PM

that's odd
check in
kdenetwork/kopete/libkopete/private/kopeteprefs.h
make sure there is an entry under
public:
void setReconnectOnDisconnect( bool newSetting );
and under
private:
bool mReconnectOnDisconnect;
should be near the end of each section
(check spelling)
if something happened to them put them back.

the real strange thing is that variable is in two places above that spot
Code:

mReconnectOnDisconnect = config->readBoolEntry("ReconnectOnDisconnect", true);
config->writeEntry("ReconnectOnDisconnect", mReconnectOnDisconnect);

and for that no compiler complaints ??
this leads me to believe that something else is wrong.

make sure in kopeteprefs.h that the last }; is seen as closing the class
in emacs take the } away and put it back emacs should say
Matches class KopetePrefs : public QObject {

that's all i can think of
anyway you should be able to fix it it seems kind of straight forward

mattrogers 08-15-2004 09:56 PM

add DO_NOT_COMPILE="kopete" before typing your ./configure command.

Example:
Code:

DO_NOT_COMPILE="kopete" ./configure --prefix=/your/prefix

Guimauve2 08-17-2004 12:19 AM

foo_bar_foo -> Your method worked! It was an error of lines missing in some files.

But I ran into an other compilation error (in kopete again), of the same type :

Code:

kopeteaccount.cpp:120: error: prototype for `void
  KopeteAccount::disconnect(KopeteAccount::DisconnectReason)' does not match
  any in class `KopeteAccount'
kopeteaccount.h:309: error: candidate is: virtual void
  KopeteAccount::disconnect()
kopeteaccount.cpp: In member function `void
  KopeteAccount::disconnect(KopeteAccount::DisconnectReason)':
kopeteaccount.cpp:122: error: `KopetePrefs' undeclared (first use this
  function)
kopeteaccount.cpp:122: error: (Each undeclared identifier is reported only once
  for each function it appears in.)
kopeteaccount.cpp:122: error: parse error before `::' token
kopeteaccount.cpp:120: warning: unused parameter `
  KopeteAccount::DisconnectReason reason'
make[2]: *** [kopeteaccount.lo] Error 1
make[2]: Leaving directory `/home/guillaume/KDE-3.2.3/kdenetwork-3.2.3/kopete/libkopete'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/guillaume/KDE-3.2.3/kdenetwork-3.2.3/kopete/libkopete'
make: *** [all-recursive] Error 1

Can you help me out? I think it's the same kind or error, and the same method to resolv it (adding lines).

Thanks a lot.

mattrogers 08-17-2004 07:01 AM

what compiler are you using? I never had these errors when i compiled kopete from kdenetwork 3.2.3

Guimauve2 08-17-2004 10:19 AM

GCC 3.3.3.

But I suspect the error to be due to the patch I applied on the sources. Let me explain : libgadu won't compile, so I applied a patch found on Google.

I probably modified some files that were correctly coded. I just need (well, I hope) to find the way to add the lines that were lost.


All times are GMT -5. The time now is 10:23 AM.