[I sent this to fink-users accidently. But i think it depends to fink-devel. Repost, sorry.]

Dear Fink Developers

I think many of you are in the same situation: You want/should support packages in the 10.2-gcc3.3 tree but are using 10.3 as your main OS. Instead of keeping a machine with 10.2 around or restarting from another partition you could create a chroot environment. I tried to do it using the description from

<http://darwinports.gene-hacker.net/chroot-howto.html>
or
<http://darwinports.gene-hacker.net/docs/howto/chroot_10.2/>

How i did it exactly is noted below (including updating the developer tools to GCC 3.3 and the installation of Fink).

--> And here is where i need some advice:
It kind of worked but i have two problems:

1.
During the Fink bootstrap i get a lot of errors like "*** malloc_zone_malloc[26616]: argument too large: -2041" right after setting up the newly bootstrapped packages. For details see below in the section "/bin/ps crash" Has anybody seen this before? What could that be?


2.
'cvs' also seems to crash, even if i install the fink binary package of cvs. See below in the section "cvs crash".



Any help or hints would be highly appreciated. It would also help if somebody could try to reproduce my problems.


Thanks, Chris.


PS: Once these issues are solved it would probably be good to include these instructions somewhere on the fink webpage.



======================================================================== ==================================
# Detailed Instructions:
# this is a pseudo command line script for tcsh. You need to adjust it
# to your needs.


cd ~/YOUR_TEST_DIR/chroot/

hdiutil create -fs HFS+ -volname 10-2-chroot -verbose -size 4g chroot

# double-click chroot.dmg to mount it or
open ~/package-creation/chroot/chroot.dmg

cd /Volumes/10-2-chroot/
setenv CM_BUILD CM_BUILD

# insert 10.2 install CD 1

sudo installer -verbose -pkg /Volumes/Mac\ OS\ X\ Install\ Disc\ 1/System/Installation/Packages/BaseSystem.pkg -target /Volumes/10-2-chroot
sudo installer -verbose -pkg /Volumes/Mac\ OS\ X\ Install\ Disc\ 1/System/Installation/Packages/Essentials.pkg -target /Volumes/10-2-chroot
sudo installer -verbose -pkg /Volumes/Mac\ OS\ X\ Install\ Disc\ 1/System/Installation/Packages/BSD.pkg -target /Volumes/10-2-chroot



# insert Dev Tools CD


cd /Volumes/10-2-chroot/

sudo installer -verbose -pkg /Volumes/Developer\ Tools\ SDK/Packages/DevTools.pkg -target /Volumes/10-2-chroot
sudo installer -verbose -pkg /Volumes/Developer\ Tools\ SDK/Packages/DevSDK.pkg -target /Volumes/10-2-chroot
sudo installer -verbose -pkg /Volumes/Developer\ Tools\ SDK/Packages/BSDSDK.pkg -target /Volumes/10-2-chroot


cd /Volumes/10-2-chroot/Developer/
# make sure you are at the right place!!!
pwd
sudo rm -rf Applications Documentation Palettes ProjectBuilder\ Extras


# Download and install the latest developer tools
# Login to connect.apple.com
# Download the "August 2003 gcc Updater" (August2003gccUpdater.dmg.bin)
# Double click it to expand and open the .dmg file.
cd /Volumes/10-2-chroot
sudo installer -verbose -pkg /Volumes/August\ 2003\ gcc\ Updater/August2003gccUpdater.pkg -target /Volumes/10-2-chroot



# The installation is now finished


# Now chroot into it

sudo mount -t devfs devfs /Volumes/10-2-chroot/dev
sudo mount -t fdesc -o union stdin /Volumes/10-2-chroot/dev
sudo mount_volfs /Volumes/10-2-chroot/.vol

sudo chroot /Volumes/10-2-chroot/

# select gcc-3.3
gcc_select 3.3


# Install Fink
# This step produces a lot of crashes from /bin/ps. See below.
curl -o /private/tmp/fink-0.6.2-full.tar.gz http://heanet.dl.sourceforge.net/sourceforge/fink/fink-0.6.2- full.tar.gz
cd /private/tmp
tar xzf fink-0.6.2-full.tar.gz
cd fink-0.6.2-full
./bootstrap.sh /sw
source /sw/bin/init.csh; rehash


# cvs crashes, therefore use:
source /sw/bin/init.csh; rehash
fink selfupdate-rsync

apt-get update
apt-get install cvs

# cvs still crashes
fink selfupdate-cvs



======================================================================== ==================================
/bin/ps crash:


Setting up apt (0.5.4-35) ...
*** malloc_zone_malloc[26616]: argument too large: -2041


Date/Time: 2004-03-16 19:05:32 +0100 OS Version: 10.3.2 (Build 7D24) Report Version: 2

