Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Humour me for a moment:

Run a “port install gcc_select”

Then, once it builds, type “port select gcc” and let us know what it reports. Cheers.

p.s., And the version of Xcode you’re running is 2.5, yes?

Sorry it took me so long. I just got my WiFi Card today. Here is the error message when I try and install gcc_select:

Picture 1.png
 
View attachment 2167609

This is what I get. Samba is still not installing.

Maybe I should try Samba 2?

OK. Per that, gcc_select is installed already.

Next, try this command (no sudo or being logged into root as “sudo su” — “su” is for “superuser”, or root — necessary for this part):

port select gcc

This should now list which versions of gcc exist somewhere in your system (Apple-installed and macports-installed, combined).

For example, on my Mac (the one I’m using at the moment is a Snow Leopard box, but the effect will be the same), this is what that command reports back:

Code:
sh-4.3# port select gcc
Available versions for gcc:
    gcc40
    gcc42
    llvm-gcc42
    mp-gcc11
    mp-gcc12 (active)
    none
sh-4.3#

Note: I am already logged in on that window as “su”, so I was root for that command. When I’m logged in as my default self — not a “superuser” — it still looks the same, since I don’t need to have special permission to check what my system has )which is what the “select” command is doing):

Code:
[15:02:00] bsm@urbanologia:~$ port select gcc
Available versions for gcc:
    gcc40
    gcc42
    llvm-gcc42
    mp-gcc11
    mp-gcc12 (active)
    none
[15:07:38] bsm@urbanologia:~$


To install samba3 or any other port (note: this goes for any install, update, upgrade, set, activate, deactivate, selfupdate, or uninstall syntax in a macports command) requires either a "sudo" in front of the command or else being logged in as root/superuser, as I am, when doing macports maintenance, following a “sudo su” command.

So to install samba3, you could either go with “sudo port install samba3” (if you’re logged in the terminal window as yourself, i.e., the default) or “port install samba3” (if you’ve already run a “sudo su” command within that terminal window).

Last bit: if you’re still logged in as root/“su” (after running “sudo su” previously) and you’re done with root-level access for things like installing, self-updating (“port selfupdate”, something macports likes to have done every couple of weeks), or upgrading (“port upgrade outdated”) macports ports, you can get back to your usual self by a simple “exit” command.
 
  • Like
Reactions: VirtuallyInsane
OK. Per that, gcc_select is installed already.

Next, try this command (no sudo or being logged into root as “sudo su” — “su” is for “superuser”, or root — necessary for this part):

port select gcc

This should now list which versions of gcc exist somewhere in your system (Apple-installed and macports-installed, combined).

For example, on my Mac (the one I’m using at the moment is a Snow Leopard box, but the effect will be the same), this is what that command reports back:

Code:
sh-4.3# port select gcc
Available versions for gcc:
    gcc40
    gcc42
    llvm-gcc42
    mp-gcc11
    mp-gcc12 (active)
    none
sh-4.3#

Note: I am already logged in on that window as “su”, so I was root for that command. When I’m logged in as my default self — not a “superuser” — it still looks the same, since I don’t need to have special permission to check what my system has )which is what the “select” command is doing):

Code:
[15:02:00] bsm@urbanologia:~$ port select gcc
Available versions for gcc:
    gcc40
    gcc42
    llvm-gcc42
    mp-gcc11
    mp-gcc12 (active)
    none
[15:07:38] bsm@urbanologia:~$


To install samba3 or any other port (note: this goes for any install, update, upgrade, set, activate, deactivate, selfupdate, or uninstall syntax in a macports command) requires either a "sudo" in front of the command or else being logged in as root/superuser, as I am, when doing macports maintenance, following a “sudo su” command.

So to install samba3, you could either go with “sudo port install samba3” (if you’re logged in the terminal window as yourself, i.e., the default) or “port install samba3” (if you’ve already run a “sudo su” command within that terminal window).

Last bit: if you’re still logged in as root/“su” (after running “sudo su” previously) and you’re done with root-level access for things like installing, self-updating (“port selfupdate”, something macports likes to have done every couple of weeks), or upgrading (“port upgrade outdated”) macports ports, you can get back to your usual self by a simple “exit” command.

Hey, thanks for getting back to me. I checked the files, and it comes back like this. The gcc files aren't there, (well the ones that we need aren't). It's downloading some of them, for some reason.

Picture 3.png


So, I logged into the root, and I ran samba3 to see if it would install the gcc42 files and I am still getting errors:
Picture 4.png

The weird thing is, I can download the files from online but I can't download the samba 3 port at all, even with the ggc-42 on my computer. Everything is up to date and I am definitely on XCode 2.5:

Picture 5.png

I don't know what's wrong at all. It has storage left, and is definitely running Tiger.

Picture 6.png

