LinuxQuestions.org
Help answer threads with 0 replies.
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 07-19-2004, 06:01 AM   #1
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31

Rep: Reputation: 15
Compiling Errors when : [$ make]


I'm trying to install arson0.9.7 on my system.

I've had some problems with packages, but managed to install the right ones.
But now, when issuing "make" I get this error :

Code:
programpage.cpp:53:1: missing terminating " character
programpage.cpp:54: error: `group' was not declared in this scope
programpage.cpp:54: error: syntax error before `=' token
programpage.cpp:54:21: warning: multi-character character constant
programpage.cpp:55:31: warning: character constant too long for its type
programpage.cpp:56:31: warning: character constant too long for its type
programpage.cpp:59:21: warning: multi-character character constant
programpage.cpp:60:31: warning: character constant too long for its type
programpage.cpp:61:31: warning: character constant too long for its type
programpage.cpp:64:21: warning: multi-character character constant
programpage.cpp:65:31: warning: character constant too long for its type
programpage.cpp:66:31: warning: character constant too long for its type
programpage.cpp:69:21: warning: multi-character character constant
programpage.cpp:70:31: warning: character constant too long for its type
programpage.cpp:71:31: warning: multi-character character constant
programpage.cpp:74:21: warning: multi-character character constant
programpage.cpp:75:31: warning: character constant too long for its type
programpage.cpp:76:31: warning: character constant too long for its type
programpage.cpp:79:21: warning: multi-character character constant
programpage.cpp:80:31: warning: character constant too long for its type
programpage.cpp:81:31: warning: character constant too long for its type
programpage.cpp:84:21: warning: multi-character character constant
programpage.cpp:85:31: warning: character constant too long for its type
programpage.cpp:86:31: warning: character constant too long for its type
programpage.cpp:88:12: missing terminating " character
programpage.cpp:103: error: syntax error before `->' token
programpage.cpp:104: error: syntax error before `->' token
programpage.cpp:105: error: syntax error before `->' token
programpage.cpp:106: error: syntax error before `->' token
programpage.cpp:107: error: syntax error before `->' token
programpage.cpp:108: error: ISO C++ forbids declaration of `fillProgramList' with no type
programpage.cpp:111: error: `writer_drv' was not declared in this scope
programpage.cpp:111: error: ISO C++ forbids declaration of `fillDriverList' with no type
programpage.cpp:112: error: `source_drv' was not declared in this scope
programpage.cpp:112: error: ISO C++ forbids declaration of `fillDriverList' with no type
programpage.cpp:112: error: redefinition of `int fillDriverList'
programpage.cpp:111: error: `int fillDriverList' previously defined here
programpage.cpp:113: error: syntax error before `->' token
programpage.cpp:114: error: syntax error before `->' token
programpage.cpp:117: error: ISO C++ forbids declaration of `pl' with no type
programpage.cpp:118: error: `driver_group' was not declared in this scope
programpage.cpp:119: error: syntax error before `->' token
programpage.cpp:120: error: syntax error before `->' token
programpage.cpp:122: error: ISO C++ forbids declaration of `setupProgramPrefs' with no type
programpage.cpp:124: error: `program_list' was not declared in this scope
programpage.cpp:125: error: invalid use of `this' at top level
programpage.cpp:125: error: ISO C++ forbids declaration of `connect' with no type
programpage.cpp:125: error: `int QObject::connect' is not a static member of `class QObject'
programpage.cpp:125: error: initializer list being treated as compound expression
programpage.cpp:127: error: invalid use of `this' at top level
programpage.cpp:127: error: ISO C++ forbids declaration of `connect' with no type
programpage.cpp:127: error: `int QObject::connect' is not a static member of `class QObject'
programpage.cpp:127: error: initializer list being treated as compound expression
programpage.cpp:128: error: syntax error before `}' token
{standard input}: Assembler messages:
{standard input}:21: Error: symbol `fillDriverList' is already defined
{standard input}:39: Error: symbol `_ZN7QObject7connectE' is already defined
make[3]: *** [programpage.o] Error 1
make[3]: Leaving directory `/home/maxwell/tmp/arson-0.9.7-kde3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/maxwell/tmp/arson-0.9.7-kde3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/maxwell/tmp/arson-0.9.7-kde3'
make: *** [all] Error 2
Where do I begin in solving this problem ?
Help would be extremely appreciated
 
Old 07-19-2004, 12:48 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
A lot of the time, compile errors get significantly cleaned up if you correct the first error reported; not always but usually.

I haven't used arson personally, so I can only speculate about things, but here's the list of things I would go through

1. Did you need to modify any of the source code as part of the configuration/install process? Was the file that dies a file you modified? If so, double check any changes you made

