-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/15/11 7:59 AM, Daren Stotler wrote:
> Alexander,
> 
> Responding to both your queries:
> 
> dstotler-lt% ls -lrt gcc* -rwxr-xr-x  1 root  wheel  166128 May 18
> 2009 gcc -rwxr-xr-x  1 root  wheel   97392 Oct 24  2010 gcc-4.0 
> -rwxr-xr-x  1 root  wheel  166128 Oct 24  2010 gcc-4.2 dstotler-lt%
> gcc -v Using built-in specs. Target: i686-apple-darwin10 Configured
> with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking
> --enable-werror --prefix=/usr --mandir=/share/man 
> --enable-languages=c,objc,c++,obj-c++ 
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
> --with-slibdir=/usr/lib --build=i686-apple-darwin10
> --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10
> --target=i686-apple-darwin10 
> --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc
> version 4.2.1 (Apple Inc. build 5666) (dot 3)
> 
> gcc-4.2 -v gives exactly the same result.
> 
> Thanks, Daren
> 
> 

Thanks.  I'm sure now that the issue is that your /usr/bin/gcc is a
real copy of or hard link to /usr/bin/gcc-4.2, rather than a symbolic
link. Replacing it with a symlink pointing to /usr/bin/gcc-4.2 (which
is the usual state of affairs) will allow Fink to bootstrap.  Unless
you want to hack fink-0.31.5/perlmods/Fink/Services.pm, and change

sub gcc_selected {
        # this should work anywhere we support, really
        if (-l '/usr/bin/gcc') {
                my $link = readlink('/usr/bin/gcc');
                if ($link =~ /gcc-(\d+\.\d+)/) {
                        return $1;
                } else {
                        print STDERR "WARNING: /usr/bin/gcc is not a
symlink!";
                }
        }
        return 0;
}

to something like

sub gcc_selected {
        1;
}

I haven't verified that myself, though.

My guess is that the symlink test dates back to 10.2 and 10.3, where
one used gcc_select to switch between compiler versions, and that
would fail if "gcc" wasn't a symbolic link.
- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7qAA4ACgkQB8UpO3rKjQ9FFQCgjyKsUt+/UCnf2spxMboUhuuH
GqgAn1soaxC7XA9LbhEHxf4Ef5xwERYv
=ZItV
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to