Macports is up to date, I did that earlier today as well.

Aside from Samba, I am wondering if anything else is up with Macports on Tiger for the iBook. It's actually quite a capable machine for being so old if you don't push it too far. It plays music well, runs Word, can play Games, can connect to Localhost, run a few apps and browse some of the web. I am writing this reply on it rn.

Or maybe some things genuinely aren't available on Tiger. I could also try this process with my iMac G5, on Leopard. See if that downloads. Or maybe I am doing something wrong that you can detect. I've been trying to get Macports to install this darned thing for the past month now.

I know eyoungren told me to install DAVE, and I will soon, but I still want to fix this Samba3 issue first to see if I can to ensure that Tiger Macports is still running to the best of its ability. I'd like it to be. It's a very useful tool (I have it on my MBP 09 running SL, and sometimes Lion from an external enclosure).
 
Hey, thanks for getting back to me. I checked the files, and it comes back like this. The gcc files aren't there, (well the ones that we need aren't). It's downloading some of them, for some reason.

View attachment 2167791

So, I logged into the root, and I ran samba3 to see if it would install the gcc42 files and I am still getting errors:
View attachment 2167792

The weird thing is, I can download the files from online but I can't download the samba 3 port at all, even with the ggc-42 on my computer. Everything is up to date and I am definitely on XCode 2.5:

View attachment 2167800

I don't know what's wrong at all. It has storage left, and is definitely running Tiger.

View attachment 2167801

Macports is up to date, I did that earlier today as well.

Aside from Samba, I am wondering if anything else is up with Macports on Tiger for the iBook. It's actually quite a capable machine for being so old if you don't push it too far. It plays music well, runs Word, can play Games, can connect to Localhost, run a few apps and browse some of the web. I am writing this reply on it rn.

Or maybe some things genuinely aren't available on Tiger. I could also try this process with my iMac G5, on Leopard. See if that downloads. Or maybe I am doing something wrong that you can detect. I've been trying to get Macports to install this darned thing for the past month now.

I know eyoungren told me to install DAVE, and I will soon, but I still want to fix this Samba3 issue first to see if I can to ensure that Tiger Macports is still running to the best of its ability. I'd like it to be. It's a very useful tool (I have it on my MBP 09 running SL, and sometimes Lion from an external enclosure).

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):

1677888788546.png


[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.]
 
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.]

Reinstalled and checked that Command Line Tools were installed. Updated Python. Checked everything was up to date, and I got as far as gcc7, which refuses to install because I need gcc42, apparently. Gcc42 refuses to install, no matter what I do. I can't install anything with it in it because it point blank refuses to download from the servers.
Picture 7.png

Last night, I managed to install Samba through Macports on my iMac G5 running Leopard no problem. Took a while, though:

Screen Samba.png


It can fetch files fine though?
 
Reinstalled and checked that Command Line Tools were installed. Updated Python. Checked everything was up to date, and I got as far as gcc7, which refuses to install because I need gcc42, apparently. Gcc42 refuses to install, no matter what I do. I can't install anything with it in it because it point blank refuses to download from the servers. View attachment 2168870
Last night, I managed to install Samba through Macports on my iMac G5 running Leopard no problem. Took a while, though:

View attachment 2168874

It can fetch files fine though?

OK. Try this, as root:

port clean apple-gcc42

Then,

port install apple-gcc42 +bootstrap



For what it’s worth, I already had apple-gcc42 installed on my Tiger G3 iBook, but I went ahead, deactivated it, and installed it again — except this time with the +gpl3 variant selected, just to see whether it would error out on my system like it’s been doing with yours. It was able to retrieve the files and build correctly:

Code:
su-4.3# port install apple-gcc42 +gpl3
--->  Computing dependencies for apple-gcc42
--->  Fetching archive for apple-gcc42
--->  Attempting to fetch apple-gcc42-5666.3_16+gpl3.darwin_8.ppc.tbz2 from http://packages.macports.org/apple-gcc42
--->  Attempting to fetch apple-gcc42-5666.3_16+gpl3.darwin_8.ppc.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/apple-gcc42
--->  Attempting to fetch apple-gcc42-5666.3_16+gpl3.darwin_8.ppc.tbz2 from http://mirror.fcix.net/macports/packages/apple-gcc42
--->  Fetching distfiles for apple-gcc42
--->  Attempting to fetch gcc-4.2.1-4.2.4-v2.patch from https://svn.macports.org/repository/macports/distfiles/apple-gcc42
--->  Attempting to fetch gcc-4.2.1-4.2.4-v2.patch from http://distfiles.macports.org/apple-gcc42
--->  Verifying checksums for apple-gcc42                                     
--->  Extracting apple-gcc42
--->  Applying patches to apple-gcc42
--->  Configuring apple-gcc42
--->  Building apple-gcc42
--->  Staging apple-gcc42 into destroot                
--->  Installing apple-gcc42 @5666.3_16+gpl3
--->  Activating apple-gcc42 @5666.3_16+gpl3
--->  Cleaning apple-gcc42
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.                           
--->  No broken ports found.
su-4.3#
 

