Originally posted by rustyweaver:
Thanks very much to the ShowAllFiles posting that allows me to view all system files in the finder.
If you tried building bash 2.04 (from the www.opensource.apple.com site) on OSX PB, you may have encountered problems with an unknown host type, or multiply defined malloc symbols. Here's what worked for me.
./configure --host=powerpc-apple-netbsd1.2
edit the Makefile and remove or comment-out this line:
#MALLOC_LIB = -lmalloc
Then make, and make install as usual. make test failed the job control test, but otherwise no problems with bash to report.
Now, who knows how to change my shell from tcsh to bash? Not just in Terminal prefs, but globally. Munging /etc/passwd did not work.
For what it's worth, I downloaded the source straight from GNU site and built it as follows:
./configure --host=powerpc-apple-macos --with-gnu-malloc=no
make CC="cc -pipe" CFLAGS=-O3
I chose the host configuration by gleaning the environments set in the supplied tcsh. BTW: I think Apple should publish an "official" host info and stick to it. Try "make --version", and you get "powerpc-apple-darwin1.0". Try "gdb --version", and you get "powerpc-apple-macos10", and "uname -sr" says "Darwin 1.2". In case of bash, I think the host/target info is only needed for setting configuration info that are passed in as macros. Configure process figures out to "do the right thing" for the rest. With some other packages (like gcc and gdb), this would be a much bigger issue.
Anyway, --with-gnu-malloc=no (or --with-bash-malloc=no) configures it so you don't need to munge the resulting Makefile.
"make test" went fine for me. The job control test passed (just takes a little while to complete because, I think, it puts child processes to sleep for a while...) Only "failures" I've seen was in printf test, where floating point output didn't agree (though they were same values, so it seems harmess.)
To make bash or any other shell your default login shell, open up "NetInfoManager", go to "users" then your login name, and change the login shell from there.
10Q.
Joe