LinuxQuestions.org
Help answer threads with 0 replies.
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 01-10-2006, 02:47 AM   #1
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
Why doesn't it ever compile?


Hello!

Why whenever I try to compile something from source, it gives me some error message...almost every program I try.

The messages are always different, but the just don't compile.

Thanks!

Murdock
 
Old 01-10-2006, 02:51 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Murdock1979

Why whenever I try to compile something from source, it gives me some error message...
Like which error message?
What gives ./configure ?
 
Old 01-10-2006, 03:08 AM   #3
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Thanks,

It gives me all of the standard C errors like function not declared, pointer points to null, all those typical errors. I feel like I need to start debugging these programs.

I recently tried to compile the ati radeon video driver and ipw2200gb wireless driver.

Thanks again,
Murdock
 
Old 01-10-2006, 04:39 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I think the easiest is to reinstall gcc!!

You should have files under
/usr/include/
/usr/lib/gcc/
/usr/lib/gcc-lib/
...
 
Old 01-10-2006, 05:36 AM   #5
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
Ensure that you have entire development pacakges installed, most distribution will show you a category like "development tools", install everything that you find in development category, so that you have all dependencies installed. Also for some programs like device drivers etc. you need to have kernel source installed as well.

Now try out, it should work.
 
Old 01-10-2006, 10:26 AM   #6
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Thanks all for the help!

Here's my current development packages:
glibc-1.10.2
glib2-
gcc-3.4.4
gcc++-3.4.4

Here are the two programs:

1. ati radeon mobility driver. During compile it gives a tremendious amount of errors, but it does finally give me a module file. However, when I try to load it, it gives the error:
magic 'version 3.4' should be 'version 3.3'
What is this and how do I fix it up

2. the ipw2200bg wireless device driver. It doesn't compile. It gives a divide by zero error and a pointer error as well. Don't know what to do about that.

Thanks for any help,
Murdock
 
Old 01-10-2006, 10:34 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Murdock1979
However, when I try to load it, it gives the error:
magic 'version 3.4' should be 'version 3.3'
Because your kernel has been compiled with gcc 3.3 and that your program is compiled with gcc 3.4. So things may break.
To force the loading (which is a temporary solution until you change your kernel or your gcc) :
Code:
modprobe -f <modname>
I have ipw2200bg sources on my computer. I could try to compile it and see , tomorrow maybe
First why do you want to recompile from source, there is no binary package for your distro? strange

I still think the easiest is to reinstall a clean gcc , glibc, dev headers,...
 
Old 01-10-2006, 10:36 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
The best solution is to post your ./configure or make errors and let others help you pin point or resolve the problem.
 
Old 01-10-2006, 10:40 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Yes!
./configure
or we can't do anything
 
Old 01-10-2006, 10:50 AM   #10
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
What is ./configure? The kernel one or the specific source?

thanks,
Murdock
 
Old 01-10-2006, 12:17 PM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by Murdock1979
What is ./configure? The kernel one or the specific source?

thanks,
Murdock
When you install a program from source, usually you do ./configure, make and make install. When ./configure finishes, usually you are told of any missing packages or errors, so thats the output we need. Also if ./configure is successful and you have problems during the make process, post back the errors that get printed on the screen.
 
Old 01-11-2006, 12:55 PM   #12
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Okay,

Thanks everybody, I solved the problems...the ati driver was compiling, but there were some kernel configurations that needed to be dealt with and the ipw2200 driver was outdated, so I downloaded the latest one and it compiled great.

Thank again,
Murdock
 
  


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
How To Compile jmdlcar Slackware 25 06-02-2005 10:11 AM
Cannot compile jonn Linux - Software 2 03-28-2005 02:37 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
why won't this compile blackzone Programming 1 09-17-2004 04:51 AM
how to compile x for use on another pc??? markkreuzz Red Hat 1 03-03-2004 10:06 AM

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

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