LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-07-2002, 01:00 PM   #1
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
compilation error in some progs


hello

I tried to compile zsnes, and snes9x.

both programs use a file called unzip.h (they have, their own separate versions) However, at some parts the files are the same. for example, both header files contain this line:

extern unzFile ZEXPORT unzOpen OF((const char *path));

and either program wont compile because gcc gets a parse error at these lines.

what migt be the broblem, it is probably not the source itself, because, i cant imagine, that two programmers made the same mistake completely independently from eachother.

might be the problem, that I have a broken gcc installation? everything else works fine for me.

i have glibc225 gcc3.0.4 ant i tried snes9x v1.39 and zsnes 1.36

thanks for everything in advance

raven
 
Old 11-07-2002, 03:52 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Do you have a config.log file for each prog?

Errors will need to be sent somewhere... and they give lots of useful info such as version conflicts ets.
 
Old 11-07-2002, 04:24 PM   #3
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Original Poster
Rep: Reputation: 31
the error occures when "make" ing , so I wouldnt know if there is a cog file for it. config.log didnt complain about anything.

any other ideas?

thanks

raven
 
Old 11-07-2002, 05:19 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Do the make again, but add this...

make > make.log

This will redirect the usual screen output into the make.log file for reading later.
Same as the config.log file (or whatever it is called) look for signs of protest, version errors, unexpected termination etc.
 
Old 11-07-2002, 06:11 PM   #5
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Original Poster
Rep: Reputation: 31
thats all I get. make doesnt even compile the fist line and outputs instantly this:


zip/unzip.h:112: parse error before "unzStringFileNameCompare"
zip/unzip.h:125: parse error before "unzOpen"
zip/unzip.h:125: warning: type defaults to `int' in declaration of `unzOpen'
zip/unzip.h:125: warning: data definition has no type or storage class
zip/unzip.h:136: parse error before "unzClose"
zip/unzip.h:136: warning: type defaults to `int' in declaration of `unzClose'
zip/unzip.h:136: warning: data definition has no type or storage class
zip/unzip.h:143: parse error before "unzGetGlobalInfo"
zip/unzip.h:144: warning: type defaults to `int' in declaration of `unzGetGlobalInfo'
zip/unzip.h:144: warning: data definition has no type or storage class
zip/unzip.h:151: parse error before "unzGetGlobalComment"
zip/unzip.h:153: warning: type defaults to `int' in declaration of `unzGetGlobalComment'
zip/unzip.h:153: warning: data definition has no type or storage class
zip/unzip.h:164: parse error before "unzGoToFirstFile"
zip/unzip.h:164: warning: type defaults to `int' in declaration of `unzGoToFirstFile'
zip/unzip.h:164: warning: data definition has no type or storage class
zip/unzip.h:170: parse error before "unzGoToNextFile"
zip/unzip.h:170: warning: type defaults to `int' in declaration of `unzGoToNextFile'
zip/unzip.h:170: warning: data definition has no type or storage class
zip/unzip.h:177: parse error before "unzLocateFile"
zip/unzip.h:179: warning: type defaults to `int' in declaration of `unzLocateFile'
zip/unzip.h:179: warning: data definition has no type or storage class
zip/unzip.h:190: parse error before "unzGetCurrentFileInfo"
zip/unzip.h:197: warning: type defaults to `int' in declaration of `unzGetCurrentFileInfo'
zip/unzip.h:197: warning: data definition has no type or storage class
zip/unzip.h:216: parse error before "unzOpenCurrentFile"
zip/unzip.h:216: warning: type defaults to `int' in declaration of `unzOpenCurrentFile'
zip/unzip.h:216: warning: data definition has no type or storage class
zip/unzip.h:222: parse error before "unzCloseCurrentFile"
zip/unzip.h:222: warning: type defaults to `int' in declaration of `unzCloseCurrentFile'
zip/unzip.h:222: warning: data definition has no type or storage class
zip/unzip.h:229: parse error before "unzReadCurrentFile"
zip/unzip.h:231: warning: type defaults to `int' in declaration of `unzReadCurrentFile'
zip/unzip.h:231: warning: data definition has no type or storage class
zip/unzip.h:243: parse error before "unztell"
zip/unzip.h:243: warning: type defaults to `int' in declaration of `unztell'
zip/unzip.h:243: warning: data definition has no type or storage class
zip/unzip.h:248: parse error before "unzeof"
zip/unzip.h:248: warning: type defaults to `int' in declaration of `unzeof'
zip/unzip.h:248: warning: data definition has no type or storage class
zip/unzip.h:253: parse error before "unzGetLocalExtrafield"

I really cant get out any other info of make. Besides: I dont have ANY other version of unzip.h installed. I dont have zip devel files installed at all.

still an idea?

thanks

raven
 
  


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
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 04:45 AM
compilation error Varadharajan Programming 9 02-04-2007 02:56 AM
Error during Compilation vipinsharma Programming 0 05-20-2004 11:40 AM
Sqwebmail compilation error ... [maildirsearchC.o] Error 1 boogie_maan Linux - Software 0 10-26-2002 08:21 PM
compilation error guppy Linux - Newbie 1 06-15-2001 04:41 AM


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