Command: ps
Path:    /bin/ps
Version: ??? (???)
PID:     26616
Thread:  0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0   <<00000000>>    0x990054c4 0 + 0x990054c4
1   <<00000000>>    0x00003460 0 + 0x3460
2   <<00000000>>    0x000051dc 0 + 0x51dc
3   <<00000000>>    0x00002718 0 + 0x2718
4   <<00000000>>    0x00002598 0 + 0x2598

PPC Thread State:
  srr0: 0x990054c4 srr1: 0x0200f030                vrsave: 0x00000000
    cr: 0x88000441  xer: 0x00000000   lr: 0x000032b4  ctr: 0xfffff7f2
    r0: 0x00000000   r1: 0xbfffe8e0   r2: 0x00000839   r3: 0x00000000
    r4: 0x0001375e   r5: 0xfffff7f2   r6: 0x0000000a   r7: 0x7267756d
    r8: 0x656e7420   r9: 0x00000000  r10: 0xbfffdec8  r11: 0x000081dc
   r12: 0x99005480  r13: 0x00000000  r14: 0x00000000  r15: 0x00000000
   r16: 0x00000000  r17: 0x00000000  r18: 0x00000000  r19: 0x00000002
   r20: 0x00000001  r21: 0x00000001  r22: 0x0004a000  r23: 0xbfffe9b4
   r24: 0xbfffe9b0  r25: 0x00055000  r26: 0xfffff807  r27: 0x00012750
   r28: 0x0001375e  r29: 0xfffff7f2  r30: 0x00000000  r31: 0x000030a8

Binary Images Description:
0x8fe00000 - 0x8fe47fff dyld    /usr/lib/dyld


======================================================================== ==================================
cvs crash:


/usr/bin/su cschaffn -c 'cvs -z3 -d:ext:[EMAIL PROTECTED]:/cvsroot/fink checkout -d fink dists'
Bus error
### execution of /usr/bin/su failed, exit code 138



Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0   <<00000000>>    0x99000f20 0 + 0x99000f20
1   <<00000000>>    0x9a485d14 0 + 0x9a485d14
2   <<00000000>>    0x9a4a1314 0 + 0x9a4a1314
3   <<00000000>>    0x9a49fd3c 0 + 0x9a49fd3c
4   <<00000000>>    0x9a49ef3c 0 + 0x9a49ef3c
5   <<00000000>>    0x9a49eefc 0 + 0x9a49eefc
6   <<00000000>>    0x9a5818d8 0 + 0x9a5818d8
7   <<00000000>>    0x9a4971d8 0 + 0x9a4971d8
8   <<00000000>>    0x9a4fca30 0 + 0x9a4fca30
9   <<00000000>>    0x9a4ffbf4 0 + 0x9a4ffbf4
10  <<00000000>>    0x9a485944 0 + 0x9a485944
11  <<00000000>>    0x9a4858d4 0 + 0x9a4858d4
12  <<00000000>>    0x9a5709ac 0 + 0x9a5709ac
13  <<00000000>>    0x9a570a00 0 + 0x9a570a00
14  dyld        0x8fe16350 call_module_initializers_for_library + 0x1e0
15  dyld        0x8fe160e4 call_module_initializers + 0x80
16  dyld        0x8fe133ac _dyld_make_delayed_module_initializer_calls + 0x68
17  <<00000000>>    0x00002118 0 + 0x2118
18  <<00000000>>    0x00002000 0 + 0x2000
19  <<00000000>>    0x00001f60 0 + 0x1f60

PPC Thread State:
  srr0: 0x99000f20 srr1: 0x0200f030                vrsave: 0x00000000
    cr: 0x22000248  xer: 0x00000000   lr: 0x9a4864ac  ctr: 0x99000f00
    r0: 0x9a4864ac   r1: 0xbfffedd0   r2: 0x000002c3   r3: 0xfffffffc
    r4: 0x00000000   r5: 0xfefefeff   r6: 0x80808080   r7: 0x9901b340
    r8: 0x001c0010   r9: 0x00000000  r10: 0x001c0290  r11: 0xaa485720
   r12: 0x99000f00  r13: 0x00000000  r14: 0xbffff420  r15: 0xbffff3b0
   r16: 0x00000000  r17: 0x8fe48a44  r18: 0x00000001  r19: 0xaa48c10c
   r20: 0xbffff540  r21: 0x00000001  r22: 0xbffff544  r23: 0x8fe4872c
   r24: 0x8fe4844c  r25: 0x9a4848b0  r26: 0x00000000  r27: 0xbfffee90
   r28: 0xbfffee10  r29: 0x00000000  r30: 0x00000000  r31: 0x9a48643c

Binary Images Description:
0x8fe00000 - 0x8fe47fff dyld    /usr/lib/dyld



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to