I had this working a month or so ago (with much help from pogma & #fink), but after a rebuild I'm stuck again. I remember overwriting a cctools .info file (from the dists module?), but can't find a newer version in dists. I also remember futzing with g++ 3 vs. gcc4, but don't know if that's relevant here.
cayenne:~/port/fink pepper$ ./bootstrap.sh
...
BOOTSTRAP PHASE THREE: installing essential packages to /sw with package
management.
The following 25 packages will be installed or updated:
apt apt-shlibs base-files bzip2 bzip2-dev bzip2-shlibs cctools-extra
debianutils dpkg fink fink-mirrors fink-prebinding gettext gettext-bin
gettext-dev gzip libiconv libiconv-bin libiconv-dev libncurses5
libncurses5-shlibs ncurses ncurses-shlibs tar unzip
The following additional package will be installed:
gettext-tools
Do you want to continue? [Y/n]
gzip -dc /sw/src/base-files-1.9.7.tar.gz | /usr/bin/gnutar -xf -
./setup.sh /sw
Creating scripts for /sw...
/bin/rm -rf /sw/src/fink.build/root-base-files-1.9.7-1
/bin/mkdir -p /sw/src/fink.build/root-base-files-1.9.7-1/sw
/bin/mkdir -p /sw/src/fink.build/root-base-files-1.9.7-1/DEBIAN
/usr/sbin/chown -R root:admin /sw/src/fink.build/root-base-files-1.9.7-1
./install.sh /sw/src/fink.build/root-base-files-1.9.7-1/sw
Creating directories...
Copying files...
Done.
/bin/rm -f /sw/src/fink.build/root-base-files-1.9.7-1/sw/info/dir /sw/src/fink.build/root-base-files-1.9.7-1/sw/info/dir.old /sw/src/fink.build/root-base-files-1.9.7-1/sw/share/info/dir /sw/src/fink.build/root-base-files-1.9.7-1/sw/share/info/dir.old
Writing control file...
Writing package script postinst...
dpkg-deb -b root-base-files-1.9.7-1 /sw/fink/dists/stable/main/binary-darwin-i386/base
dpkg-deb: building package `base-files' in `/sw/fink/dists/stable/main/binary-darwin-i386/base/base-files_1.9.7-1_darwin-i386.deb'.
dpkg -i /sw/fink/dists/stable/main/binary-darwin-i386/base/base-files_1.9.7-1_darwin-i386.deb
Selecting previously deselected package base-files.
(Reading database ... 0 files and directories currently installed.)
Unpacking base-files (from .../base-files_1.9.7-1_darwin-i386.deb) ...
Setting up base-files (1.9.7-1) ...
gzip -dc /sw/src/cctools-590.18.tar.gz | /usr/bin/gnutar -xf -
patch -p1 </sw/fink/dists/stable/main/finkinfo/base/cctools-extra.patch
patching file libstuff/guess_short_name.c
patching file misc/seg_addr_table.c
/var/tmp/tmp.1.7Oj6tq
+ pushd libstuff
/sw/src/fink.build/cctools-extra-590.18-2/cctools-590.18/libstuff /sw/src/fink.build/cctools-extra-590.18-2/cctools-590.18
+ perl -pi.bak -e 's|profile64 static_kld|profile64|g' Makefile
+ make
/bin/mkdir -p static_obj
/bin/mkdir -p dynamic_obj
/bin/mkdir -p profile_obj
/bin/mkdir -p shlib_obj
/bin/mkdir -p static64_obj
/bin/mkdir -p dynamic64_obj
/bin/mkdir -p profile64_obj
/bin/mkdir -p static_kld_obj
cc -O -g -I../../include -Wall -Wno-long-double -no-cpp-precomp -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -static -c \
-MD -dependency-file ./allocate.d \
-o ./allocate.o ../allocate.c
dyld: Library not loaded: /usr/i686-apple-darwin8/lib/libgcc_s.1.dylib
Referenced from: /usr/bin/cc
Reason: image not found
make[1]: *** [allocate.o] Trace/BPT trap
make: *** [static] Error 2
### execution of /var/tmp/tmp.1.7Oj6tq failed, exit code 2
phase compiling: cctools-extra-590.18-2 failed
Before reporting any errors, please run "fink selfupdate" and
try again. If you continue to have issues, please check to see if the
FAQ on fink's website solves the problem. If not, ask on the fink-users
or fink-beginners mailing lists. As a last resort, you can try e-mailing
the maintainer directly:
Fink Core Group <fink-core@lists.sourceforge.net>
cayenne:~/port/fink pepper$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.4.3
BuildVersion: 8F1111
cayenne:~/port/fink pepper$ gcc --version
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5250)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cayenne:~/port/fink pepper$
cayenne:~/port/fink pepper$ find . -name cctools\*info
./10.3/cctools-extra.info
./10.4-transitional/cctools-extra.info
cayenne:~/port/fink pepper$ more `find . -name cctools\*info`
Package: cctools-extra
Epoch: 1
Version: 525
Revision: 1
Source: mirror:sourceforge:fink/cctools-%v.tar.gz
Source-MD5: 3107c790a55595c6410696ebb7ea80a9
SourceDirectory: cctools-%v
Patch: %n.patch
Essential: yes
Depends: base-files
AddShlibDeps: true
CompileScript: <<
#!/bin/sh -ev
pushd libstuff
make
popd
pushd misc
make
popd
<<
InstallScript: <<
#!/bin/sh -ev
install -d -m 755 %i/sbin %i/share/man/man1 %i/share/man/man3 %i/share/man/man5
install -c -m 755 misc/check_dylib.NEW %i/sbin/check_dylib
install -c -m 755 misc/checksyms.NEW %i/sbin/checksyms
install -c -m 755 misc/dylib_pcsampler.NEW %i/sbin/dylib_pcsampler
install -c -m 755 misc/indr.NEW %i/sbin/indr
install -c -m 755 misc/kern_tool.NEW %i/sbin/kern_tool
install -c -m 755 misc/seg_addr_table.NEW %i/sbin/seg_addr_table
install -c -m 755 misc/seg_hack.NEW %i/sbin/seg_hack
install -c -m 644 man/check_dylib.1 %i/share/man/man1/
install -c -m 644 man/checksyms.1 %i/share/man/man1/
install -c -m 644 man/indr.1 %i/share/man/man1/
install -c -m 644 man/seg_addr_table.1 %i/share/man/man1/
<<
DocFiles: APPLE_LICENSE
Description: Extra software from cctools
DescDetail: <<
This package contains some extra tools from the cctools source
distribution that aren't part of Apple's official dev tools.
<<
License: OSI-Approved
Maintainer: Fink Core Group <fink-core@lists.sourceforge.net>
Homepage: http://www.opendarwin.org/
...skipping...
Package: cctools-extra
Epoch: 1
Version: 590.18
Revision: 2
Source: mirror:sourceforge:fink/cctools-%v.tar.gz
Source-MD5: f50c32165c29d3f7ef789d546003da7d
SourceDirectory: cctools-%v
Patch: %n.patch
Essential: yes
Depends: base-files
CompileScript: <<
#!/bin/sh -ex
pushd libstuff
perl -pi.bak -e 's|profile64 static_kld|profile64|g' Makefile
make
popd
pushd misc
make
popd
<<
InstallScript: <<
#!/bin/sh -ex
install -d -m 755 %i/sbin %i/share/man/man1 %i/share/man/man3 %i/share/man/man5
install -c -m 755 misc/check_dylib.NEW %i/sbin/check_dylib
install -c -m 755 misc/checksyms.NEW %i/sbin/checksyms
install -c -m 755 misc/dylib_pcsampler.NEW %i/sbin/dylib_pcsampler
install -c -m 755 misc/indr.NEW %i/sbin/indr
install -c -m 755 misc/kern_tool.NEW %i/sbin/kern_tool
install -c -m 755 misc/seg_addr_table.NEW %i/sbin/seg_addr_table
install -c -m 755 misc/seg_hack.NEW %i/sbin/seg_hack
install -c -m 644 man/check_dylib.1 %i/share/man/man1/
install -c -m 644 man/checksyms.1 %i/share/man/man1/
install -c -m 644 man/indr.1 %i/share/man/man1/
install -c -m 644 man/seg_addr_table.1 %i/share/man/man1/
<<
DocFiles: APPLE_LICENSE
Description: Extra software from cctools
DescDetail: <<
This package contains some extra tools from the cctools source
distribution that aren't part of Apple's official dev tools.
<<
cayenne:~/port/fink pepper$ grep -i vers `find . -name cctools\*info`
./10.3/cctools-extra.info:Version: 525
./10.4-transitional/cctools-extra.info:Version: 590.18
cayenne:~/port/fink pepper$ I was seeing the same error from gcc - here's how I fixed it:
$ gcc-4.0 --version
dyld: Library not loaded: /usr/i686-apple-darwin8/lib/libgcc_s.1.dylib
Referenced from: /usr/bin/gcc-4.0
Reason: image not found
Trace/BPT trap
$ set | grep LIB
DYLD_FALLBACK_LIBRARY_PATH=:
PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
$ export DYLD_FALLBACK_LIBRARY_PATH=
$ gcc-4.0 --version
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5250)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I think my old bash config (from a G3 imac running 10.3) messed things up.