LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-05-2006, 04:05 PM   #1
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Rep: Reputation: 32
Problems with GCC


I have just tried
Code:
apt-get install gcc
in the konsole of my SuSE 10.1 system and got:

gcc is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.

Then, I want to run
Code:
./configure
for a certain piece of software (Freeciv) and then I get:

checking for C99 variadic macros... no
configure: error: A compiler supporting C99 variadic macros is required

Moreover, if I write
Code:
gcc -v
in bash I see the following:

Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

Which does not seem to be the newest version. What's wrong here? I can "update" to the newest over YaST, but the same sh*t...
 
Old 07-05-2006, 04:29 PM   #2
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Original Poster
Rep: Reputation: 32
Addendum

The output of
Code:
cc -v
is (should that be of any help):

Quote:
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.0 --enable-ssp --disable-libssp --enable-java-awt=gtk --enable-gtk-cairo --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.1.0 (SUSE Linux)
Note the different architectures 586 here (and correct gcc version) and above 686 (and the wrong one), which is obviously used by ./configure... Does the problem lie here?
 
Old 07-05-2006, 04:40 PM   #3
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Original Poster
Rep: Reputation: 32
Ad Addendum

And (just for the record):
Code:
uname -p
returns:
Quote:
i686
. I thought i586 packages work fine on i686...
 
Old 07-05-2006, 05:21 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
A lot of SuSE stuff, especially 10.x is custom for SuSE. If you want a distro that isn't fussy about source packages, use debian. SuSE is pretty fussy about source packages. I have failed more times than I have succeeded to compile sources in SuSE 10.x. The other option is to go to http://rpmfind.net and see if there is a SuSE 10.x rpm for the program you want to install and dowload it. I found the best way to install rpm's in SuSE 10.x is not with yast2, but with rpm.

rpm -iv package.rpm

I think I might move away from SuSE as it is getting pretty far away from standard linux. Nothing works with it except SuSE 10.x rpm's, and it's got all kinds of windosey garbage I dislike. All that new crap doesn't make it better, it makes it worse. Yast2 can still be launched from from a shell. If you know the name of a prog you can do

yast2 --install packagename
 
Old 07-12-2006, 09:59 AM   #5
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Original Poster
Rep: Reputation: 32
A fresh installation helped, so it's just because I upgraded from 9.3 to 10.1, which isn't the best of ideas.
Not only RPMs work fine under SuSE... source packages are as easy to install as RPMs... It was my fault to upgrade "too much"...
 
  


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
Problems Compiling Problems With GCC And C++ phnxbn Linux - Software 0 11-02-2004 05:49 PM
cc (gcc) problems malbery Debian 2 08-23-2004 12:55 PM
GCC problems inanna Red Hat 4 04-28-2004 04:20 PM
GCC problems garf12 Linux - Software 1 03-07-2004 09:59 PM
Problems with gcc spooodini Linux - Software 5 10-31-2003 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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