2. I assume you tried compiling arson prior to installing its dependencies. If you got past the configure script and actually ran make before having all the support software, then there is a (small) chance that the failed attempt to compile is influencing the current attempt. Issue a make clean if the Makefile supports it. If not (or you're paranoid like me), wipe the source tree completely and re-extract

3. Did you get the source tarball directly from a CVS repository, or is it a stable version? If you got it from CVS, I would try getting a stable version to see if it compiles. If the stable version compiles, then it's something wrong with the code, and you should update getting another copy from CVS (they may have fixed it), or just using the stable version.

4. If all of the above fail, and you're absolutely positive you have all the dependencies, then it could very well just be a mistake in the code. Check the website you downloaded for a possible patch file, or you may have to do some code hacking. In short, the first error message displayed is telling you the compiler didn't find a closing double-quote when it expected to find one. It's also telling you where the error happened: line 51 in file /home/maxwell/tmp/arson-0.9.7-kde3/src/programpage.cpp. You can crack open the file and snoop around. If you see something that looks like an obvious mistake on or around line 51, then you can change it, and try another compile. If you decide to modify the file, I would suggest making a backup as a reference.
 
Old 07-19-2004, 07:39 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
this is an incompatability with your compiler

i bet you can fix it yourself
go to
programpage.cpp
line # 53
it says there is a missing closing "
all the rest of the errors are likely because of this
check to see if a line of code is seperated over multiple physical lines
no doubt the missing closing " is just one line down
try to put that line of code back together on one line and fix the trouble
 
Old 07-20-2004, 07:10 PM   #4
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31

Original Poster
Rep: Reputation: 15
Thank you both, now I at least now what the error-message was saying to me.

But I would appreciate some help with this, I've never done this before.

Do i put the " at the end of line 53 ?
Because this what I get

Code:
This is what the original file says

{52} const char *program_sequence =
{53}"<?xml version='1.0'?><programs>
        <group desc='%1'>
                <program name='cdrdao'/>
                <program name='cdrecord'/>
        </group>

        <group desc='%2'>
                <program name='cdrecord'/>
                <program name='cdrdao'/>
        </group>

        <group desc='%3'>
                <program name='cdrdao'/>
                <program name='readcd -> cdrecord'/>
        </group>
       <group desc='%4'>
                <program name='bladeenc'/>
                <program name='LAME'/>
        </group>

        <group desc='%5'>
                <program name='cdrecord'/>
                <program name='cdrdao'/>
        </group>

        <group desc='%6'>
                <program name='cdda2wav'/>
                <program name='cdparanoia'/>
        </group>

        <group desc='%7'>
                <program name='cdrecord'/>
                <program name='cdrdao'/>
        </group>
{88}</programs>";
Code:
This is after setting " at the end of line 53, and removing the " at the end of 88
const char] *program_sequence =
"<?xml version='1.0'?><programs>"
        <group desc='%1'>
                <program name='cdrdao'/>
                <program name='cdrecord'/>
....
<group desc='%7'>
                <program name='cdrecord'/>
                <program name='cdrdao'/>
        </group>
</programs>;
Still a lot of red...

Last edited by Maxwell Rain; 07-20-2004 at 07:30 PM.
 
Old 07-20-2004, 08:35 PM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
First off: ewwww... talk about one giganto string.

Anyway, I have a solution, but one that will take some work. What the programmer is trying to do is set up some default configuration/menu items. He's doing this by trying to put a looooooooooong piece of text in memory. That's perfectly legal (a bit odd in my opinion), but the compiler doesn't like it.

I copied the code you gave below into a text editor and futzed with it a bit. I got it to compile and print the text. I put double quotes at the beginning and end of each line (starting at line 53 all the way down to 88). You'll only need to add one double quote on lines 53 and 88 since they already have one in the right place. If you make these changes, save off the original as a backup, compile again, and see what happens. If you still get the same error, then the "real" problem is somewhere before line 53. We'll cross that bridge if we come to it.

Here's a short snippet of what I was talking about earlier...
Code:
  const char *program_sequence =
  "<?xml version='1.0'?><programs>"
  "  <group desc='%1'>"
  "          <program name='cdrdao'/>"
  "          <program name='cdrecord'/>"
  "  </group>"

Last edited by Dark_Helmet; 07-20-2004 at 08:37 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling the Kernel - errors in make menuconfig ARCH=um donoh Ubuntu 2 04-11-2005 01:43 PM
Compiling errors with mythtv... make doesnt find correct path Samppa72 Linux - Software 2 08-17-2004 01:42 PM
make errors while compiling a kernel naild2thefloor *BSD 4 02-28-2004 03:43 PM
Make Segfaults Or Spews Random Errors When Compiling 2.6 kernel johnleemk Linux - Software 3 01-04-2004 03:24 PM
Make Segfaults Or Spews Random Errors When Compiling 2.6 kernel johnleemk Linux - General 0 12-28-2003 09:50 AM

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

All times are GMT -5. The time now is 01:34 AM.

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