Am 10.10.2009 um 19:50 schrieb Alexander Hansen:

> monipol wrote:
>> On 10/10/2009, at 13:50, Robert Schuster wrote:
>>
>>> Am 10.10.2009 um 18:11 schrieb Alexander Hansen:
>>>
>>>> Robert Schuster wrote:
>>>>
>>>>> Am 10.10.2009 um 16:46 schrieb Alexander Hansen:
>>>>>
>>>>>> Robert Schuster wrote:
>>>>>>
>>>>>>> I downloaded fink-0.29.10.tar.gz, I unpacked it and the I run ./
>>>>>>> bootstrap
>>>>>>>
>>>>>>> The problem is, that the bootstrap script will delete my link /
>>>>>>> usr/bin/
>>>>>>> gcc -> gcc4.2
>>>>>>> I can recreate this link while the tar-files are downloaded.  
>>>>>>> Then
>>>>>>> it
>>>>>>> will compile and then it says
>>>>>>>
>>>>>>> BOOTSTRAP PHASE THREE: installing essential packages to /sw with
>>>>>>> package management.
>>>>>>>
>>>>>>> At this moment /usr/bin/gcc is again deleted. If a recreate it  
>>>>>>> to
>>>>>>> be
>>>>>>> able to do the rest of the installation it will be deleted again
>>>>>>> and
>>>>>>> the installation fails:
>>>>>>>
>>>>>>> The following 23 packages will be installed or updated:
>>>>>>> apt apt-dev apt-shlibs base-files bzip2 bzip2-dev bzip2-shlibs
>>>>>>> debianutils dpkg fink fink-mirrors gettext-bin gzip
>>>>>>> libgettext3-dev libgettext3-shlibs libiconv libiconv-bin  
>>>>>>> libiconv-
>>>>>>> dev libncurses5 libncurses5-shlibs ncurses tar unzip
>>>>>>> The following additional package will be installed:
>>>>>>> dev-tools
>>>>>>> Do you want to continue? [Y/n]
>>>>>>> /var/tmp/tmp.1.AcLTyZ
>>>>>>>
>>>>>>> +----------
>>>>>>> |
>>>>>>> | Attention!
>>>>>>> |
>>>>>>> | Package dev-tools is an autogenerated virtual package.
>>>>>>> |
>>>>>>> | You cannot manipulate this type of package using the usual  
>>>>>>> Fink
>>>>>>> tools.
>>>>>>> | A detailed description of this package follows...
>>>>>>> |
>>>>>>> | This package represents the basic command-line compiler and
>>>>>>> | related programs.  In order for this package to be  
>>>>>>> "installed",
>>>>>>> | you must have /usr/bin/gcc and /usr/bin/make available on your
>>>>>>> | system.  You can obtain them by installing the Apple developer
>>>>>>> | tools (also known as XCode on Mac OS X 10.3 and above).  The
>>>>>>> | latest versions of the Apple developer tools are always
>>>>>>> | available from Apple at:
>>>>>>> |
>>>>>>> |   http://connect.apple.com/
>>>>>>> |
>>>>>>> | (free registration required)
>>>>>>> |
>>>>>>> | Web site:
>>>>>>> http://www.finkproject.org/faq/usage-general.php#virtpackage
>>>>>>> |
>>>>>>> +----------
>>>>>>>
>>>>>>> ### execution of /var/tmp/tmp.1.AcLTyZ failed, exit code 1
>>>>>>> phase compiling: dev-tools-0-1 failed
>>>>>>>
>>>>>>>
>>>>>>> What is the Problem?? Why is my gcc link always deleted?
>>>>>>> I hope you can help me!
>>>>>>>
>>>>>>>
>>>>>> I can't reproduce your issue on 10.6/32 bit or 10.6/64 bit.  The
>>>>>> bootstrap didn't appear to do anything to /usr/bin/gcc for me.
>>>>>> What do
>>>>>> you get from
>>>>>>
>>>>>> xcodebuild -version
>>>>>>
>>>>> It is working now.
>>>>> I had I file /usr/bin/gcc_select. I simply shell script i wrote  
>>>>> some
>>>>> time ago. After I deleted it, I had no more problems. Do bootstrap
>>>>> call gcc_select?
>>>>>
>>>> (putting this back on the mailing list now)
>>>>
>>>> It does, as a holdover from 10.4.
>>>>
>>> The next problem: fink is deleting my gcc link. I have renamed my
>>> gcc_select script. This happens if I try to make an update: Before I
>>> try it gcc is where, after the update gcc is deleted and says that I
>>> don't have xcode
>>>
>>> Roberts-MacBook:etc robert$ gcc
>>> i686-apple-darwin10-gcc-4.2.1: no input files
>>> Roberts-MacBook:etc robert$ fink selfupdate
>>> Before changing your selfupdate method to 'rsync', you must install
>>> XCode, available on your original OS X install disk, or from 
>>> http://connect.apple.com
>>> (after free registration).
>>> Failed: Selfupdate method 'rsync' cannot be used
>>> Roberts-MacBook:etc robert$ gcc
>>> -bash: /usr/bin/gcc: No such file or directory
>>> Roberts-MacBook:etc robert$
>>>
>>
>> Hello, Robert. I've browsed Fink's bootstrap code and haven't found
>> any reference to removing files or links from /usr/bin. What the code
>> does is checking whether some files are present -- /usr/bin/cc, /usr/
>> bin/gcc, /usr/bin/make -- and are flagged as executable.
>>
>> What do you get from the following commands?
>>
>> ls -l /usr/bin/cc
>> ls -l /usr/bin/gcc-4.2
>> ls -l /usr/bin/make
>>
>> And which command do you use to create the /usr/bin/gcc symbolic  
>> link?
>>
>> Please test the following after having created the /usr/bin/gcc
>> symbolic link. It's the code that Fink uses to detect if /usr/bin/gcc
>> is available (-x is a Perl test that checkes whether a given file is
>> executable). Be sure to type it as one line:
>>
>> perl -e 'printf "%s... %s\n", qw|/usr/bin/gcc|, -x qw|/usr/bin/gcc| ?
>> "found" : "missing"'
>>
>> Send us the output of the command above, and verify whether it
>> happened to remove the /usr/bin/gcc symbolic link.
>>
>>
>> Cheers,
>>
>> --
>> monipol
>> http://finkers.wordpress.com
>>
>> Submitting a Fink bug report? Read this:
>> http://www.finkproject.org/doc/netiquette/index.php
>> http://finkers.wordpress.com/2009/06/03/bug-reports/
>>
>>
>>
> That shouldn't do anything bad, since it's just a printf, just like in
> C.  The issue here is post-bootstrap, in any case.
>
> Did you rename your gcc_select script back after bootstrapping?  My
> guess is that  fink is running 'gcc_select' from there or somewhere  
> else
> in your PATH to try to set gcc to point at gcc-4.0 (the standard
> compiler for 10.4 and 10.5).  Verify this via "which gcc_select"
>
> If you do have a 'gcc_select' in your PATH, rename it permanently or  
> get
> rid of it.

I found the problem:
fink runs everything it finds in the PATH that begins with gcc.  
Because of that renaming gcc_select to gcc_auswahl didn't help. I  
think it is not a good idea that fink runs everything that begins with  
gcc. In most cases files beginning with gcc are compilers, but that is  
not guaranteed and because fink has root privileges this can have  
terrible results.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to