Could somebody here with more Macports backend insight (paging @barracuda156 @wicknix and other folks, if any of you have a moment to put minds together!) try to hypothesize what in particular is causing @VirtuallyInsane ’s G3 (running macports in Tiger) to divert in a different direction (i.e., to a g-zipped tarball) from my G3 running macports on Tiger (which looks for a patch instead)?

[note: the +bootstrap flag I suggested VirtuallyInsane to tryisn’t relevant here, as the same erroring is happening with their Mac regardless of that variant.]


Mine:

---> Attempting to fetch apple-gcc42-5666.3_16+gpl3.darwin_8.ppc.tbz2 from http://mirror.fcix.net/macports/packages/apple-gcc42
---> Fetching distfiles for apple-gcc42
---> Attempting to fetch gcc-4.2.1-4.2.4-v2.patch from https://svn.macports.org/repository/macports/distfiles/apple-gcc42


VirtuallyInsane’s:


---> Attempting to fetch apple-gcc42-5666.3_16+bootstrap.darwin_8.ppc.tbz2 from http://atl.us.packages.macports.org/apple-gcc42
---> Fetching distfiles for apple-gcc42
---> Attempting to fetch gcc-gcc-5666.3.tar.gz from http://opensource.apple.com/tarballs/gcc/



This one has me stumped, especially for something as legacy, stable, and established as apple-gcc4.2. Cheers!
 
  • Like
Reactions: VirtuallyInsane
Another option, which saves time, and already has gcc 4.2 built is this: http://macintoshgarden.org/apps/the-unofficial-tenfourfox-toolkit

It’s what i’ve been using to build things lately. Just edit your ~/.profile to include it’s paths (/opt/macports-tff/bin:/opt/macports-tff/sbin:/opt/macports-tff/usr/bin:/opt/macports-tff/usr/sbin). Done. Then just port install like usual.
 
Last edited:
Could somebody here with more Macports backend insight (paging @barracuda156 @wicknix and other folks, if any of you have a moment to put minds together!) try to hypothesize what in particular is causing @VirtuallyInsane ’s G3 (running macports in Tiger) to divert in a different direction (i.e., to a g-zipped tarball) from my G3 running macports on Tiger (which looks for a patch instead)?

[note: the +bootstrap flag I suggested VirtuallyInsane to tryisn’t relevant here, as the same erroring is happening with their Mac regardless of that variant.]


Mine:

---> Attempting to fetch apple-gcc42-5666.3_16+gpl3.darwin_8.ppc.tbz2 from http://mirror.fcix.net/macports/packages/apple-gcc42
---> Fetching distfiles for apple-gcc42
---> Attempting to fetch gcc-4.2.1-4.2.4-v2.patch from https://svn.macports.org/repository/macports/distfiles/apple-gcc42


VirtuallyInsane’s:


---> Attempting to fetch apple-gcc42-5666.3_16+bootstrap.darwin_8.ppc.tbz2 from http://atl.us.packages.macports.org/apple-gcc42
---> Fetching distfiles for apple-gcc42
---> Attempting to fetch gcc-gcc-5666.3.tar.gz from http://opensource.apple.com/tarballs/gcc/



This one has me stumped, especially for something as legacy, stable, and established as apple-gcc4.2. Cheers!

What is the problem though? tar.gz is a correct source: https://github.com/macports/macport...ef92e029a8ecefa/lang/apple-gcc42/Portfile#L45
tbz2 is pre-built port.

Obviously, either Macports is set to build from source always, or non-default prefix being used, or asked-for port variant does not exist pre-built.

If download fails however, then it is worth reporting on https://trac.macports.org
 

Do other ports download normally? It works for me right now:
Code:
10:~ svacchanda$ /usr/bin/sudo port -v -n fetch apple-gcc42
Password:
--->  Fetching distfiles for apple-gcc42
--->  gcc-5666.3.tar.gz does not exist in /opt/local/var/macports/distfiles/apple-gcc42
--->  Attempting to fetch gcc-5666.3.tar.gz from http://distfiles.macports.org/apple-gcc42
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 18.4M  100 18.4M    0     0   500k      0  0:00:37  0:00:37 --:--:--  668k

P. S. Please make sure you use Macports 2.8.1 and do sudo port sync. 2.8.0 was buggy.
 
  • Like
Reactions: B S Magnet
Another option, which saves time, and already has gcc 4.2 built is this: http://macintoshgarden.org/apps/the-unofficial-tenfourfox-toolkit

