X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Delivery-date: Sat, 06 Feb 2010 14:29:43 +0100
Message-ID: <4B6D6EC3.7030802@uni-freiburg.de>
Date: Sat, 06 Feb 2010 14:29:39 +0100
From: Andreas Zwerger <zwerger@uni-freiburg.de>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Cygwin mailing list <cygwin@cygwin.com>
Subject: Re: gcc command not found
References: <4B6D5B52.5050708@uni-freiburg.de>
In-Reply-To: <4B6D5B52.5050708@uni-freiburg.de>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Andreas Zwerger schrieb:
> Hello,
>
> I'm having the same problem with the latest Cygwin install. But for me 
> rerunning the postinstall scripts does not create the symlinks.
>
> Administrator@haco-xyz ~
> $ gcc
> bash: gcc: command not found

> Administrator@haco-xyz ~
> $ for x in /etc/postinstall/{gcc.,gcc-[^tm],gcc4-}* ;
> > do
> >   . $x
> > done
> sed -i -e /^sys_lib_search_path_spec=/ 
> s|\(pc-cygwin\)/[34].[3-9].[0-9]|\1/4.3.4|g /usr/bin/libtool 
> /usr/share/apr/build-1/libtool
> sed -i -e /^dependency_libs=/ 
> s|\(pc-cygwin\)/[34].[3-9].[0-9]/\(lib[a-z_+]*.la\)|\1/4.3.4/\2|g 
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/libgcj-noncore.la 
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/libgcj-tools.la 
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/libgij.la 
> /usr/lib/gcj-4.3.4-9/libjvm.la /usr/lib/libFLAC++.la 
> /usr/lib/libncurses++.la /usr/lib/libncurses++w.la 
> /usr/lib/libplotter.la /usr/lib/libtiffxx.la /usr/lib/libxerces-c.la

OK, problem solved!
Weird enough the reason was an old version of cygwin1.dll in c:/windows 
directory which was used by cygwin instead of the one in cygwin-bin-dir 
(since c:/windows comes first in path variable). No idea where that file 
came from, but there were even more files in c:/windows from cygwin - 
those are removed now, and gcc works perfectly!

I found that out by calling C:/cygwin/usr/sbin/alternatives.exe from 
windows-explorer which then gave me an error window saying that the 
procedure entry point "__ctype_ptr__" was not found in "cygwin1.dll" so 
I started searching for cygwin1.dll on my system and found the old 
version in windows directory.

Best regards,
    Andreas

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

