OK. I would like to try something new here, if you’ll indulge me.
From root/su, type:
port clean apple-gcc42
That will clear out from macports the queue that you were trying to build that port, successful or not.
Next, type:
port select --set gcc gcc40
Macports should report back something like, “Selecting 'gcc40' for 'gcc' succeeded. 'gcc40' is now active.” That will at least give you a working version of gcc which will be used for running gcc, as needed for the next step.
Now, type:
port install gcc7
If my hunch is on the right track, macports will try to build a more current version of gcc — gcc7 — onto your Tiger system. This is going to take a good while, so be patient (on my iBook G3/466, I recall it taking a few days). It will be worth the wait in the long run.
If things don’t go as planned and building gcc7 gives you an error, you could instead try installing gcc 4.9 (i.e., “
port install gcc49”). If, after letting it run in the background while you do other things, gcc7 successfully builds, type (again, as root):
port select gcc
This time, you should see “gcc40 (active)”, but you should also see the option for “mp-gcc7” in the list.
Now, type:
port select --set gcc mp-gcc7
(or, if you instead built gcc4.9 after gcc7 had trouble, then “
port select --set gcc mp-gcc49”.)
At this point, whatever you try to build in macports which requires gcc will rely on the much more current gcc7 (or gcc49) instead of the apple-gcc42 you’re having trouble with.
Now, try installing samba3 by first typing “
port clean samba3”, followed by “
port install samba3”.
* * *
Separately, go ahead and try re-running the Xcode 2.5 installer again — except this time, on the step after selecting the target volume but
before the “Upgrade” button, click on the “Customize” button and check to make sure the “Command Line Support” checkbox is selected. (It’s possible this was installed previously and will show a size of “0 bytes” now.) If for whatever reason it wasn’t previously, go ahead and select it now for installation.
For example, this is what I see when running the Xcode 2.5 installer on my Tiger G3, which already has Tiger 2.5 and all options installed previously (save for the 10.2.8 support and WebObjects):
View attachment 2167906
[A note about installing Xcode atop the same version of Xcode: you can do this and it won’t break anything from before; if the installer finds anything was amiss from the previous install, like a moved or modified file, it will correct the problem with the “Upgrade” button step.]