LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2002, 03:46 PM   #1
SuperSadSmile
Member
 
Registered: Sep 2002
Location: Italy
Distribution: MDK9
Posts: 45

Rep: Reputation: 15
Compiling in Mdk9


I had a RH73.
Now I moved to a Mdk9.

I'm not a Linux guru of course, so maybe i'm just screwing up something.

But why th hell to compile seems to be quite an impossible thing to me in Mandrake. In RedHat sometime happens to win. Now I'm getting sick of the whole thing.

Is there something I have to install before try to do a 'configure/make/make install' thing'?

I quote a prototype of my installation errors:

[root@localhost kwebget]# make
make all-recursive
make[1]: Entering directory `/compile/kwebget'
Making all in kwebget
make[2]: Entering directory `/compile/kwebget/kwebget'
Making all in wizard
make[3]: Entering directory `/compile/kwebget/kwebget/wizard'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/compile/kwebget/kwebget/wizard'
make[3]: Entering directory `/compile/kwebget/kwebget'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -O2 -fno-exceptions -fno-check-new -c main.cpp
In file included from mainconf.h:42,
from kwebget.h:47,
from main.cpp:20:
listenterdialog.h:86:7: warning: no newline at end of file
In file included from kwebget.h:48,
from main.cpp:20:
optconf.h:56:7: warning: no newline at end of file
In file included from kwebget.h:60,
from main.cpp:20:
wizard/kwgwizard.h:91:7: warning: no newline at end of file
main.cpp: In function `int main(int, char**)':
main.cpp:35: `VERSION' undeclared (first use this function)
main.cpp:35: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:65:2: warning: no newline at end of file
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/compile/kwebget/kwebget'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/compile/kwebget/kwebget'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/compile/kwebget'
make: *** [all-recursive-am] Error 2
 
Old 11-24-2002, 04:13 PM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
maybe it's the easiest way out to add some newlines to the end of the files the compiler complains about:

optconf.h:56:7: warning: no newline at end of file
listenterdialog.h:
wizard/kwgwizard.h

i guess that should do.good luck
jens
 
Old 11-25-2002, 12:15 PM   #3
SuperSadSmile
Member
 
Registered: Sep 2002
Location: Italy
Distribution: MDK9
Posts: 45

Original Poster
Rep: Reputation: 15
But that is not just a warning??
I mean it seemed to me that was the VERSION thing
the big fellas here?
Am I wrong?

SuperSadSmile
 
Old 11-25-2002, 12:35 PM   #4
SuperSadSmile
Member
 
Registered: Sep 2002
Location: Italy
Distribution: MDK9
Posts: 45

Original Poster
Rep: Reputation: 15
You see, it happens also with quanta, it seems to be
a 'VERSION' problem to me:

...........
make[3]: Leaving directory `/compile/quanta-3.0/quanta/project'
make[3]: Entering directory `/compile/quanta-3.0/quanta'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include -I../quanta/dialogs -I../quanta/tagdialogs -I../quanta/toolbar -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -c quanta_init.cpp
quanta_init.cpp: In member function `void QuantaApp::initQuanta()':
quanta_init.cpp:167: make[3]: Leaving directory `/compile/quanta-3.0/quanta/project'
make[3]: Entering directory `/compile/quanta-3.0/quanta'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include -I../quanta/dialogs -I../quanta/tagdialogs -I../quanta/toolbar -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -c quanta_init.cpp
quanta_init.cpp: In member function `void QuantaApp::initQuanta()':
quanta_init.cpp:167: 'VERSION' undeclared (first use this function)
quanta_init.cpp:167: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [quanta_init.o] Error 1
make[3]: Leaving directory `/compile/quanta-3.0/quanta'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/compile/quanta-3.0/quanta'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/compile/quanta-3.0'
make: *** [all-recursive-am] Error 2
undeclared (first use this function)
quanta_init.cpp:167: (Each undeclared identifier is reported only once for each function it appears in.)
make[3]: *** [quanta_init.o] Error 1
make[3]: Leaving directory `/compile/quanta-3.0/quanta'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/compile/quanta-3.0/quanta'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/compile/quanta-3.0'
make: *** [all-recursive-am] Error 2
 
Old 11-26-2002, 05:29 AM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
sorry, u're right about the warning - they dont count usually
maybe u can post parts of main.cpp particularly line 35.
seems there's sth wrong with it cause compiler takes "VERSION..." as a function. maybe u can comment that out.
but i hope someone else knows better;-)
cheers, jens
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X-Downloader for Mdk9.2. akihandyman Mandriva 0 11-23-2004 05:33 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 07:56 PM
LAN mdk9.1 and mdk9.0 linuxfond Linux - Networking 1 05-09-2003 01:49 PM
mdk9 update aze Linux - Software 8 12-12-2002 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:40 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