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 > compiling bash on OSX PB

compiling bash on OSX PB
Thread Tools
rustyweaver
Guest
Status:
Reply With Quote
Nov 3, 2000, 10:15 PM
 
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.
     
Fresh-Faced Recruit
Join Date: Nov 2000
Status: Offline
Reply With Quote
Nov 6, 2000, 02:18 PM
 
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
     
   
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:40 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