It’s what i’ve been using to build things lately. Just edit your ~/.profile to include it’s paths (/opt/macports-tff/bin:/opt/macports-tff/sbin:/opt/macports-tff/usr/bin:/opt/macports-tff/usr/sbin). Done. Then just port install like usual.
I tried this, but the install file is huge (it's 4GB, and I barely had that left on my drive, and this is with slimming the number of programs/files down, my drive is only 30GB) and it pretty much tried to take up the remaining space on my hard drive, so I didn't proceed with it. Thanks for showing me this, though, and suggesting that it might work, though.

I might try to download it at another time, on another system, and build a new version of TFF from it.

I also tried to use tiger.sh and the gcc 4.2 package downloaded fine, and it is working but when I try to install Samba3 or apple-gcc42, it refuses to install it because it needs that specific apple-gcc42 file from apple online for some reason. It just refuses to download it, and MacPorts is up to date, and all the ports are up to date.

It just won't redirect it for some strange reason.
Do other ports download normally? It works for me right now:
Yes, AFAIK.
P. S. Please make sure you use Macports 2.8.1 and do sudo port sync. 2.8.0 was buggy.
Yes, it is up to date (2.8.1) and everything has been synced/updated, all the ports are updated, and there are no updates needed to be added. It just keeps circling the same cycle and refusing to connect to the host for some reason.

Picture 10.png



I have tried numerous methods, and every single thing is up to date.

I'm not sure what I am doing wrong.

Everything is set up correctly.
 
In the grand scheme of things, when using macports, it will eat 10-20gb of space pretty fast once you start building packages. That 4gb package includes everything prebuilt that's required to build tenfourfox and interweb. Even if that wasn't your end goal, you would've ended up using that space after all the gcc's and deps built for whatever it was you were attempting to build.

Cheers
 
  • Like
Reactions: VirtuallyInsane
In the grand scheme of things, when using macports, it will eat 10-20gb of space pretty fast once you start building packages. That 4gb package includes everything prebuilt that's required to build tenfourfox and interweb. Even if that wasn't your end goal, you would've ended up using that space after all the gcc's and deps built for whatever it was you were attempting to build.

Cheers
I just had an idea. I could get a 500GB SSD, install Tiger on it, and run it from a Firewire enclosure connected to my iBook, and I install all the MacPorts stuff on it.

That would mean that I have ample space to have as many packages as I can 4GB would mean nothing then.

Everything theoretically should work then.

That should solve all my problems if nothing else is working, and gcc-42 is included in that, at least.
 
In the grand scheme of things, when using macports, it will eat 10-20gb of space pretty fast once you start building packages. That 4gb package includes everything prebuilt that's required to build tenfourfox and interweb. Even if that wasn't your end goal, you would've ended up using that space after all the gcc's and deps built for whatever it was you were attempting to build.

Cheers

If the purpose is tenfourfox, then it is as easy as https://ports.macports.org/port/tenfourfox or https://ports.macports.org/port/tenfourfox-devel

I have no idea why download fails though, it should work. The author may open a ticket at Trac and get help.
 
It's not the OP's intended purpose. However the TFF toolkit is better for most people because it's a pre-rolled macports that saves HOURS of compiling the basics needed to build anything. Why bother doing a fresh macports install, when this is the same thing in a nice package with the basics ready to go?
 
It's not the OP's intended purpose. However the TFF toolkit is better for most people because it's a pre-rolled macports that saves HOURS of compiling the basics needed to build anything. Why bother doing a fresh macports install, when this is the same thing in a nice package with the basics ready to go?

It is always good to have a choice.

I will still advocate building anew: if anything, there is a positive externality – it helps everyone else with testing.
 
  • Like
Reactions: VirtuallyInsane
So...how did that work out?

I just built Samba3 on my mini G4 and the only thing different is that now an alias shows up in Network in Finder but when I click the alias it just says "original location not found". Connect to server just ends with "password isn't correct".
 
So...how did that work out?

I just built Samba3 on my mini G4 and the only thing different is that now an alias shows up in Network in Finder but when I click the alias it just says "original location not found". Connect to server just ends with "password isn't correct".

Since 10.4 is [still] an officially supported system, if the port does not work, please open a ticket at https://trac.macports.org
 
Pretty sure it's working. No errors or broken files. I just wish there were, you know, like a basic user manual for Macports but I can't even find out what Samba3 looks like or how to use it based on whatever github says, which is just as sparse. The description is along the lines of "it makes your system work with Samba 3". Compelling.

Anyway, I use findsmb in terminal and the only thing that shows up is the G4 itself. I can ping the Mac that is hosting.
99% of the time I try to Connect to Server it ends with "name or password may be incorrect" and the only time it doesn't end with that it says "can't connect because some data may be read-only".
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.