LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-05-2011, 12:07 AM   #1
malayo
Member
 
Registered: Dec 2010
Posts: 130

Rep: Reputation: 1
gngeo compile failed


I'm using Debian Squeeze AMD64

gngeo version 0.7

after i ran ./configure

i got these error messages when I ran make
Code:
make[3]: *** [star_interf.o] Error 1
make[3]: Leaving directory `/home/malayo/games/gngeo/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/malayo/games/gngeo/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/malayo/games/gngeo'
make: *** [all-recursive-am] Error 2
 
Old 02-05-2011, 12:21 AM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Just before those error messages, what was the output of some sub-processes? Like gcc for example? You should see something like this:

Code:
blah.c:1: error: <something>...
Of course, the exact file, line, and error message may vary.
 
Old 02-05-2011, 01:11 AM   #3
malayo
Member
 
Registered: Dec 2010
Posts: 130

Original Poster
Rep: Reputation: 1
i ran 'make' again after 'make clean' but this time suppressed the error to a file
$ make 2> compile-error

when i search for error:
$ grep error: compile-error
Code:
star_interf.c:44: error: initializer element is not computable at load time
star_interf.c:44: error: (near initialization for ‘pretend_programfetch[4].offset’)

Last edited by malayo; 02-05-2011 at 01:12 AM.
 
Old 02-05-2011, 01:19 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
When the files ( any.c, any.h ) have a time stamp, that says 2006 :

cd gngeo-0.7/ && export CC=gcc-4.1 CXX=g++-4.1 && ./configure

make : No errors on Debian Squeeze, 64bits.

..
 
Old 02-05-2011, 02:57 AM   #5
malayo
Member
 
Registered: Dec 2010
Posts: 130

Original Poster
Rep: Reputation: 1
yeah...all .c & .h time stamps are on 2006

i managed to install gcc 4.1 but g++ 4.1 is not available on squeeze

i tried with --ignore-dependends but no luck
# dpkg -i /home/malayo/Downloads/g++-4.1_4.1.2-25_amd64.deb --ignore-depends=libstdc++6-4.1-dev,gcc-4.1,gcc-4.1-base
Code:
(Reading database ... 191833 files and directories currently installed.)
Preparing to replace g++-4.1 4.1.2-25 (using .../g++-4.1_4.1.2-25_amd64.deb) ...
Unpacking replacement g++-4.1 ...
dpkg: error processing --ignore-depends=libstdc++6-4.1-dev,gcc-4.1,gcc-4.1-base (--install):
 cannot access archive: No such file or directory
dpkg: dependency problems prevent configuration of g++-4.1:
 g++-4.1 depends on gcc-4.1-base (= 4.1.2-25); however:
  Version of gcc-4.1-base on system is 4.1.2-29.
 g++-4.1 depends on gcc-4.1 (= 4.1.2-25); however:
  Version of gcc-4.1 on system is 4.1.2-29.
 g++-4.1 depends on libstdc++6-4.1-dev (= 4.1.2-25); however:
  Package libstdc++6-4.1-dev is not installed.
dpkg: error processing g++-4.1 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 --ignore-depends=libstdc++6-4.1-dev,gcc-4.1,gcc-4.1-base
 g++-4.1
 
Old 02-05-2011, 04:57 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Sorry, I didn't look for g++-4.1 ( I don't have one installed either.)

Actually, it doesn't matter, if you have g++, when all files are c.
I.e. with no c++ files, gcc will do.

'export CC=gcc-4.1 && ./configure' would be more correct.



If there really had been some c++ code, there is another solution.
Also : Dependencies cannot be ignored for a compiler :
Then it cannot produce binaries.

..

Last edited by knudfl; 02-05-2011 at 05:00 AM.
 
Old 02-05-2011, 05:53 AM   #7
malayo
Member
 
Registered: Dec 2010
Posts: 130

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by knudfl View Post
Sorry, I didn't look for g++-4.1 ( I don't have one installed either.)

Actually, it doesn't matter, if you have g++, when all files are c.
I.e. with no c++ files, gcc will do.

'export CC=gcc-4.1 && ./configure' would be more correct.



If there really had been some c++ code, there is another solution.
Also : Dependencies cannot be ignored for a compiler :
Then it cannot produce binaries.

..
during configurations there are a few tools that is not available in squeeze
are needed even after I installed automake
Code:
checking for working aclocal-1.4... missing
checking for working automake-1.4... missing
symlinking doesn't seem to work, i'm still having the same 'missing' message during configuration
# ln -s /usr/bin/aclocal /usr/bin/aclocal-1.4

any idea?

Last edited by malayo; 02-05-2011 at 05:56 AM.
 
Old 02-05-2011, 07:13 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
http://prdownload.berlios.de/gngeo/gngeo-0.7.tar.gz
http://download.berlios.de/gngeo/gngeo-0.7.tar.gz
This source code package has a 'configure' script included.

./configure
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
.
Just ignore, the autotools are used for creating 'configure'.
Ref. post #2 : 'make' will finish with no errors.

..
 
Old 02-05-2011, 08:26 AM   #9
malayo
Member
 
Registered: Dec 2010
Posts: 130

Original Poster
Rep: Reputation: 1
I don't know what I had missed but it seems that I'm still getting the same error after 'rm -rf' gngoe folder, extract, ran configure & make allover again

i attach the error output as it is 2k+ lines of error messages
Attached Files
File Type: txt error.txt (240.3 KB, 17 views)

Last edited by malayo; 02-05-2011 at 08:29 AM.
 
Old 02-05-2011, 09:20 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Be aware, that the command 'export CC=gcc-4.1' is temporary and will
reset to 'gcc', when you exit the terminal.

Just type everything in one line :
'export CC=gcc-4.1 && ./configure && make' <ENTER>

..
 
  


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
Compile OOo failed micder Slackware 2 06-18-2010 07:08 AM
OpenPBS failed compile -- need some help -- GUIPenguin Linux - Software 1 03-02-2006 09:54 PM
program failed to compile, now what? Blocko SUSE / openSUSE 2 03-31-2005 07:18 PM
ndiswrapper failed to compile r_squared Linux - Wireless Networking 3 11-08-2004 07:50 AM
gngeo and sdl problem huntermix Slackware 0 08-12-2004 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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