help compiling

michaeljh2000

Registered
I have Fink installed and I'm trying to use it to install various programs. When I try to compile them, I recieve a message that states I must compile with gcc 4.0.0 and that I have got 4.0.1 selected. In order to correct this, a message then states to run command "sudo gcc_select 4.0", which I do, then I get another message that says I'm already using 4.0 as the default compiler. How do I get the compiler to run with gcc 4.0.0?

Running Tiger 10.4.3 and I have installed the developer tools.
 
Try "gcc --version" and see what you're actually running. Then try "gcc_select -l" and see what your options are. If you have 4.0 available, you can try forcing the issue with "gcc -force 4.0".

I have a clean install of 10.4.3, and my gcc version in use is this:

powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 (Apple Computer, Inc. build 5026)

It's possible that Fink is using a gcc that it installed itself. See if there's a binary at

/sw/bin/gcc

If so, you may want to uninstall that via Fink (preferred), or just move the binary. You could

sudo mv /sw/bin/gcc /sw/bin/gcc.disable

and see if that forces Fink to look for the system gcc.
 
I’m running version 4.0.1. My options include 4.0, but gcc –force 4.0 did not work. I did not see a binary at /sw/bin/gcc.

I tried many different things, including removing the following:

powerpc-apple-darwin8-gcc-4.0.1
powerpc-apple-darwin8-g++-4.0.1
i686-apple-darwin8-gcc-4.0.1
i686-apple-darwin8-g++-4.0.1

Then when I tried to compile I got a message that I had selected an unknown compiler. I installed the SDK again, which installed the items I had removed.

It still is trying to use version 4.0.1 of the compiler.
 
If you've installed Xcode 2.2, you'll need to remove that and install Xcode 2.1, as the latest version of Xcode has some problems with fink.
 
I deleted 2.2 and reinstalled 2.1. That didn't do it, so I then deleted the sw and sub directories, reinstalled Fink 0.8.0 with a few errors, but I can now successfully compile.
My new problem seems to be running X11. I installed it with SDK and looked for it under applications/utilities, but I cannot find X11.app.
My goal is to run unix apps installed with Fink. From what I understand, the unix apps need to be executed under X11.

BTW: Thanks for the help you guys have given me. :D
 
michaeljh2000 said:
My goal is to run unix apps installed with Fink. From what I understand, the unix apps need to be executed under X11.

No, you need X11 only to run X11 -programs. Other (console) programs work just fine on Terminal.app (I use ITerm.app, but that is another story).
 
Ok, but I still cannot find X11.app. If I try install the X11User.pkg, I get a message that states that I "cannot install X11 on this volume. Newer software already exists on your computer." Alright, so where is it? When I use the find function it does not appear anywhere.

Also, when I try to execute ethereal with terminal.app, I get a gtk warning cannot open display. What am I doing wrong?
 
I think it's complaining about the X11 SDK that was installed with Xcode. I think you are meant to install the X11 user packages before installing the SDK as the SDK contains some newer files but not the complete X11 package.
 
Back
Top