Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Problems compiling software?

Problems compiling software?
Thread Tools
Senior User
Join Date: Nov 1999
Location: Milkyway Galaxy
Status: Offline
Reply With Quote
Feb 5, 2001, 01:18 AM
 
Just curious, but why are their so many users reporting problems compiling software? Is the gcc, plus other devel tools that Apple provides, less than adequate?

will simply downloading GCC from gcc.gnu.org & compiling it prevent further problems compiling other software?
just my $0.02



------------------
Mac OS 10: not just a new OS, but a new concept!
Death To Extremists!
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 5, 2001, 12:39 PM
 
This is due to Darwin being a bit weird. And no, downloading GCC from gcc.gnu.org won't do you any good, since it won't work. Apple is using a heavily modified version of GCC, and even so most fo the problems aren't in the compiler themselves. It's in the headers and due to certain functions not existing on Darwin. Also, lots of programs don't recognise Darwin, and barf when they see it (error error I don't know what Darwin has and doesn't have ahhhh you'll need to hack me to get me to work is the basic message).
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Feb 5, 2001, 10:06 PM
 
Every Unix has its little idiosyncracies compared to other Unices. Over time, the programmers of various packages get notified about these things and they add code or checks to account for them. Since MacOS X is pretty new (indeed, really hasn't been released yet), this process is just getting started. One example is the configure scripts -- I think the base autoconf version was only recently updated to recognize Darwin automatically, so if the last time a package developer synced up with the base autoconf distribution was before the point that the Darwin recognition was added to it, then that package won't recognize Darwin out of the box and the config.* templates from /usr/libexec must be used.

It's actually encouraging to see how many packages build out of the box right now -- it means that Darwin doesn't do *too* much unique stuff, at least in terms of deviating from the POSIX APIs.
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Feb 7, 2001, 09:36 AM
 
Pretty much, Apple has placed things in non-standard Linux locations, so Linux programs need a bit of help finding files and programs.

Running programs remotely (like BitchX) needs the termcap to be copied to /etc/termcap rather than /usr/share/misc/termcap.
Copy config.guess and config.sub to the compile location.
gcc can be linked to cc.
I think that'll fix most problems.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2