LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-23-2004, 03:35 PM   #1
darkblade
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian unstable
Posts: 11

Rep: Reputation: 0
Unhappy Many errors when 'make'ing (example: error: syntax error before `::' token)


Hey guys, i am having a heck of a time compiling, i am a newb to linux, and if this belongs in the newbie forum please forgive me, i wasn't sure where exactly to put this. I am trying to install Kpager2 for Kicker in KDE 3.3 (http://www.kde-look.org/content/show.php?content=7120). After downloading countless libraries and dev files i finally got through the ./configure process. I then moved on to 'make'. The following are the errors produced at the end of the make process. I am not sure if I need to post the entire make process, i assume i don't.

Code:
/usr/share/qt3/bin/moc ./kpagermainwin.h -o kpagermainwin.moc.cpp
if /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/share/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -MT kpagermainwin.moc.lo -MD -MP -MF ".deps/kpagermainwin.moc.Tpo" \
  -c -o kpagermainwin.moc.lo `test -f 'kpagermainwin.moc.cpp' || echo './'`kpagermainwin.moc.cpp; \
then mv -f ".deps/kpagermainwin.moc.Tpo" ".deps/kpagermainwin.moc.Plo"; \
else rm -f ".deps/kpagermainwin.moc.Tpo"; exit 1; \
fi
kpagermainwin.moc.cpp:22: error: syntax error before `::' token
kpagermainwin.moc.cpp:27: error: syntax error before `::' token
kpagermainwin.moc.cpp:28: error: `KPagerMainWindow' was not declared in this 
   scope
kpagermainwin.moc.cpp:28: error: parse error before `::' token
kpagermainwin.moc.cpp:31: error: syntax error before `::' token
kpagermainwin.moc.cpp:39: error: syntax error before `::' token
kpagermainwin.moc.cpp:50: error: syntax error before `::' token
kpagermainwin.moc.cpp:59: error: ISO C++ forbids declaration of `metaObj' with 
   no type
kpagermainwin.moc.cpp:67: error: invalid conversion from `QMetaObject*' to `int
   '
kpagermainwin.moc.cpp:68: error: syntax error before `.' token
kpagermainwin.moc.cpp:72: error: syntax error before `::' token
kpagermainwin.moc.cpp:81: error: syntax error before `::' token
kpagermainwin.moc.cpp:91: error: syntax error before `::' token
kpagermainwin.moc.cpp:97: error: syntax error before `::' token
kpagermainwin.moc.cpp:102: error: syntax error before `::' token
kpagermainwin.moc.cpp:28: warning: `QMetaObjectCleanUp 
   cleanUp_KPagerMainWindow(...)' declared `static' but never defined
make[2]: *** [kpagermainwin.moc.lo] Error 1
make[2]: Leaving directory `/home/dark/kpager2-0.5.2/kpager2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dark/kpager2-0.5.2/kpager2'
make: *** [all] Error 2
ANY help would be greatly appreciated, I hope the answer isn't staring me in the face, I would feel dumb if that were the case.
Thanks guys
 
Old 09-23-2004, 04:11 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
i see this on kde-apps.org

Quote:

If there are any problems during compilation in kpagermainwin.moc.cpp, insert at the very beginning of this file:
o #include "version.h"
o #ifndef KPAGER_IS_APPLET
and at the very end:
o #endif
(It seems the moc compiler has problems in understanding #ifdefs).
(they don't mean to include the "o"s in the file)
 
Old 09-23-2004, 04:27 PM   #3
darkblade
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian unstable
Posts: 11

Original Poster
Rep: Reputation: 0
hey, yeah, i added those to the file, and i still get the exact same errors
 
Old 10-08-2004, 11:00 PM   #4
storyteller
Member
 
Registered: Oct 2003
Location: Nevada US
Distribution: Mandrake 9.1
Posts: 34

Rep: Reputation: 15
You will notice that there is a 2nd file named kpagermainwin.moc.cpp in the src folder. It is this file that must be appended.
I had the same issue ;-)
 
Old 10-08-2004, 11:50 PM   #5
darkblade
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian unstable
Posts: 11

Original Poster
Rep: Reputation: 0
hey storyteller, thanks for the reply, although i'm a complete newb to linux and i'm not sure what you mean by appended could you explain please?
 
Old 03-02-2005, 04:00 PM   #6
storyteller
Member
 
Registered: Oct 2003
Location: Nevada US
Distribution: Mandrake 9.1
Posts: 34

Rep: Reputation: 15
If there are any problems during compilation in kpagermainwin.moc.cpp, insert at the very beginning of this file:
o #include "version.h"
o #ifndef KPAGER_IS_APPLET
and at the very end:
o #endif

I believe you are attempting to do this to the wrong file. You will find 2 files named kpagermainwin.moc.cpp: One in the top kpager2 folder and one in the src subfolder. It is the one in the subfolder that must be edited as above
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
syntax error near unexpected token `fi' Warmduvet Programming 21 10-08-2013 11:28 AM
Authentication Token Manipulation Error manfernandez Linux - Security 10 06-06-2008 12:49 PM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 07:09 PM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 05:51 PM
Undecodable token error ?? Thymox Linux - General 3 11-18-2002 07:11 PM


All times are GMT -5. The time now is 10: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration