LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-02-2004, 03:41 PM   #1
justinmc
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Rep: Reputation: 0
Problems with making file from source code


Hello everybody

When I download programs and try to compile them from source, more often than not, I get compiler errors which are generally simple code errors that demand fixing. Like I tried to compile mdbtools and I got an implicit definition error. Its not always this error, but its always something stupid like that.

I'm using Slack 10 with gcc 3.4.2

Any ideas as to what may be wrong?

I find it hard to believe that the program writers didn't compile and check their code.
 
Old 12-02-2004, 03:43 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 245Reputation: 245Reputation: 245
If you provide more details or actual errors, it helps tremendously in determining the problem, which can be really anything.
 
Old 12-02-2004, 04:22 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
as Linux moves along gcc keeps changing in a non-reverse compatable way for the better
fundamentals of kernel/glibc interface has changed
and all the rest of libraries API interfaces change often as well

this is the job distributions do -- put together patch/fix test and solve all the various things that won't work properly together and decide exactly which versions of things to use. and if done properly it takes quite a bit of time. look at how long debian the most stable and secure distribution spends on this. literally years and years. Linux from Scratch has still not released a stable version with the new kernel headers and 2.6 version kernel.

Quote:
I find it hard to believe that the program writers didn't compile and check their code.
its more like hard to believe anyone can ever get any of it to compile and function properly together.

Last edited by foo_bar_foo; 12-02-2004 at 04:23 PM.
 
Old 12-02-2004, 05:08 PM   #4
justinmc
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Tricky, here are some examples, I guess this is what you're asking for:

From mdbtools:
table_export.c:237: error: conflicting types for 'gmdb_table_export_populate_dialog'
table_export.c:233: error: previous implicit declaration of 'gmdb_table_export_populate_dialog' was here

from tse3:
../../../src/tse3/Notifier.h:293: error: extra `;'
../../../src/tse3/Notifier.h:370: error: using typedef-name `TSE3::Notifier<interface_type>::listener_type' after `class'
../../../src/tse3/Notifier.h:605: error: using typedef-name `TSE3::Listener<interface_type>::notifier_type' after `class'

from d4x:
about.cc: In function `void init_about_window(...)':
about.cc:222: error: `gtk_timeout_add' undeclared (first use this function)
about.cc:222: error: (Each undeclared identifier is reported only once for each function it appears in.)


and foo_bar - thanks for the reasoning behind why, but I'm more interested in a solution (if there is one)
 
Old 12-02-2004, 05:29 PM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Gcc-3.4 is stricter about syntax than gcc-3.3. A lot of old packages broke. Try googling on $PACKAGENAME gcc-3.4 patch . For example http://www.google.com/search?q=mdbtools+gcc-3.4+patch The first entry is a Gentoo bugzilla entry with a patch attached. Get used to applying patches.
 
Old 01-09-2005, 09:44 PM   #6
why2jjj
Member
 
Registered: Jan 2005
Location: Oregon
Distribution: Mandrake
Posts: 47

Rep: Reputation: 15
scary coding

I wonder how well people really know C++ coding, including gcc people on stuff that has been already presented

(but I got another one: In file included from Application.cpp:19:
../../../src/tse3/app/Record.h:39: error: extra `;')

There is this book that the father of C++, Bjarne Stroustrup, wrote called "The C++ Programming Language", which the edition I have is 1997. The extra ';' errors are due to code using namespaces ending with ';' and, according to Stroustrup back in 1997, that is illegal. So for gcc 3.4 finally enforcing stuff like that, it is WAY overdue.

Makes me wonder how educated a few C++ programmers really are.
 
  


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
which file to edit to modify source code in red hat 9.0 vinaymudgil007 Linux - Software 1 11-17-2005 06:38 AM
Need source code for making ISO files neo_in_matrix Programming 1 05-11-2005 10:01 PM
what is the file location of Redhat source code?? nazib Linux - General 1 02-26-2005 03:18 AM
How to get Source code of Gtk File Selection Widget chaits Linux - General 0 04-14-2004 09:43 AM
Problems with compiling source code cav Linux - General 4 02-06-2003 12:47 AM

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

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