LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-15-2004, 02:59 PM   #1
Guimauve2
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian sarge and LFS (Linux From Scratch)
Posts: 14

Rep: Reputation: 0
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
 
Old 08-15-2004, 08:31 PM   #2
Guimauve2
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian sarge and LFS (Linux From Scratch)
Posts: 14

Original Poster
Rep: Reputation: 0
Anyone?
 
Old 08-15-2004, 09:52 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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
 
Old 08-15-2004, 09:56 PM   #4
mattrogers
LQ Newbie
 
Registered: Jan 2003
Distribution: Archlinux
Posts: 16

Rep: Reputation: 0
add DO_NOT_COMPILE="kopete" before typing your ./configure command.

Example:
Code:
DO_NOT_COMPILE="kopete" ./configure --prefix=/your/prefix
 
Old 08-17-2004, 12:19 AM   #5
Guimauve2
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian sarge and LFS (Linux From Scratch)
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 08-17-2004, 07:01 AM   #6
mattrogers
LQ Newbie
 
Registered: Jan 2003
Distribution: Archlinux
Posts: 16

Rep: Reputation: 0
what compiler are you using? I never had these errors when i compiled kopete from kdenetwork 3.2.3
 
Old 08-17-2004, 10:19 AM   #7
Guimauve2
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian sarge and LFS (Linux From Scratch)
Posts: 14

Original Poster
Rep: Reputation: 0
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.

Last edited by Guimauve2; 08-17-2004 at 10:21 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with compiling kopete (/lib/cpp error) mac1234mac Programming 1 09-14-2005 01:26 PM
Error in compiling Kopete prestoj8 SUSE / openSUSE 11 05-27-2005 07:01 PM
Installing KDE 3.2.3 w/konstruct gives Qt lib error while compiling... Intrus Mandriva 2 08-08-2004 12:08 PM
Compiling KDE apps, linker error julienp Programming 1 08-07-2003 07:25 AM
kde 3.1 compiling error, missing file or directory johnva Linux - Software 7 07-03-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration